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

Side by Side Diff: ui/aura/root_window_host_win.h

Issue 10241005: Make win_aura work without ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 UI_AURA_ROOT_WINDOW_HOST_WIN_H_ 5 #ifndef UI_AURA_ROOT_WINDOW_HOST_WIN_H_
6 #define UI_AURA_ROOT_WINDOW_HOST_WIN_H_ 6 #define UI_AURA_ROOT_WINDOW_HOST_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ui/aura/root_window_host.h" 10 #include "ui/aura/root_window_host.h"
11 #include "ui/base/win/window_impl.h" 11 #include "ui/base/win/window_impl.h"
12 12
13 namespace ui {
14 class ViewProp;
15 }
16
13 namespace aura { 17 namespace aura {
14 18
15 class RootWindowHostWin : public RootWindowHost, public ui::WindowImpl { 19 class RootWindowHostWin : public RootWindowHost, public ui::WindowImpl {
16 public: 20 public:
17 explicit RootWindowHostWin(const gfx::Rect& bounds); 21 explicit RootWindowHostWin(const gfx::Rect& bounds);
18 virtual ~RootWindowHostWin(); 22 virtual ~RootWindowHostWin();
19 23
20 // RootWindowHost: 24 // RootWindowHost:
21 virtual void SetRootWindow(RootWindow* root_window) OVERRIDE; 25 virtual void SetRootWindow(RootWindow* root_window) OVERRIDE;
26 virtual RootWindow* GetRootWindow() OVERRIDE;
22 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; 27 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
23 virtual void Show() OVERRIDE; 28 virtual void Show() OVERRIDE;
24 virtual void ToggleFullScreen() OVERRIDE; 29 virtual void ToggleFullScreen() OVERRIDE;
25 virtual gfx::Rect GetBounds() const OVERRIDE; 30 virtual gfx::Rect GetBounds() const OVERRIDE;
26 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; 31 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
27 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; 32 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE;
28 virtual void SetCapture() OVERRIDE; 33 virtual void SetCapture() OVERRIDE;
29 virtual void ReleaseCapture() OVERRIDE; 34 virtual void ReleaseCapture() OVERRIDE;
30 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; 35 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE;
31 virtual void ShowCursor(bool show) OVERRIDE; 36 virtual void ShowCursor(bool show) OVERRIDE;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 void OnSize(UINT param, const CSize& size); 72 void OnSize(UINT param, const CSize& size);
68 73
69 RootWindow* root_window_; 74 RootWindow* root_window_;
70 75
71 bool fullscreen_; 76 bool fullscreen_;
72 bool has_capture_; 77 bool has_capture_;
73 RECT saved_window_rect_; 78 RECT saved_window_rect_;
74 DWORD saved_window_style_; 79 DWORD saved_window_style_;
75 DWORD saved_window_ex_style_; 80 DWORD saved_window_ex_style_;
76 81
82 scoped_ptr<ui::ViewProp> prop_;
83
77 DISALLOW_COPY_AND_ASSIGN(RootWindowHostWin); 84 DISALLOW_COPY_AND_ASSIGN(RootWindowHostWin);
78 }; 85 };
79 86
80 } // namespace aura 87 } // namespace aura
81 88
82 #endif // UI_AURA_ROOT_WINDOW_HOST_WIN_H_ 89 #endif // UI_AURA_ROOT_WINDOW_HOST_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698