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/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
9 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
10 #include "ui/app_list/app_list_export.h" | 11 #include "ui/app_list/app_list_export.h" |
11 #include "ui/app_list/app_list_view_delegate_observer.h" | 12 #include "ui/app_list/app_list_view_delegate_observer.h" |
12 #include "ui/app_list/speech_ui_model_observer.h" | 13 #include "ui/app_list/speech_ui_model_observer.h" |
13 #include "ui/views/bubble/bubble_delegate.h" | 14 #include "ui/views/bubble/bubble_delegate.h" |
14 #include "ui/views/widget/widget.h" | 15 #include "ui/views/widget/widget.h" |
15 | 16 |
16 namespace base { | 17 namespace base { |
17 class FilePath; | 18 class FilePath; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 virtual void OnProfilesChanged() OVERRIDE; | 89 virtual void OnProfilesChanged() OVERRIDE; |
89 | 90 |
90 void Prerender(); | 91 void Prerender(); |
91 | 92 |
92 void SetProfileByPath(const base::FilePath& profile_path); | 93 void SetProfileByPath(const base::FilePath& profile_path); |
93 | 94 |
94 void AddObserver(AppListViewObserver* observer); | 95 void AddObserver(AppListViewObserver* observer); |
95 void RemoveObserver(AppListViewObserver* observer); | 96 void RemoveObserver(AppListViewObserver* observer); |
96 | 97 |
97 // Set a callback to be called the next time any app list paints. | 98 // Set a callback to be called the next time any app list paints. |
98 static void SetNextPaintCallback(void (*callback)()); | 99 static void SetNextPaintCallback(const base::Closure& callback); |
99 | 100 |
100 #if defined(OS_WIN) | 101 #if defined(OS_WIN) |
101 HWND GetHWND() const; | 102 HWND GetHWND() const; |
102 #endif | 103 #endif |
103 | 104 |
104 AppListMainView* app_list_main_view() { return app_list_main_view_; } | 105 AppListMainView* app_list_main_view() { return app_list_main_view_; } |
105 | 106 |
106 private: | 107 private: |
107 void InitAsBubbleInternal(gfx::NativeView parent, | 108 void InitAsBubbleInternal(gfx::NativeView parent, |
108 PaginationModel* pagination_model, | 109 PaginationModel* pagination_model, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 | 148 |
148 ObserverList<AppListViewObserver> observers_; | 149 ObserverList<AppListViewObserver> observers_; |
149 scoped_ptr<HideViewAnimationObserver> animation_observer_; | 150 scoped_ptr<HideViewAnimationObserver> animation_observer_; |
150 | 151 |
151 DISALLOW_COPY_AND_ASSIGN(AppListView); | 152 DISALLOW_COPY_AND_ASSIGN(AppListView); |
152 }; | 153 }; |
153 | 154 |
154 } // namespace app_list | 155 } // namespace app_list |
155 | 156 |
156 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ | 157 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ |
OLD | NEW |