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_VIEWS_VIEWS_DELEGATE_H_ | 5 #ifndef UI_VIEWS_VIEWS_DELEGATE_H_ |
6 #define UI_VIEWS_VIEWS_DELEGATE_H_ | 6 #define UI_VIEWS_VIEWS_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
(...skipping 20 matching lines...) Expand all Loading... |
31 class SiteInstance; | 31 class SiteInstance; |
32 } | 32 } |
33 | 33 |
34 namespace gfx { | 34 namespace gfx { |
35 class ImageSkia; | 35 class ImageSkia; |
36 class Rect; | 36 class Rect; |
37 } | 37 } |
38 | 38 |
39 namespace ui { | 39 namespace ui { |
40 class ContextFactory; | 40 class ContextFactory; |
| 41 class NativeTheme; |
41 } | 42 } |
42 | 43 |
43 namespace views { | 44 namespace views { |
44 | 45 |
45 class NativeWidget; | 46 class NativeWidget; |
46 class NonClientFrameView; | 47 class NonClientFrameView; |
47 class ViewsTouchEditingControllerFactory; | 48 class ViewsTouchEditingControllerFactory; |
48 class View; | 49 class View; |
49 class Widget; | 50 class Widget; |
50 | 51 |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 // not changed, |callback| is never run. | 185 // not changed, |callback| is never run. |
185 // | 186 // |
186 // The return value is a bitmask of AppbarAutohideEdge. | 187 // The return value is a bitmask of AppbarAutohideEdge. |
187 virtual int GetAppbarAutohideEdges(HMONITOR monitor, | 188 virtual int GetAppbarAutohideEdges(HMONITOR monitor, |
188 const base::Closure& callback); | 189 const base::Closure& callback); |
189 #endif | 190 #endif |
190 | 191 |
191 // Returns a blocking pool task runner given a TaskRunnerType. | 192 // Returns a blocking pool task runner given a TaskRunnerType. |
192 virtual scoped_refptr<base::TaskRunner> GetBlockingPoolTaskRunner(); | 193 virtual scoped_refptr<base::TaskRunner> GetBlockingPoolTaskRunner(); |
193 | 194 |
| 195 // Returns a value which, if non-null, will be used as the NativeTheme for |
| 196 // |widget| in place of the platform default native theme. |
| 197 virtual ui::NativeTheme* GetNativeThemeOverride(const Widget* widget); |
| 198 |
194 protected: | 199 protected: |
195 ViewsDelegate(); | 200 ViewsDelegate(); |
196 | 201 |
197 private: | 202 private: |
198 scoped_ptr<ViewsTouchEditingControllerFactory> views_tsc_factory_; | 203 scoped_ptr<ViewsTouchEditingControllerFactory> views_tsc_factory_; |
199 | 204 |
200 #if defined(USE_AURA) | 205 #if defined(USE_AURA) |
201 scoped_ptr<TouchSelectionMenuRunnerViews> touch_selection_menu_runner_; | 206 scoped_ptr<TouchSelectionMenuRunnerViews> touch_selection_menu_runner_; |
202 #endif | 207 #endif |
203 | 208 |
204 NativeWidgetFactory native_widget_factory_; | 209 NativeWidgetFactory native_widget_factory_; |
205 | 210 |
206 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); | 211 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); |
207 }; | 212 }; |
208 | 213 |
209 } // namespace views | 214 } // namespace views |
210 | 215 |
211 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ | 216 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ |
OLD | NEW |