| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Paint(gfx::Canvas* canvas, const views::CullSet& cull_set) 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( |
| 108 gfx::NativeView child, |
| 109 const gfx::Point& location) override; |
| 107 | 110 |
| 108 // Overridden from AppListViewDelegateObserver: | 111 // Overridden from AppListViewDelegateObserver: |
| 109 void OnProfilesChanged() override; | 112 void OnProfilesChanged() override; |
| 110 void OnShutdown() override; | 113 void OnShutdown() override; |
| 111 | 114 |
| 112 void Prerender(); | 115 void Prerender(); |
| 113 | 116 |
| 114 void SetProfileByPath(const base::FilePath& profile_path); | 117 void SetProfileByPath(const base::FilePath& profile_path); |
| 115 | 118 |
| 116 void AddObserver(AppListViewObserver* observer); | 119 void AddObserver(AppListViewObserver* observer); |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 | 185 |
| 183 // For UMA and testing. If non-null, triggered when the app list is painted. | 186 // For UMA and testing. If non-null, triggered when the app list is painted. |
| 184 base::Closure next_paint_callback_; | 187 base::Closure next_paint_callback_; |
| 185 | 188 |
| 186 DISALLOW_COPY_AND_ASSIGN(AppListView); | 189 DISALLOW_COPY_AND_ASSIGN(AppListView); |
| 187 }; | 190 }; |
| 188 | 191 |
| 189 } // namespace app_list | 192 } // namespace app_list |
| 190 | 193 |
| 191 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ | 194 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ |
| OLD | NEW |