| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 void Hide() override; | 53 void Hide() override; |
| 54 void Close() override; | 54 void Close() override; |
| 55 void SetCapture() override; | 55 void SetCapture() override; |
| 56 void ReleaseCapture() override; | 56 void ReleaseCapture() override; |
| 57 void ToggleFullscreen() override; | 57 void ToggleFullscreen() override; |
| 58 void Maximize() override; | 58 void Maximize() override; |
| 59 void Minimize() override; | 59 void Minimize() override; |
| 60 void Restore() override; | 60 void Restore() override; |
| 61 void SetCursor(PlatformCursor cursor) override; | 61 void SetCursor(PlatformCursor cursor) override; |
| 62 void MoveCursorTo(const gfx::Point& location) override; | 62 void MoveCursorTo(const gfx::Point& location) override; |
| 63 void ConfineCursorToBounds(const gfx::Rect& bounds) override; |
| 63 | 64 |
| 64 // PlatformEventDispatcher: | 65 // PlatformEventDispatcher: |
| 65 bool CanDispatchEvent(const PlatformEvent& event) override; | 66 bool CanDispatchEvent(const PlatformEvent& event) override; |
| 66 uint32_t DispatchEvent(const PlatformEvent& event) override; | 67 uint32_t DispatchEvent(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. |
| (...skipping 15 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 |