OLD | NEW |
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_VIEWS_APP_LIST_VIEW_H_ | 5 #ifndef UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ |
6 #define UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ | 6 #define UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 gfx::Size GetPreferredSize() const override; | 92 gfx::Size GetPreferredSize() const override; |
93 void OnPaint(gfx::Canvas* canvas) override; | 93 void OnPaint(gfx::Canvas* canvas) override; |
94 | 94 |
95 // WidgetDelegate overrides: | 95 // WidgetDelegate overrides: |
96 bool ShouldHandleSystemCommands() const override; | 96 bool ShouldHandleSystemCommands() const override; |
97 bool ShouldDescendIntoChildForEventHandling( | 97 bool ShouldDescendIntoChildForEventHandling( |
98 gfx::NativeView child, | 98 gfx::NativeView child, |
99 const gfx::Point& location) override; | 99 const gfx::Point& location) override; |
100 | 100 |
101 // Overridden from AppListViewDelegateObserver: | 101 // Overridden from AppListViewDelegateObserver: |
102 void OnProfilesChanged() override; | |
103 void OnShutdown() override; | 102 void OnShutdown() override; |
104 | 103 |
105 void SetProfileByPath(const base::FilePath& profile_path); | 104 void SetProfileByPath(const base::FilePath& profile_path); |
106 | 105 |
107 void AddObserver(AppListViewObserver* observer); | 106 void AddObserver(AppListViewObserver* observer); |
108 void RemoveObserver(AppListViewObserver* observer); | 107 void RemoveObserver(AppListViewObserver* observer); |
109 | 108 |
110 AppListMainView* app_list_main_view() { return app_list_main_view_; } | 109 AppListMainView* app_list_main_view() { return app_list_main_view_; } |
111 | 110 |
112 // Gets the PaginationModel owned by this view's apps grid. | 111 // Gets the PaginationModel owned by this view's apps grid. |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 166 |
168 // For UMA and testing. If non-null, triggered when the app list is painted. | 167 // For UMA and testing. If non-null, triggered when the app list is painted. |
169 base::Closure next_paint_callback_; | 168 base::Closure next_paint_callback_; |
170 | 169 |
171 DISALLOW_COPY_AND_ASSIGN(AppListView); | 170 DISALLOW_COPY_AND_ASSIGN(AppListView); |
172 }; | 171 }; |
173 | 172 |
174 } // namespace app_list | 173 } // namespace app_list |
175 | 174 |
176 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ | 175 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ |
OLD | NEW |