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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_root_window_host_win.h

Issue 76583003: Rename RootWindowHost* to WindowTreeHost* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years 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_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_
7 7
8 #include "ui/aura/client/animation_host.h" 8 #include "ui/aura/client/animation_host.h"
9 #include "ui/aura/window_tree_host.h" 9 #include "ui/aura/window_tree_host.h"
10 #include "ui/views/views_export.h" 10 #include "ui/views/views_export.h"
11 #include "ui/views/widget/desktop_aura/desktop_root_window_host.h" 11 #include "ui/views/widget/desktop_aura/desktop_root_window_host.h"
12 #include "ui/views/win/hwnd_message_handler_delegate.h" 12 #include "ui/views/win/hwnd_message_handler_delegate.h"
13 13
14 namespace aura { 14 namespace aura {
15 namespace client { 15 namespace client {
16 class DragDropClient; 16 class DragDropClient;
17 class FocusClient; 17 class FocusClient;
18 } 18 }
19 } 19 }
20 20
21 namespace views { 21 namespace views {
22 class DesktopCursorClient; 22 class DesktopCursorClient;
23 class DesktopDragDropClientWin; 23 class DesktopDragDropClientWin;
24 class HWNDMessageHandler; 24 class HWNDMessageHandler;
25 25
26 namespace corewm { 26 namespace corewm {
27 class TooltipWin; 27 class TooltipWin;
28 } 28 }
29 29
30 class VIEWS_EXPORT DesktopRootWindowHostWin 30 class VIEWS_EXPORT DesktopWindowTreeHostWin
31 : public DesktopRootWindowHost, 31 : public DesktopWindowTreeHost,
32 public aura::client::AnimationHost, 32 public aura::client::AnimationHost,
33 public aura::RootWindowHost, 33 public aura::WindowTreeHost,
34 public HWNDMessageHandlerDelegate { 34 public HWNDMessageHandlerDelegate {
35 public: 35 public:
36 DesktopRootWindowHostWin( 36 DesktopWindowTreeHostWin(
37 internal::NativeWidgetDelegate* native_widget_delegate, 37 internal::NativeWidgetDelegate* native_widget_delegate,
38 DesktopNativeWidgetAura* desktop_native_widget_aura); 38 DesktopNativeWidgetAura* desktop_native_widget_aura);
39 virtual ~DesktopRootWindowHostWin(); 39 virtual ~DesktopWindowTreeHostWin();
40 40
41 // A way of converting an HWND into a content window. 41 // A way of converting an HWND into a content window.
42 static aura::Window* GetContentWindowForHWND(HWND hwnd); 42 static aura::Window* GetContentWindowForHWND(HWND hwnd);
43 43
44 protected: 44 protected:
45 // Overridden from DesktopRootWindowHost: 45 // Overridden from DesktopWindowTreeHost:
46 virtual void Init(aura::Window* content_window, 46 virtual void Init(aura::Window* content_window,
47 const Widget::InitParams& params, 47 const Widget::InitParams& params,
48 aura::RootWindow::CreateParams* rw_create_params) OVERRIDE; 48 aura::RootWindow::CreateParams* rw_create_params) OVERRIDE;
49 virtual void OnRootWindowCreated(aura::RootWindow* root, 49 virtual void OnRootWindowCreated(aura::RootWindow* root,
50 const Widget::InitParams& params) OVERRIDE; 50 const Widget::InitParams& params) OVERRIDE;
51 virtual scoped_ptr<corewm::Tooltip> CreateTooltip() OVERRIDE; 51 virtual scoped_ptr<corewm::Tooltip> CreateTooltip() OVERRIDE;
52 virtual scoped_ptr<aura::client::DragDropClient> 52 virtual scoped_ptr<aura::client::DragDropClient>
53 CreateDragDropClient(DesktopNativeCursorManager* cursor_manager) OVERRIDE; 53 CreateDragDropClient(DesktopNativeCursorManager* cursor_manager) OVERRIDE;
54 virtual void Close() OVERRIDE; 54 virtual void Close() OVERRIDE;
55 virtual void CloseNow() OVERRIDE; 55 virtual void CloseNow() OVERRIDE;
56 virtual aura::RootWindowHost* AsRootWindowHost() OVERRIDE; 56 virtual aura::WindowTreeHost* AsWindowTreeHost() OVERRIDE;
57 virtual void ShowWindowWithState(ui::WindowShowState show_state) OVERRIDE; 57 virtual void ShowWindowWithState(ui::WindowShowState show_state) OVERRIDE;
58 virtual void ShowMaximizedWithBounds( 58 virtual void ShowMaximizedWithBounds(
59 const gfx::Rect& restored_bounds) OVERRIDE; 59 const gfx::Rect& restored_bounds) OVERRIDE;
60 virtual bool IsVisible() const OVERRIDE; 60 virtual bool IsVisible() const OVERRIDE;
61 virtual void SetSize(const gfx::Size& size) OVERRIDE; 61 virtual void SetSize(const gfx::Size& size) OVERRIDE;
62 virtual void StackAtTop() OVERRIDE; 62 virtual void StackAtTop() OVERRIDE;
63 virtual void CenterWindow(const gfx::Size& size) OVERRIDE; 63 virtual void CenterWindow(const gfx::Size& size) OVERRIDE;
64 virtual void GetWindowPlacement( 64 virtual void GetWindowPlacement(
65 gfx::Rect* bounds, 65 gfx::Rect* bounds,
66 ui::WindowShowState* show_state) const OVERRIDE; 66 ui::WindowShowState* show_state) const OVERRIDE;
(...skipping 29 matching lines...) Expand all
96 virtual void SetOpacity(unsigned char opacity) OVERRIDE; 96 virtual void SetOpacity(unsigned char opacity) OVERRIDE;
97 virtual void SetWindowIcons(const gfx::ImageSkia& window_icon, 97 virtual void SetWindowIcons(const gfx::ImageSkia& window_icon,
98 const gfx::ImageSkia& app_icon) OVERRIDE; 98 const gfx::ImageSkia& app_icon) OVERRIDE;
99 virtual void InitModalType(ui::ModalType modal_type) OVERRIDE; 99 virtual void InitModalType(ui::ModalType modal_type) OVERRIDE;
100 virtual void FlashFrame(bool flash_frame) OVERRIDE; 100 virtual void FlashFrame(bool flash_frame) OVERRIDE;
101 virtual void OnRootViewLayout() const OVERRIDE; 101 virtual void OnRootViewLayout() const OVERRIDE;
102 virtual void OnNativeWidgetFocus() OVERRIDE; 102 virtual void OnNativeWidgetFocus() OVERRIDE;
103 virtual void OnNativeWidgetBlur() OVERRIDE; 103 virtual void OnNativeWidgetBlur() OVERRIDE;
104 virtual bool IsAnimatingClosed() const OVERRIDE; 104 virtual bool IsAnimatingClosed() const OVERRIDE;
105 105
106 // Overridden from aura::RootWindowHost: 106 // Overridden from aura::WindowTreeHost:
107 virtual aura::RootWindow* GetRootWindow() OVERRIDE; 107 virtual aura::RootWindow* GetRootWindow() OVERRIDE;
108 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; 108 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
109 virtual void Show() OVERRIDE; 109 virtual void Show() OVERRIDE;
110 virtual void Hide() OVERRIDE; 110 virtual void Hide() OVERRIDE;
111 virtual void ToggleFullScreen() OVERRIDE; 111 virtual void ToggleFullScreen() OVERRIDE;
112 virtual gfx::Rect GetBounds() const OVERRIDE; 112 virtual gfx::Rect GetBounds() const OVERRIDE;
113 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; 113 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
114 virtual gfx::Insets GetInsets() const OVERRIDE; 114 virtual gfx::Insets GetInsets() const OVERRIDE;
115 virtual void SetInsets(const gfx::Insets& insets) OVERRIDE; 115 virtual void SetInsets(const gfx::Insets& insets) OVERRIDE;
116 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; 116 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE;
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 // Init time, before the Widget has created the NonClientView. 262 // Init time, before the Widget has created the NonClientView.
263 bool has_non_client_view_; 263 bool has_non_client_view_;
264 264
265 // Owned by TooltipController, but we need to forward events to it so we keep 265 // Owned by TooltipController, but we need to forward events to it so we keep
266 // a reference. 266 // a reference.
267 corewm::TooltipWin* tooltip_; 267 corewm::TooltipWin* tooltip_;
268 268
269 // State of the cursor. 269 // State of the cursor.
270 bool is_cursor_visible_; 270 bool is_cursor_visible_;
271 271
272 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostWin); 272 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostWin);
273 }; 273 };
274 274
275 } // namespace views 275 } // namespace views
276 276
277 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ 277 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698