| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 SERVICES_UI_WS_PLATFORM_DISPLAY_DEFAULT_H_ | 5 #ifndef SERVICES_UI_WS_PLATFORM_DISPLAY_DEFAULT_H_ |
| 6 #define SERVICES_UI_WS_PLATFORM_DISPLAY_DEFAULT_H_ | 6 #define SERVICES_UI_WS_PLATFORM_DISPLAY_DEFAULT_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 EventSink* GetEventSink() override; | 38 EventSink* GetEventSink() override; |
| 39 | 39 |
| 40 // PlatformDisplay: | 40 // PlatformDisplay: |
| 41 void Init(PlatformDisplayDelegate* delegate) override; | 41 void Init(PlatformDisplayDelegate* delegate) override; |
| 42 void SetViewportSize(const gfx::Size& size) override; | 42 void SetViewportSize(const gfx::Size& size) override; |
| 43 void SetTitle(const base::string16& title) override; | 43 void SetTitle(const base::string16& title) override; |
| 44 void SetCapture() override; | 44 void SetCapture() override; |
| 45 void ReleaseCapture() override; | 45 void ReleaseCapture() override; |
| 46 void SetCursor(const ui::CursorData& cursor) override; | 46 void SetCursor(const ui::CursorData& cursor) override; |
| 47 void MoveCursorTo(const gfx::Point& window_pixel_location) override; | 47 void MoveCursorTo(const gfx::Point& window_pixel_location) override; |
| 48 void SetCursorSize(const ui::CursorSize& cursor_size) override; |
| 48 void UpdateTextInputState(const ui::TextInputState& state) override; | 49 void UpdateTextInputState(const ui::TextInputState& state) override; |
| 49 void SetImeVisibility(bool visible) override; | 50 void SetImeVisibility(bool visible) override; |
| 50 void UpdateViewportMetrics(const display::ViewportMetrics& metrics) override; | 51 void UpdateViewportMetrics(const display::ViewportMetrics& metrics) override; |
| 51 gfx::AcceleratedWidget GetAcceleratedWidget() const override; | 52 gfx::AcceleratedWidget GetAcceleratedWidget() const override; |
| 52 FrameGenerator* GetFrameGenerator() override; | 53 FrameGenerator* GetFrameGenerator() override; |
| 53 | 54 |
| 54 private: | 55 private: |
| 55 // ui::PlatformWindowDelegate: | 56 // ui::PlatformWindowDelegate: |
| 56 void OnBoundsChanged(const gfx::Rect& new_bounds) override; | 57 void OnBoundsChanged(const gfx::Rect& new_bounds) override; |
| 57 void OnDamageRect(const gfx::Rect& damaged_region) override; | 58 void OnDamageRect(const gfx::Rect& damaged_region) override; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 76 std::unique_ptr<ui::PlatformWindow> platform_window_; | 77 std::unique_ptr<ui::PlatformWindow> platform_window_; |
| 77 gfx::AcceleratedWidget widget_; | 78 gfx::AcceleratedWidget widget_; |
| 78 | 79 |
| 79 DISALLOW_COPY_AND_ASSIGN(PlatformDisplayDefault); | 80 DISALLOW_COPY_AND_ASSIGN(PlatformDisplayDefault); |
| 80 }; | 81 }; |
| 81 | 82 |
| 82 } // namespace ws | 83 } // namespace ws |
| 83 } // namespace ui | 84 } // namespace ui |
| 84 | 85 |
| 85 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_DEFAULT_H_ | 86 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_DEFAULT_H_ |
| OLD | NEW |