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_CACA_CACA_WINDOW_H_ | 5 #ifndef UI_OZONE_PLATFORM_CACA_CACA_WINDOW_H_ |
6 #define UI_OZONE_PLATFORM_CACA_CACA_WINDOW_H_ | 6 #define UI_OZONE_PLATFORM_CACA_CACA_WINDOW_H_ |
7 | 7 |
8 #include <caca.h> | 8 #include <caca.h> |
9 | 9 |
10 #include "base/debug/stack_trace.h" | 10 #include "base/debug/stack_trace.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 51 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
52 virtual void Show() OVERRIDE; | 52 virtual void Show() OVERRIDE; |
53 virtual void Hide() OVERRIDE; | 53 virtual void Hide() OVERRIDE; |
54 virtual void Close() OVERRIDE; | 54 virtual void Close() OVERRIDE; |
55 virtual void SetCapture() OVERRIDE; | 55 virtual void SetCapture() OVERRIDE; |
56 virtual void ReleaseCapture() OVERRIDE; | 56 virtual void ReleaseCapture() OVERRIDE; |
57 virtual void ToggleFullscreen() OVERRIDE; | 57 virtual void ToggleFullscreen() OVERRIDE; |
58 virtual void Maximize() OVERRIDE; | 58 virtual void Maximize() OVERRIDE; |
59 virtual void Minimize() OVERRIDE; | 59 virtual void Minimize() OVERRIDE; |
60 virtual void Restore() OVERRIDE; | 60 virtual void Restore() OVERRIDE; |
| 61 virtual void SetCursor(PlatformCursor cursor) OVERRIDE; |
| 62 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; |
61 | 63 |
62 // PlatformEventDispatcher: | 64 // PlatformEventDispatcher: |
63 virtual bool CanDispatchEvent(const PlatformEvent& event) OVERRIDE; | 65 virtual bool CanDispatchEvent(const PlatformEvent& event) OVERRIDE; |
64 virtual uint32_t DispatchEvent(const PlatformEvent& event) OVERRIDE; | 66 virtual uint32_t DispatchEvent(const PlatformEvent& event) OVERRIDE; |
65 | 67 |
66 private: | 68 private: |
67 // Event polling. | 69 // Event polling. |
68 void TryProcessingEvent(); | 70 void TryProcessingEvent(); |
69 | 71 |
70 // Sync sizes with libcaca. | 72 // Sync sizes with libcaca. |
(...skipping 15 matching lines...) Expand all Loading... |
86 gfx::Size bitmap_size_; | 88 gfx::Size bitmap_size_; |
87 | 89 |
88 base::WeakPtrFactory<CacaWindow> weak_ptr_factory_; | 90 base::WeakPtrFactory<CacaWindow> weak_ptr_factory_; |
89 | 91 |
90 DISALLOW_COPY_AND_ASSIGN(CacaWindow); | 92 DISALLOW_COPY_AND_ASSIGN(CacaWindow); |
91 }; | 93 }; |
92 | 94 |
93 } // namespace ui | 95 } // namespace ui |
94 | 96 |
95 #endif // UI_OZONE_PLATFORM_CACA_CACA_WINDOW_H_ | 97 #endif // UI_OZONE_PLATFORM_CACA_CACA_WINDOW_H_ |
OLD | NEW |