Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: ui/views/widget/desktop_root_window_host.h

Issue 11367041: Adds View::GetNativeTheme() to get the NativeTheme. The interesting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix include Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_WIDGET_DESKTOP_ROOT_WINDOW_HOST_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_H_
7 7
8 #include "ui/base/ui_base_types.h" 8 #include "ui/base/ui_base_types.h"
9 #include "ui/views/views_export.h" 9 #include "ui/views/views_export.h"
10 #include "ui/views/widget/widget.h" 10 #include "ui/views/widget/widget.h"
11 11
12 namespace aura { 12 namespace aura {
13 class RootWindowHost; 13 class RootWindowHost;
14 class Window; 14 class Window;
15 } 15 }
16 16
17 namespace gfx { 17 namespace gfx {
18 class ImageSkia; 18 class ImageSkia;
19 class Rect; 19 class Rect;
20 } 20 }
21 21
22 namespace ui {
23 class NativeTheme;
24 }
25
22 namespace views { 26 namespace views {
23 class DesktopNativeWidgetAura; 27 class DesktopNativeWidgetAura;
24 namespace internal { 28 namespace internal {
25 class InputMethodDelegate; 29 class InputMethodDelegate;
26 class NativeWidgetDelegate; 30 class NativeWidgetDelegate;
27 } 31 }
28 32
29 class VIEWS_EXPORT DesktopRootWindowHost { 33 class VIEWS_EXPORT DesktopRootWindowHost {
30 public: 34 public:
31 virtual ~DesktopRootWindowHost() {} 35 virtual ~DesktopRootWindowHost() {}
32 36
33 static DesktopRootWindowHost* Create( 37 static DesktopRootWindowHost* Create(
34 internal::NativeWidgetDelegate* native_widget_delegate, 38 internal::NativeWidgetDelegate* native_widget_delegate,
35 DesktopNativeWidgetAura* desktop_native_widget_aura, 39 DesktopNativeWidgetAura* desktop_native_widget_aura,
36 const gfx::Rect& initial_bounds); 40 const gfx::Rect& initial_bounds);
37 41
42 // Return the NativeTheme to use for |window|.
43 static ui::NativeTheme* GetNativeTheme(aura::Window* window);
44
38 // Creates the aura resources associated with the native window we built. 45 // Creates the aura resources associated with the native window we built.
39 // Caller takes ownership of returned RootWindow. 46 // Caller takes ownership of returned RootWindow.
40 virtual aura::RootWindow* Init(aura::Window* content_window, 47 virtual aura::RootWindow* Init(aura::Window* content_window,
41 const Widget::InitParams& params) = 0; 48 const Widget::InitParams& params) = 0;
42 49
43 virtual void Close() = 0; 50 virtual void Close() = 0;
44 virtual void CloseNow() = 0; 51 virtual void CloseNow() = 0;
45 52
46 virtual aura::RootWindowHost* AsRootWindowHost() = 0; 53 virtual aura::RootWindowHost* AsRootWindowHost() = 0;
47 54
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 117
111 // Called when the DesktopNativeWidgetAura's aura::Window is focused and 118 // Called when the DesktopNativeWidgetAura's aura::Window is focused and
112 // blurred. 119 // blurred.
113 virtual void OnNativeWidgetFocus() = 0; 120 virtual void OnNativeWidgetFocus() = 0;
114 virtual void OnNativeWidgetBlur() = 0; 121 virtual void OnNativeWidgetBlur() = 0;
115 }; 122 };
116 123
117 } // namespace views 124 } // namespace views
118 125
119 #endif // UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_H_ 126 #endif // UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_H_
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_native_widget_aura.cc ('k') | ui/views/widget/desktop_root_window_host_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698