Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Side by Side Diff: ui/app_list/search_result.cc

Issue 775893005: [AppList] Add a Suggestions Provider to applist. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fix Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/app_list/search_result.h ('k') | ui/app_list/views/search_result_page_view_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/app_list/search_result.h" 5 #include "ui/app_list/search_result.h"
6 6
7 #include "ui/app_list/app_list_constants.h" 7 #include "ui/app_list/app_list_constants.h"
8 #include "ui/app_list/search_result_observer.h" 8 #include "ui/app_list/search_result_observer.h"
9 9
10 namespace app_list { 10 namespace app_list {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 observers_, 69 observers_,
70 OnPercentDownloadedChanged()); 70 OnPercentDownloadedChanged());
71 } 71 }
72 72
73 int SearchResult::GetPreferredIconDimension() const { 73 int SearchResult::GetPreferredIconDimension() const {
74 switch (display_type_) { 74 switch (display_type_) {
75 case DISPLAY_TILE: 75 case DISPLAY_TILE:
76 return kTileIconSize; 76 return kTileIconSize;
77 case DISPLAY_LIST: 77 case DISPLAY_LIST:
78 return kListIconSize; 78 return kListIconSize;
79 case DISPLAY_NONE:
80 return 0;
79 } 81 }
80 NOTREACHED(); 82 NOTREACHED();
81 return 0; 83 return 0;
82 } 84 }
83 85
84 void SearchResult::NotifyItemInstalled() { 86 void SearchResult::NotifyItemInstalled() {
85 FOR_EACH_OBSERVER(SearchResultObserver, observers_, OnItemInstalled()); 87 FOR_EACH_OBSERVER(SearchResultObserver, observers_, OnItemInstalled());
86 } 88 }
87 89
88 void SearchResult::NotifyItemUninstalled() { 90 void SearchResult::NotifyItemUninstalled() {
(...skipping 12 matching lines...) Expand all
101 } 103 }
102 104
103 void SearchResult::InvokeAction(int action_index, int event_flags) { 105 void SearchResult::InvokeAction(int action_index, int event_flags) {
104 } 106 }
105 107
106 ui::MenuModel* SearchResult::GetContextMenuModel() { 108 ui::MenuModel* SearchResult::GetContextMenuModel() {
107 return NULL; 109 return NULL;
108 } 110 }
109 111
110 } // namespace app_list 112 } // namespace app_list
OLDNEW
« no previous file with comments | « ui/app_list/search_result.h ('k') | ui/app_list/views/search_result_page_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698