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_OZONE_PLATFORM_TEST_TEST_WINDOW_H_ | 5 #ifndef UI_OZONE_PLATFORM_TEST_TEST_WINDOW_H_ |
6 #define UI_OZONE_PLATFORM_TEST_TEST_WINDOW_H_ | 6 #define UI_OZONE_PLATFORM_TEST_TEST_WINDOW_H_ |
7 | 7 |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "ui/events/platform/platform_event_dispatcher.h" | 9 #include "ui/events/platform/platform_event_dispatcher.h" |
10 #include "ui/gfx/geometry/rect.h" | 10 #include "ui/gfx/geometry/rect.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 31 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
32 virtual void Show() OVERRIDE; | 32 virtual void Show() OVERRIDE; |
33 virtual void Hide() OVERRIDE; | 33 virtual void Hide() OVERRIDE; |
34 virtual void Close() OVERRIDE; | 34 virtual void Close() OVERRIDE; |
35 virtual void SetCapture() OVERRIDE; | 35 virtual void SetCapture() OVERRIDE; |
36 virtual void ReleaseCapture() OVERRIDE; | 36 virtual void ReleaseCapture() OVERRIDE; |
37 virtual void ToggleFullscreen() OVERRIDE; | 37 virtual void ToggleFullscreen() OVERRIDE; |
38 virtual void Maximize() OVERRIDE; | 38 virtual void Maximize() OVERRIDE; |
39 virtual void Minimize() OVERRIDE; | 39 virtual void Minimize() OVERRIDE; |
40 virtual void Restore() OVERRIDE; | 40 virtual void Restore() OVERRIDE; |
| 41 virtual void SetCursor(PlatformCursor cursor) OVERRIDE; |
| 42 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; |
41 | 43 |
42 // PlatformEventDispatcher: | 44 // PlatformEventDispatcher: |
43 virtual bool CanDispatchEvent(const PlatformEvent& event) OVERRIDE; | 45 virtual bool CanDispatchEvent(const PlatformEvent& event) OVERRIDE; |
44 virtual uint32_t DispatchEvent(const PlatformEvent& event) OVERRIDE; | 46 virtual uint32_t DispatchEvent(const PlatformEvent& event) OVERRIDE; |
45 | 47 |
46 private: | 48 private: |
47 PlatformWindowDelegate* delegate_; | 49 PlatformWindowDelegate* delegate_; |
48 TestWindowManager* manager_; | 50 TestWindowManager* manager_; |
49 gfx::Rect bounds_; | 51 gfx::Rect bounds_; |
50 gfx::AcceleratedWidget widget_; | 52 gfx::AcceleratedWidget widget_; |
51 | 53 |
52 DISALLOW_COPY_AND_ASSIGN(TestWindow); | 54 DISALLOW_COPY_AND_ASSIGN(TestWindow); |
53 }; | 55 }; |
54 | 56 |
55 } // namespace ui | 57 } // namespace ui |
56 | 58 |
57 #endif // UI_OZONE_PLATFORM_TEST_TEST_WINDOW_H_ | 59 #endif // UI_OZONE_PLATFORM_TEST_TEST_WINDOW_H_ |
OLD | NEW |