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

Side by Side Diff: ui/app_list/views/app_list_main_view.h

Issue 681873002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/views/app_list_item_view.h ('k') | ui/app_list/views/app_list_main_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_VIEWS_APP_LIST_MAIN_VIEW_H_ 5 #ifndef UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_
6 #define UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ 6 #define UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 22 matching lines...) Expand all
33 33
34 // AppListMainView contains the normal view of the app list, which is shown 34 // AppListMainView contains the normal view of the app list, which is shown
35 // when the user is signed in. 35 // when the user is signed in.
36 class APP_LIST_EXPORT AppListMainView : public views::View, 36 class APP_LIST_EXPORT AppListMainView : public views::View,
37 public AppsGridViewDelegate, 37 public AppsGridViewDelegate,
38 public SearchBoxViewDelegate, 38 public SearchBoxViewDelegate,
39 public SearchResultListViewDelegate { 39 public SearchResultListViewDelegate {
40 public: 40 public:
41 // Takes ownership of |delegate|. 41 // Takes ownership of |delegate|.
42 explicit AppListMainView(AppListViewDelegate* delegate); 42 explicit AppListMainView(AppListViewDelegate* delegate);
43 virtual ~AppListMainView(); 43 ~AppListMainView() override;
44 44
45 void Init(gfx::NativeView parent, 45 void Init(gfx::NativeView parent,
46 int initial_apps_page, 46 int initial_apps_page,
47 SearchBoxView* search_box_view); 47 SearchBoxView* search_box_view);
48 48
49 void ShowAppListWhenReady(); 49 void ShowAppListWhenReady();
50 50
51 void ResetForShow(); 51 void ResetForShow();
52 52
53 void Close(); 53 void Close();
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // |parent| is used to determine the image scale factor to use. 92 // |parent| is used to determine the image scale factor to use.
93 void PreloadIcons(gfx::NativeView parent); 93 void PreloadIcons(gfx::NativeView parent);
94 94
95 // Invoked when |icon_loading_wait_timer_| fires. 95 // Invoked when |icon_loading_wait_timer_| fires.
96 void OnIconLoadingWaitTimer(); 96 void OnIconLoadingWaitTimer();
97 97
98 // Invoked from an IconLoader when icon loading is finished. 98 // Invoked from an IconLoader when icon loading is finished.
99 void OnItemIconLoaded(IconLoader* loader); 99 void OnItemIconLoaded(IconLoader* loader);
100 100
101 // Overridden from AppsGridViewDelegate: 101 // Overridden from AppsGridViewDelegate:
102 virtual void ActivateApp(AppListItem* item, int event_flags) override; 102 void ActivateApp(AppListItem* item, int event_flags) override;
103 virtual void GetShortcutPathForApp( 103 void GetShortcutPathForApp(
104 const std::string& app_id, 104 const std::string& app_id,
105 const base::Callback<void(const base::FilePath&)>& callback) override; 105 const base::Callback<void(const base::FilePath&)>& callback) override;
106 virtual void CancelDragInActiveFolder() override; 106 void CancelDragInActiveFolder() override;
107 107
108 // Overridden from SearchBoxViewDelegate: 108 // Overridden from SearchBoxViewDelegate:
109 virtual void QueryChanged(SearchBoxView* sender) override; 109 void QueryChanged(SearchBoxView* sender) override;
110 110
111 // Overridden from SearchResultListViewDelegate: 111 // Overridden from SearchResultListViewDelegate:
112 virtual void OnResultInstalled(SearchResult* result) override; 112 void OnResultInstalled(SearchResult* result) override;
113 virtual void OnResultUninstalled(SearchResult* result) override; 113 void OnResultUninstalled(SearchResult* result) override;
114 114
115 AppListViewDelegate* delegate_; // Owned by parent view (AppListView). 115 AppListViewDelegate* delegate_; // Owned by parent view (AppListView).
116 AppListModel* model_; // Unowned; ownership is handled by |delegate_|. 116 AppListModel* model_; // Unowned; ownership is handled by |delegate_|.
117 117
118 // Created by AppListView. Owned by views hierarchy. 118 // Created by AppListView. Owned by views hierarchy.
119 SearchBoxView* search_box_view_; 119 SearchBoxView* search_box_view_;
120 ContentsView* contents_view_; // Owned by views hierarchy. 120 ContentsView* contents_view_; // Owned by views hierarchy.
121 121
122 // Owned by views hierarchy. NULL in the non-experimental app list. 122 // Owned by views hierarchy. NULL in the non-experimental app list.
123 ContentsSwitcherView* contents_switcher_view_; 123 ContentsSwitcherView* contents_switcher_view_;
124 124
125 // A timer that fires when maximum allowed time to wait for icon loading has 125 // A timer that fires when maximum allowed time to wait for icon loading has
126 // passed. 126 // passed.
127 base::OneShotTimer<AppListMainView> icon_loading_wait_timer_; 127 base::OneShotTimer<AppListMainView> icon_loading_wait_timer_;
128 128
129 ScopedVector<IconLoader> pending_icon_loaders_; 129 ScopedVector<IconLoader> pending_icon_loaders_;
130 130
131 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_; 131 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_;
132 132
133 DISALLOW_COPY_AND_ASSIGN(AppListMainView); 133 DISALLOW_COPY_AND_ASSIGN(AppListMainView);
134 }; 134 };
135 135
136 } // namespace app_list 136 } // namespace app_list
137 137
138 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ 138 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_
OLDNEW
« no previous file with comments | « ui/app_list/views/app_list_item_view.h ('k') | ui/app_list/views/app_list_main_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698