Lines Matching defs:type
40 // launch type and launches corresponding example window when activated.
52 explicit WindowTypeShelfItem(const std::string& id, Type type)
54 type_(type) {
55 std::string title(GetTitle(type));
56 SetIcon(GetIcon(type), false);
60 static gfx::ImageSkia GetIcon(Type type) {
72 icon.eraseColor(kColors[static_cast<int>(type) % arraysize(kColors)]);
77 static std::string GetTitle(Type type) {
78 switch (type) {
90 return "Unknown window type.";
95 static std::string GetDetails(Type type) {
98 switch (type) {
108 static void ActivateItem(Type type, int event_flags) {
109 switch (type) {
153 // matching window launch type so that AppListViewDelegate knows how to open
157 ExampleSearchResult(WindowTypeShelfItem::Type type,
159 : type_(type) {
189 WindowTypeShelfItem::Type type() const { return type_; }
208 WindowTypeShelfItem::Type type =
212 new WindowTypeShelfItem(id, type));
271 WindowTypeShelfItem::ActivateItem(example_result->type(), event_flags);
297 WindowTypeShelfItem::Type type =
301 base::UTF8ToUTF16(WindowTypeShelfItem::GetTitle(type));
304 model_->results()->Add(new ExampleSearchResult(type, query));