OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef UI_PLATFORM_WINDOW_PLATFORM_WINDOW_H_ | |
6 #define UI_PLATFORM_WINDOW_PLATFORM_WINDOW_H_ | |
7 | |
8 #include "base/memory/scoped_ptr.h" | |
9 #include "ui/platform_window/platform_window_export.h" | |
10 | |
11 namespace gfx { | |
12 class Rect; | |
13 } | |
14 | |
15 namespace ui { | |
16 | |
17 class PlatformWindowDelegate; | |
18 | |
19 class PLATFORM_WINDOW_EXPORT PlatformWindow { | |
spang
2014/07/14 17:02:29
I added some comments here in my version (and on e
sadrul
2014/07/14 17:36:20
Done.
| |
20 public: | |
21 virtual ~PlatformWindow() {} | |
22 | |
23 virtual void Show() = 0; | |
24 virtual void Hide() = 0; | |
25 virtual void Close() = 0; | |
26 | |
27 virtual void SetBounds(const gfx::Rect& bounds) = 0; | |
spang
2014/07/14 17:02:29
Should we have GetBounds?
Then WindowTreeHost can
sadrul
2014/07/14 17:14:35
I considered doing this, but maybe it makes sense
sadrul
2014/07/14 17:36:20
Done.
| |
28 | |
29 virtual void SetCapture() = 0; | |
30 virtual void ReleaseCapture() = 0; | |
31 | |
32 virtual void ToggleFullscreen() = 0; | |
33 virtual void Maximize() = 0; | |
34 virtual void Minimize() = 0; | |
35 virtual void Restore() = 0; | |
36 }; | |
37 | |
38 } // namespace ui | |
39 | |
40 #endif // UI_PLATFORM_WINDOW_PLATFORM_WINDOW_H_ | |
OLD | NEW |