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

Side by Side Diff: ui/app_list/views/search_result_list_view.cc

Issue 369693004: Make app list search result mixer more resilient to reordering. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compile Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/app_list/search/mixer_unittest.cc ('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/views/search_result_list_view.h" 5 #include "ui/app_list/views/search_result_list_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 GetResultViewAt(i)->ClearResultNoRepaint(); 254 GetResultViewAt(i)->ClearResultNoRepaint();
255 255
256 ScheduleUpdate(); 256 ScheduleUpdate();
257 } 257 }
258 258
259 void SearchResultListView::ListItemMoved(size_t index, size_t target_index) { 259 void SearchResultListView::ListItemMoved(size_t index, size_t target_index) {
260 NOTREACHED(); 260 NOTREACHED();
261 } 261 }
262 262
263 void SearchResultListView::ListItemsChanged(size_t start, size_t count) { 263 void SearchResultListView::ListItemsChanged(size_t start, size_t count) {
264 ScheduleUpdate(); 264 NOTREACHED();
265 } 265 }
266 266
267 void SearchResultListView::SearchResultActivated(SearchResultView* view, 267 void SearchResultListView::SearchResultActivated(SearchResultView* view,
268 int event_flags) { 268 int event_flags) {
269 if (view_delegate_ && view->result()) 269 if (view_delegate_ && view->result())
270 view_delegate_->OpenSearchResult(view->result(), false, event_flags); 270 view_delegate_->OpenSearchResult(view->result(), false, event_flags);
271 } 271 }
272 272
273 void SearchResultListView::SearchResultActionActivated(SearchResultView* view, 273 void SearchResultListView::SearchResultActionActivated(SearchResultView* view,
274 size_t action_index, 274 size_t action_index,
275 int event_flags) { 275 int event_flags) {
276 if (view_delegate_ && view->result()) { 276 if (view_delegate_ && view->result()) {
277 view_delegate_->InvokeSearchResultAction( 277 view_delegate_->InvokeSearchResultAction(
278 view->result(), action_index, event_flags); 278 view->result(), action_index, event_flags);
279 } 279 }
280 } 280 }
281 281
282 void SearchResultListView::OnSearchResultInstalled(SearchResultView* view) { 282 void SearchResultListView::OnSearchResultInstalled(SearchResultView* view) {
283 if (delegate_ && view->result()) 283 if (delegate_ && view->result())
284 delegate_->OnResultInstalled(view->result()); 284 delegate_->OnResultInstalled(view->result());
285 } 285 }
286 286
287 void SearchResultListView::OnSearchResultUninstalled(SearchResultView* view) { 287 void SearchResultListView::OnSearchResultUninstalled(SearchResultView* view) {
288 if (delegate_ && view->result()) 288 if (delegate_ && view->result())
289 delegate_->OnResultUninstalled(view->result()); 289 delegate_->OnResultUninstalled(view->result());
290 } 290 }
291 291
292 } // namespace app_list 292 } // namespace app_list
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/search/mixer_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698