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" |
10 #include "ui/base/win/window_impl.h" | 11 #include "ui/base/win/window_impl.h" |
11 | 12 |
12 namespace aura { | 13 namespace aura { |
13 | 14 |
14 class RootWindowHostWin : public RootWindowHost, public ui::WindowImpl { | 15 class RootWindowHostWin : public RootWindowHost, public ui::WindowImpl { |
15 public: | 16 public: |
16 RootWindowHostWin(const gfx::Rect& bounds); | 17 RootWindowHostWin(const gfx::Rect& bounds); |
17 virtual ~RootWindowHostWin(); | 18 virtual ~RootWindowHostWin(); |
18 // RootWindowHost: | 19 // RootWindowHost: |
19 virtual void SetDelegate(RootWindowHostDelegate* delegate) OVERRIDE; | 20 virtual void SetDelegate(RootWindowHostDelegate* delegate) OVERRIDE; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 | 82 |
82 bool fullscreen_; | 83 bool fullscreen_; |
83 bool has_capture_; | 84 bool has_capture_; |
84 RECT saved_window_rect_; | 85 RECT saved_window_rect_; |
85 DWORD saved_window_style_; | 86 DWORD saved_window_style_; |
86 DWORD saved_window_ex_style_; | 87 DWORD saved_window_ex_style_; |
87 | 88 |
88 DISALLOW_COPY_AND_ASSIGN(RootWindowHostWin); | 89 DISALLOW_COPY_AND_ASSIGN(RootWindowHostWin); |
89 }; | 90 }; |
90 | 91 |
| 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 |
91 } // namespace aura | 101 } // namespace aura |
92 | 102 |
93 #endif // UI_AURA_ROOT_WINDOW_HOST_WIN_H_ | 103 #endif // UI_AURA_ROOT_WINDOW_HOST_WIN_H_ |
OLD | NEW |