| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 // hiding the app list when a modal dialog is being shown). | 92 // hiding the app list when a modal dialog is being shown). |
| 93 void SetAppListOverlayVisible(bool visible); | 93 void SetAppListOverlayVisible(bool visible); |
| 94 | 94 |
| 95 // Returns true if the app list should be centered and in landscape mode. | 95 // Returns true if the app list should be centered and in landscape mode. |
| 96 bool ShouldCenterWindow() const; | 96 bool ShouldCenterWindow() const; |
| 97 | 97 |
| 98 views::Widget* search_box_widget() const { return search_box_widget_; } | 98 views::Widget* search_box_widget() const { return search_box_widget_; } |
| 99 | 99 |
| 100 // Overridden from views::View: | 100 // Overridden from views::View: |
| 101 gfx::Size GetPreferredSize() const override; | 101 gfx::Size GetPreferredSize() const override; |
| 102 void Paint(gfx::Canvas* canvas, const views::CullSet& cull_set) override; | 102 void OnPaint(gfx::Canvas* canvas) override; |
| 103 void OnThemeChanged() override; | 103 void OnThemeChanged() override; |
| 104 | 104 |
| 105 // WidgetDelegate overrides: | 105 // WidgetDelegate overrides: |
| 106 bool ShouldHandleSystemCommands() const override; | 106 bool ShouldHandleSystemCommands() const override; |
| 107 bool ShouldDescendIntoChildForEventHandling( | 107 bool ShouldDescendIntoChildForEventHandling( |
| 108 gfx::NativeView child, | 108 gfx::NativeView child, |
| 109 const gfx::Point& location) override; | 109 const gfx::Point& location) override; |
| 110 | 110 |
| 111 // Overridden from AppListViewDelegateObserver: | 111 // Overridden from AppListViewDelegateObserver: |
| 112 void OnProfilesChanged() override; | 112 void OnProfilesChanged() override; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 | 186 |
| 187 // For UMA and testing. If non-null, triggered when the app list is painted. | 187 // For UMA and testing. If non-null, triggered when the app list is painted. |
| 188 base::Closure next_paint_callback_; | 188 base::Closure next_paint_callback_; |
| 189 | 189 |
| 190 DISALLOW_COPY_AND_ASSIGN(AppListView); | 190 DISALLOW_COPY_AND_ASSIGN(AppListView); |
| 191 }; | 191 }; |
| 192 | 192 |
| 193 } // namespace app_list | 193 } // namespace app_list |
| 194 | 194 |
| 195 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ | 195 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ |
| OLD | NEW |