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/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
10 #include "ui/app_list/app_list_export.h" | 10 #include "ui/app_list/app_list_export.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 ApplicationDragAndDropHost* drag_and_drop_host); | 68 ApplicationDragAndDropHost* drag_and_drop_host); |
69 | 69 |
70 // Shows the UI when there are no pending icon loads. Otherwise, starts a | 70 // Shows the UI when there are no pending icon loads. Otherwise, starts a |
71 // timer to show the UI when a maximum allowed wait time has expired. | 71 // timer to show the UI when a maximum allowed wait time has expired. |
72 void ShowWhenReady(); | 72 void ShowWhenReady(); |
73 | 73 |
74 void Close(); | 74 void Close(); |
75 | 75 |
76 void UpdateBounds(); | 76 void UpdateBounds(); |
77 | 77 |
78 // Returns true if the app list should be centered and in landscape mode. | |
79 bool ShouldCenterWindow() const; | |
80 | |
81 // Overridden from views::View: | 78 // Overridden from views::View: |
82 virtual gfx::Size GetPreferredSize() OVERRIDE; | 79 virtual gfx::Size GetPreferredSize() OVERRIDE; |
83 virtual void Paint(gfx::Canvas* canvas) OVERRIDE; | 80 virtual void Paint(gfx::Canvas* canvas) OVERRIDE; |
84 virtual void OnThemeChanged() OVERRIDE; | 81 virtual void OnThemeChanged() OVERRIDE; |
85 | 82 |
86 // WidgetDelegate overrides: | 83 // WidgetDelegate overrides: |
87 virtual bool ShouldHandleSystemCommands() const OVERRIDE; | 84 virtual bool ShouldHandleSystemCommands() const OVERRIDE; |
88 | 85 |
89 // Overridden from AppListViewDelegateObserver: | 86 // Overridden from AppListViewDelegateObserver: |
90 virtual void OnProfilesChanged() OVERRIDE; | 87 virtual void OnProfilesChanged() OVERRIDE; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 | 146 |
150 ObserverList<AppListViewObserver> observers_; | 147 ObserverList<AppListViewObserver> observers_; |
151 scoped_ptr<HideViewAnimationObserver> animation_observer_; | 148 scoped_ptr<HideViewAnimationObserver> animation_observer_; |
152 | 149 |
153 DISALLOW_COPY_AND_ASSIGN(AppListView); | 150 DISALLOW_COPY_AND_ASSIGN(AppListView); |
154 }; | 151 }; |
155 | 152 |
156 } // namespace app_list | 153 } // namespace app_list |
157 | 154 |
158 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ | 155 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ |
OLD | NEW |