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_PLATFORM_WINDOW_H_ | 5 #ifndef UI_PLATFORM_WINDOW_PLATFORM_WINDOW_H_ |
6 #define UI_PLATFORM_WINDOW_PLATFORM_WINDOW_H_ | 6 #define UI_PLATFORM_WINDOW_PLATFORM_WINDOW_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "ui/base/cursor/cursor.h" | 9 #include "ui/base/cursor/cursor.h" |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... | |
34 virtual gfx::Rect GetBounds() = 0; | 34 virtual gfx::Rect GetBounds() = 0; |
35 | 35 |
36 virtual void SetCapture() = 0; | 36 virtual void SetCapture() = 0; |
37 virtual void ReleaseCapture() = 0; | 37 virtual void ReleaseCapture() = 0; |
38 | 38 |
39 virtual void ToggleFullscreen() = 0; | 39 virtual void ToggleFullscreen() = 0; |
40 virtual void Maximize() = 0; | 40 virtual void Maximize() = 0; |
41 virtual void Minimize() = 0; | 41 virtual void Minimize() = 0; |
42 virtual void Restore() = 0; | 42 virtual void Restore() = 0; |
43 | 43 |
44 virtual void SetCursor(PlatformCursor cursor) = 0; | 44 virtual void SetCursor(PlatformCursor cursor) = 0; |
pkotwicz
2015/01/23 03:40:27
We should have a comment about the coordinates of
spang
2015/01/23 18:18:40
Could call them "platform window coordinates". "Ho
| |
45 virtual void MoveCursorTo(const gfx::Point& location) = 0; | 45 virtual void MoveCursorTo(const gfx::Point& location) = 0; |
46 virtual void ConfineCursorToBounds(const gfx::Rect& bounds) = 0; | |
46 }; | 47 }; |
47 | 48 |
48 } // namespace ui | 49 } // namespace ui |
49 | 50 |
50 #endif // UI_PLATFORM_WINDOW_PLATFORM_WINDOW_H_ | 51 #endif // UI_PLATFORM_WINDOW_PLATFORM_WINDOW_H_ |
OLD | NEW |