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_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 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "ui/aura/root_window_host.h" | 9 #include "ui/aura/root_window_host.h" |
10 #include "ui/base/ui_export.h" | |
11 #include "ui/base/win/window_impl.h" | 10 #include "ui/base/win/window_impl.h" |
12 | 11 |
13 namespace aura { | 12 namespace aura { |
14 | 13 |
15 class RootWindowHostWin : public RootWindowHost, public ui::WindowImpl { | 14 class RootWindowHostWin : public RootWindowHost, public ui::WindowImpl { |
16 public: | 15 public: |
17 RootWindowHostWin(const gfx::Rect& bounds); | 16 RootWindowHostWin(const gfx::Rect& bounds); |
18 virtual ~RootWindowHostWin(); | 17 virtual ~RootWindowHostWin(); |
19 // RootWindowHost: | 18 // RootWindowHost: |
20 virtual void SetDelegate(RootWindowHostDelegate* delegate) OVERRIDE; | 19 virtual void SetDelegate(RootWindowHostDelegate* delegate) OVERRIDE; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 81 |
83 bool fullscreen_; | 82 bool fullscreen_; |
84 bool has_capture_; | 83 bool has_capture_; |
85 RECT saved_window_rect_; | 84 RECT saved_window_rect_; |
86 DWORD saved_window_style_; | 85 DWORD saved_window_style_; |
87 DWORD saved_window_ex_style_; | 86 DWORD saved_window_ex_style_; |
88 | 87 |
89 DISALLOW_COPY_AND_ASSIGN(RootWindowHostWin); | 88 DISALLOW_COPY_AND_ASSIGN(RootWindowHostWin); |
90 }; | 89 }; |
91 | 90 |
92 namespace test { | |
93 | |
94 // Set true to let RootWindowHostWin use a popup window | |
95 // with no frame/title so that the window size and test's | |
96 // expectations matches. | |
97 AURA_EXPORT void SetUsePopupAsRootWindowForTest(bool use); | |
98 | |
99 } // namespace | |
100 | |
101 } // namespace aura | 91 } // namespace aura |
102 | 92 |
103 #endif // UI_AURA_ROOT_WINDOW_HOST_WIN_H_ | 93 #endif // UI_AURA_ROOT_WINDOW_HOST_WIN_H_ |
OLD | NEW |