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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 void ShowWhenReady(); | 73 void ShowWhenReady(); |
74 | 74 |
75 void Close(); | 75 void Close(); |
76 | 76 |
77 void UpdateBounds(); | 77 void UpdateBounds(); |
78 | 78 |
79 // Returns true if the app list should be centered and in landscape mode. | 79 // Returns true if the app list should be centered and in landscape mode. |
80 bool ShouldCenterWindow() const; | 80 bool ShouldCenterWindow() const; |
81 | 81 |
82 // Overridden from views::View: | 82 // Overridden from views::View: |
83 virtual gfx::Size GetPreferredSize() OVERRIDE; | 83 virtual gfx::Size GetPreferredSize() const OVERRIDE; |
84 virtual void Paint(gfx::Canvas* canvas, | 84 virtual void Paint(gfx::Canvas* canvas, |
85 const views::CullSet& cull_set) OVERRIDE; | 85 const views::CullSet& cull_set) OVERRIDE; |
86 virtual void OnThemeChanged() OVERRIDE; | 86 virtual void OnThemeChanged() OVERRIDE; |
87 | 87 |
88 // WidgetDelegate overrides: | 88 // WidgetDelegate overrides: |
89 virtual bool ShouldHandleSystemCommands() const OVERRIDE; | 89 virtual bool ShouldHandleSystemCommands() const OVERRIDE; |
90 | 90 |
91 // Overridden from AppListViewDelegateObserver: | 91 // Overridden from AppListViewDelegateObserver: |
92 virtual void OnProfilesChanged() OVERRIDE; | 92 virtual void OnProfilesChanged() OVERRIDE; |
93 | 93 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 | 154 |
155 // For UMA and testing. If non-null, triggered when the app list is painted. | 155 // For UMA and testing. If non-null, triggered when the app list is painted. |
156 base::Closure next_paint_callback_; | 156 base::Closure next_paint_callback_; |
157 | 157 |
158 DISALLOW_COPY_AND_ASSIGN(AppListView); | 158 DISALLOW_COPY_AND_ASSIGN(AppListView); |
159 }; | 159 }; |
160 | 160 |
161 } // namespace app_list | 161 } // namespace app_list |
162 | 162 |
163 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ | 163 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ |
OLD | NEW |