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

Side by Side Diff: ui/app_list/search_result_list_view.h

Issue 10827271: Replace views::Event with ui::Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | « ui/app_list/page_switcher.cc ('k') | ui/app_list/search_result_list_view.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 #ifndef UI_APP_LIST_SEARCH_RESULT_LIST_VIEW_H_ 5 #ifndef UI_APP_LIST_SEARCH_RESULT_LIST_VIEW_H_
6 #define UI_APP_LIST_SEARCH_RESULT_LIST_VIEW_H_ 6 #define UI_APP_LIST_SEARCH_RESULT_LIST_VIEW_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "ui/app_list/app_list_model.h" 10 #include "ui/app_list/app_list_model.h"
(...skipping 30 matching lines...) Expand all
41 41
42 // Updates UI with model. 42 // Updates UI with model.
43 void Update(); 43 void Update();
44 44
45 // Schedules an Update call using |update_factory_|. Do nothing if there is a 45 // Schedules an Update call using |update_factory_|. Do nothing if there is a
46 // pending call. 46 // pending call.
47 void ScheduleUpdate(); 47 void ScheduleUpdate();
48 48
49 // Overridden from views::ButtonListener: 49 // Overridden from views::ButtonListener:
50 virtual void ButtonPressed(views::Button* sender, 50 virtual void ButtonPressed(views::Button* sender,
51 const views::Event& event) OVERRIDE; 51 const ui::Event& event) OVERRIDE;
52 52
53 // Overridden from ListModelObserver: 53 // Overridden from ListModelObserver:
54 virtual void ListItemsAdded(size_t start, size_t count) OVERRIDE; 54 virtual void ListItemsAdded(size_t start, size_t count) OVERRIDE;
55 virtual void ListItemsRemoved(size_t start, size_t count) OVERRIDE; 55 virtual void ListItemsRemoved(size_t start, size_t count) OVERRIDE;
56 virtual void ListItemsChanged(size_t start, size_t count) OVERRIDE; 56 virtual void ListItemsChanged(size_t start, size_t count) OVERRIDE;
57 57
58 SearchResultListViewDelegate* delegate_; // Not owned. 58 SearchResultListViewDelegate* delegate_; // Not owned.
59 AppListModel::SearchResults* results_; // Owned by AppListModel. 59 AppListModel::SearchResults* results_; // Owned by AppListModel.
60 60
61 int last_visible_index_; 61 int last_visible_index_;
62 int selected_index_; 62 int selected_index_;
63 63
64 // The factory that consolidates multiple Update calls into one. 64 // The factory that consolidates multiple Update calls into one.
65 base::WeakPtrFactory<SearchResultListView> update_factory_; 65 base::WeakPtrFactory<SearchResultListView> update_factory_;
66 66
67 DISALLOW_COPY_AND_ASSIGN(SearchResultListView); 67 DISALLOW_COPY_AND_ASSIGN(SearchResultListView);
68 }; 68 };
69 69
70 } // namespace app_ist 70 } // namespace app_ist
71 71
72 #endif // UI_APP_LIST_SEARCH_RESULT_LIST_VIEW_H_ 72 #endif // UI_APP_LIST_SEARCH_RESULT_LIST_VIEW_H_
OLDNEW
« no previous file with comments | « ui/app_list/page_switcher.cc ('k') | ui/app_list/search_result_list_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698