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" |
(...skipping 10 matching lines...) Expand all Loading... |
21 WinWindow(PlatformWindowDelegate* delegate, const gfx::Rect& bounds); | 21 WinWindow(PlatformWindowDelegate* delegate, const gfx::Rect& bounds); |
22 ~WinWindow() override; | 22 ~WinWindow() override; |
23 | 23 |
24 private: | 24 private: |
25 void Destroy(); | 25 void Destroy(); |
26 | 26 |
27 // PlatformWindow: | 27 // PlatformWindow: |
28 void Show() override; | 28 void Show() override; |
29 void Hide() override; | 29 void Hide() override; |
30 void Close() override; | 30 void Close() override; |
| 31 void PrepareForShutdown() override; |
31 void SetBounds(const gfx::Rect& bounds) override; | 32 void SetBounds(const gfx::Rect& bounds) override; |
32 gfx::Rect GetBounds() override; | 33 gfx::Rect GetBounds() override; |
33 void SetTitle(const base::string16& title) override; | 34 void SetTitle(const base::string16& title) override; |
34 void SetCapture() override; | 35 void SetCapture() override; |
35 void ReleaseCapture() override; | 36 void ReleaseCapture() override; |
36 void ToggleFullscreen() override; | 37 void ToggleFullscreen() override; |
37 void Maximize() override; | 38 void Maximize() override; |
38 void Minimize() override; | 39 void Minimize() override; |
39 void Restore() override; | 40 void Restore() override; |
40 void SetCursor(PlatformCursor cursor) override; | 41 void SetCursor(PlatformCursor cursor) override; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 // Set true to let WindowTreeHostWin use a popup window | 86 // Set true to let WindowTreeHostWin use a popup window |
86 // with no frame/title so that the window size and test's | 87 // with no frame/title so that the window size and test's |
87 // expectations matches. | 88 // expectations matches. |
88 WIN_WINDOW_EXPORT void SetUsePopupAsRootWindowForTest(bool use); | 89 WIN_WINDOW_EXPORT void SetUsePopupAsRootWindowForTest(bool use); |
89 | 90 |
90 } // namespace test | 91 } // namespace test |
91 | 92 |
92 } // namespace ui | 93 } // namespace ui |
93 | 94 |
94 #endif // UI_PLATFORM_WINDOW_WIN_WIN_WINDOW_H_ | 95 #endif // UI_PLATFORM_WINDOW_WIN_WIN_WINDOW_H_ |
OLD | NEW |