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 "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 virtual gfx::Size GetPreferredSize() const OVERRIDE; | 93 virtual gfx::Size GetPreferredSize() const OVERRIDE; |
94 virtual void Paint(gfx::Canvas* canvas, | 94 virtual void Paint(gfx::Canvas* canvas, |
95 const views::CullSet& cull_set) OVERRIDE; | 95 const views::CullSet& cull_set) OVERRIDE; |
96 virtual void OnThemeChanged() OVERRIDE; | 96 virtual void OnThemeChanged() OVERRIDE; |
97 | 97 |
98 // WidgetDelegate overrides: | 98 // WidgetDelegate overrides: |
99 virtual bool ShouldHandleSystemCommands() const OVERRIDE; | 99 virtual bool ShouldHandleSystemCommands() const OVERRIDE; |
100 | 100 |
101 // Overridden from AppListViewDelegateObserver: | 101 // Overridden from AppListViewDelegateObserver: |
102 virtual void OnProfilesChanged() OVERRIDE; | 102 virtual void OnProfilesChanged() OVERRIDE; |
| 103 virtual void OnShutdown() OVERRIDE; |
103 | 104 |
104 void Prerender(); | 105 void Prerender(); |
105 | 106 |
106 void SetProfileByPath(const base::FilePath& profile_path); | 107 void SetProfileByPath(const base::FilePath& profile_path); |
107 | 108 |
108 void AddObserver(AppListViewObserver* observer); | 109 void AddObserver(AppListViewObserver* observer); |
109 void RemoveObserver(AppListViewObserver* observer); | 110 void RemoveObserver(AppListViewObserver* observer); |
110 | 111 |
111 // Set a callback to be called the next time any app list paints. | 112 // Set a callback to be called the next time any app list paints. |
112 void SetNextPaintCallback(const base::Closure& callback); | 113 void SetNextPaintCallback(const base::Closure& callback); |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 | 174 |
174 // For UMA and testing. If non-null, triggered when the app list is painted. | 175 // For UMA and testing. If non-null, triggered when the app list is painted. |
175 base::Closure next_paint_callback_; | 176 base::Closure next_paint_callback_; |
176 | 177 |
177 DISALLOW_COPY_AND_ASSIGN(AppListView); | 178 DISALLOW_COPY_AND_ASSIGN(AppListView); |
178 }; | 179 }; |
179 | 180 |
180 } // namespace app_list | 181 } // namespace app_list |
181 | 182 |
182 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ | 183 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ |
OLD | NEW |