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

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

Issue 621823004: Simplifies the structure of app_list search a bit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months 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
« ui/app_list/search_result.h ('K') | « ui/app_list/search_result.h ('k') | no next file » | 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 } 90 }
91 91
92 void SearchResult::AddObserver(SearchResultObserver* observer) { 92 void SearchResult::AddObserver(SearchResultObserver* observer) {
93 observers_.AddObserver(observer); 93 observers_.AddObserver(observer);
94 } 94 }
95 95
96 void SearchResult::RemoveObserver(SearchResultObserver* observer) { 96 void SearchResult::RemoveObserver(SearchResultObserver* observer) {
97 observers_.RemoveObserver(observer); 97 observers_.RemoveObserver(observer);
98 } 98 }
99 99
100 scoped_ptr<SearchResult> SearchResult::Duplicate() {
101 NOTREACHED();
102 return scoped_ptr<SearchResult>();
103 }
104
105 SearchResultType SearchResult::GetType() {
106 // This is defined for testing, the actual search result must set the type.
107 NOTREACHED();
108 return SEARCH_RESULT_TYPE_BOUNDARY;
109 }
110
100 void SearchResult::Open(int event_flags) { 111 void SearchResult::Open(int event_flags) {
101 } 112 }
102 113
103 void SearchResult::InvokeAction(int action_index, int event_flags) { 114 void SearchResult::InvokeAction(int action_index, int event_flags) {
104 } 115 }
105 116
106 ui::MenuModel* SearchResult::GetContextMenuModel() { 117 ui::MenuModel* SearchResult::GetContextMenuModel() {
107 return NULL; 118 return NULL;
108 } 119 }
109 120
110 } // namespace app_list 121 } // namespace app_list
OLDNEW
« ui/app_list/search_result.h ('K') | « ui/app_list/search_result.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698