OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PLATFORM_WINDOW_WIN_WIN_WINDOW_H_ | 5 #ifndef UI_PLATFORM_WINDOW_WIN_WIN_WINDOW_H_ |
6 #define UI_PLATFORM_WINDOW_WIN_WIN_WINDOW_H_ | 6 #define UI_PLATFORM_WINDOW_WIN_WIN_WINDOW_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "ui/gfx/win/window_impl.h" | 10 #include "ui/gfx/win/window_impl.h" |
11 #include "ui/platform_window/platform_window.h" | 11 #include "ui/platform_window/platform_window.h" |
12 #include "ui/platform_window/win/win_window_export.h" | 12 #include "ui/platform_window/win/win_window_export.h" |
13 | 13 |
14 namespace ui { | 14 namespace ui { |
15 | 15 |
| 16 class PlatformWindowDelegate; |
| 17 |
16 class WIN_WINDOW_EXPORT WinWindow : public NON_EXPORTED_BASE(PlatformWindow), | 18 class WIN_WINDOW_EXPORT WinWindow : public NON_EXPORTED_BASE(PlatformWindow), |
17 public gfx::WindowImpl { | 19 public gfx::WindowImpl { |
18 public: | 20 public: |
19 WinWindow(PlatformWindowDelegate* delegate, const gfx::Rect& bounds); | 21 WinWindow(PlatformWindowDelegate* delegate, const gfx::Rect& bounds); |
20 ~WinWindow() override; | 22 ~WinWindow() override; |
21 | 23 |
22 private: | 24 private: |
23 void Destroy(); | 25 void Destroy(); |
24 | 26 |
25 // PlatformWindow: | 27 // PlatformWindow: |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 // Set true to let WindowTreeHostWin use a popup window | 85 // Set true to let WindowTreeHostWin use a popup window |
84 // with no frame/title so that the window size and test's | 86 // with no frame/title so that the window size and test's |
85 // expectations matches. | 87 // expectations matches. |
86 WIN_WINDOW_EXPORT void SetUsePopupAsRootWindowForTest(bool use); | 88 WIN_WINDOW_EXPORT void SetUsePopupAsRootWindowForTest(bool use); |
87 | 89 |
88 } // namespace test | 90 } // namespace test |
89 | 91 |
90 } // namespace ui | 92 } // namespace ui |
91 | 93 |
92 #endif // UI_PLATFORM_WINDOW_WIN_WIN_WINDOW_H_ | 94 #endif // UI_PLATFORM_WINDOW_WIN_WIN_WINDOW_H_ |
OLD | NEW |