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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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; | 61 virtual void SetCursor(PlatformCursor cursor) override; |
62 virtual void MoveCursorTo(const gfx::Point& location) override; | 62 virtual void MoveCursorTo(const gfx::Point& location) override; |
63 | 63 |
64 // PlatformEventDispatcher: | 64 // PlatformEventDispatcher: |
65 virtual bool CanDispatchEvent(const PlatformEvent& event) override; | 65 virtual bool CanDispatchEvent(const PlatformEvent& event) override; |
66 virtual uint32_t DispatchEvent(const PlatformEvent& event) override; | 66 virtual ui::PostDispatchAction DispatchEvent( |
| 67 const PlatformEvent& event) override; |
67 | 68 |
68 private: | 69 private: |
69 // Event polling. | 70 // Event polling. |
70 void TryProcessingEvent(); | 71 void TryProcessingEvent(); |
71 | 72 |
72 // Sync sizes with libcaca. | 73 // Sync sizes with libcaca. |
73 void UpdateDisplaySize(); | 74 void UpdateDisplaySize(); |
74 | 75 |
75 PlatformWindowDelegate* delegate_; | 76 PlatformWindowDelegate* delegate_; |
76 CacaWindowManager* manager_; | 77 CacaWindowManager* manager_; |
(...skipping 11 matching lines...) Expand all Loading... |
88 gfx::Size bitmap_size_; | 89 gfx::Size bitmap_size_; |
89 | 90 |
90 base::WeakPtrFactory<CacaWindow> weak_ptr_factory_; | 91 base::WeakPtrFactory<CacaWindow> weak_ptr_factory_; |
91 | 92 |
92 DISALLOW_COPY_AND_ASSIGN(CacaWindow); | 93 DISALLOW_COPY_AND_ASSIGN(CacaWindow); |
93 }; | 94 }; |
94 | 95 |
95 } // namespace ui | 96 } // namespace ui |
96 | 97 |
97 #endif // UI_OZONE_PLATFORM_CACA_CACA_WINDOW_H_ | 98 #endif // UI_OZONE_PLATFORM_CACA_CACA_WINDOW_H_ |
OLD | NEW |