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