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

Side by Side Diff: chrome/browser/ui/views/frame/browser_desktop_root_window_host_win.h

Issue 126513004: Rename RootWindowHost to WindowTreeHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 11 months 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 CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_DESKTOP_ROOT_WINDOW_HOST_WIN_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_DESKTOP_ROOT_WINDOW_HOST_WIN_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 #include <uxtheme.h> 9 #include <uxtheme.h>
10 10
11 #include "ui/views/widget/desktop_aura/desktop_root_window_host_win.h" 11 #include "ui/views/widget/desktop_aura/desktop_root_window_host_win.h"
12 #include "chrome/browser/ui/views/frame/browser_desktop_root_window_host.h" 12 #include "chrome/browser/ui/views/frame/browser_desktop_root_window_host.h"
13 #include "chrome/browser/ui/views/frame/minimize_button_metrics_win.h" 13 #include "chrome/browser/ui/views/frame/minimize_button_metrics_win.h"
14 14
15 class BrowserFrame; 15 class BrowserFrame;
16 class BrowserView; 16 class BrowserView;
17 class BrowserWindowPropertyManager; 17 class BrowserWindowPropertyManager;
18 18
19 namespace views { 19 namespace views {
20 class DesktopNativeWidgetAura; 20 class DesktopNativeWidgetAura;
21 class NativeMenuWin; 21 class NativeMenuWin;
22 } 22 }
23 23
24 class BrowserDesktopRootWindowHostWin : public BrowserDesktopRootWindowHost, 24 class BrowserDesktopWindowTreeHostWin : public BrowserDesktopWindowTreeHost,
25 public views::DesktopRootWindowHostWin { 25 public views::DesktopWindowTreeHostWin {
26 public: 26 public:
27 BrowserDesktopRootWindowHostWin( 27 BrowserDesktopWindowTreeHostWin(
28 views::internal::NativeWidgetDelegate* native_widget_delegate, 28 views::internal::NativeWidgetDelegate* native_widget_delegate,
29 views::DesktopNativeWidgetAura* desktop_native_widget_aura, 29 views::DesktopNativeWidgetAura* desktop_native_widget_aura,
30 BrowserView* browser_view, 30 BrowserView* browser_view,
31 BrowserFrame* browser_frame); 31 BrowserFrame* browser_frame);
32 virtual ~BrowserDesktopRootWindowHostWin(); 32 virtual ~BrowserDesktopWindowTreeHostWin();
33 33
34 private: 34 private:
35 views::NativeMenuWin* GetSystemMenu(); 35 views::NativeMenuWin* GetSystemMenu();
36 36
37 // Overridden from BrowserDesktopRootWindowHost: 37 // Overridden from BrowserDesktopWindowTreeHost:
38 virtual DesktopRootWindowHost* AsDesktopRootWindowHost() OVERRIDE; 38 virtual DesktopWindowTreeHost* AsDesktopWindowTreeHost() OVERRIDE;
39 virtual int GetMinimizeButtonOffset() const OVERRIDE; 39 virtual int GetMinimizeButtonOffset() const OVERRIDE;
40 virtual bool UsesNativeSystemMenu() const OVERRIDE; 40 virtual bool UsesNativeSystemMenu() const OVERRIDE;
41 41
42 // Overridden from DesktopRootWindowHostWin: 42 // Overridden from DesktopWindowTreeHostWin:
43 virtual int GetInitialShowState() const OVERRIDE; 43 virtual int GetInitialShowState() const OVERRIDE;
44 virtual bool GetClientAreaInsets(gfx::Insets* insets) const OVERRIDE; 44 virtual bool GetClientAreaInsets(gfx::Insets* insets) const OVERRIDE;
45 virtual void HandleCreate() OVERRIDE; 45 virtual void HandleCreate() OVERRIDE;
46 virtual void HandleFrameChanged() OVERRIDE; 46 virtual void HandleFrameChanged() OVERRIDE;
47 virtual bool PreHandleMSG(UINT message, 47 virtual bool PreHandleMSG(UINT message,
48 WPARAM w_param, 48 WPARAM w_param,
49 LPARAM l_param, 49 LPARAM l_param,
50 LRESULT* result) OVERRIDE; 50 LRESULT* result) OVERRIDE;
51 virtual void PostHandleMSG(UINT message, 51 virtual void PostHandleMSG(UINT message,
52 WPARAM w_param, 52 WPARAM w_param,
(...skipping 12 matching lines...) Expand all
65 MinimizeButtonMetrics minimize_button_metrics_; 65 MinimizeButtonMetrics minimize_button_metrics_;
66 66
67 scoped_ptr<BrowserWindowPropertyManager> browser_window_property_manager_; 67 scoped_ptr<BrowserWindowPropertyManager> browser_window_property_manager_;
68 68
69 // The wrapped system menu itself. 69 // The wrapped system menu itself.
70 scoped_ptr<views::NativeMenuWin> system_menu_; 70 scoped_ptr<views::NativeMenuWin> system_menu_;
71 71
72 // Necessary to avoid corruption on NC paint in Aero mode. 72 // Necessary to avoid corruption on NC paint in Aero mode.
73 bool did_gdi_clear_; 73 bool did_gdi_clear_;
74 74
75 DISALLOW_COPY_AND_ASSIGN(BrowserDesktopRootWindowHostWin); 75 DISALLOW_COPY_AND_ASSIGN(BrowserDesktopWindowTreeHostWin);
76 }; 76 };
77 77
78 78
79 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ 79 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_DESKTOP_ROOT_WINDOW_HOST_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698