| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 ApplicationDragAndDropHost* drag_and_drop_host); | 82 ApplicationDragAndDropHost* drag_and_drop_host); |
| 83 | 83 |
| 84 // Shows the UI when there are no pending icon loads. Otherwise, starts a | 84 // Shows the UI when there are no pending icon loads. Otherwise, starts a |
| 85 // timer to show the UI when a maximum allowed wait time has expired. | 85 // timer to show the UI when a maximum allowed wait time has expired. |
| 86 void ShowWhenReady(); | 86 void ShowWhenReady(); |
| 87 | 87 |
| 88 void Close(); | 88 void Close(); |
| 89 | 89 |
| 90 void UpdateBounds(); | 90 void UpdateBounds(); |
| 91 | 91 |
| 92 // Returns true if the experimental app list position should be used. |
| 93 bool UseExperimentalAppListPosition() const; |
| 94 |
| 92 // Overridden from views::View: | 95 // Overridden from views::View: |
| 93 virtual gfx::Size GetPreferredSize() OVERRIDE; | 96 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 94 virtual void Paint(gfx::Canvas* canvas) OVERRIDE; | 97 virtual void Paint(gfx::Canvas* canvas) OVERRIDE; |
| 95 virtual void OnThemeChanged() OVERRIDE; | 98 virtual void OnThemeChanged() OVERRIDE; |
| 96 | 99 |
| 97 // WidgetDelegate overrides: | 100 // WidgetDelegate overrides: |
| 98 virtual bool ShouldHandleSystemCommands() const OVERRIDE; | 101 virtual bool ShouldHandleSystemCommands() const OVERRIDE; |
| 99 | 102 |
| 100 // Overridden from AppListViewDelegateObserver: | 103 // Overridden from AppListViewDelegateObserver: |
| 101 virtual void OnProfilesChanged() OVERRIDE; | 104 virtual void OnProfilesChanged() OVERRIDE; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 // If non-NULL, the app list will remain centered on this screen's primary | 171 // If non-NULL, the app list will remain centered on this screen's primary |
| 169 // display. | 172 // display. |
| 170 gfx::Screen* screen_to_keep_centered_on_; | 173 gfx::Screen* screen_to_keep_centered_on_; |
| 171 | 174 |
| 172 DISALLOW_COPY_AND_ASSIGN(AppListView); | 175 DISALLOW_COPY_AND_ASSIGN(AppListView); |
| 173 }; | 176 }; |
| 174 | 177 |
| 175 } // namespace app_list | 178 } // namespace app_list |
| 176 | 179 |
| 177 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ | 180 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ |
| OLD | NEW |