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 26 matching lines...) Expand all Loading... |
37 // EventSource:: | 37 // EventSource:: |
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 UpdateTextInputState(const ui::TextInputState& state) override; | 48 void UpdateTextInputState(const ui::TextInputState& state) override; |
48 void SetImeVisibility(bool visible) override; | 49 void SetImeVisibility(bool visible) override; |
49 void UpdateViewportMetrics(const display::ViewportMetrics& metrics) override; | 50 void UpdateViewportMetrics(const display::ViewportMetrics& metrics) override; |
50 gfx::AcceleratedWidget GetAcceleratedWidget() const override; | 51 gfx::AcceleratedWidget GetAcceleratedWidget() const override; |
51 FrameGenerator* GetFrameGenerator() override; | 52 FrameGenerator* GetFrameGenerator() override; |
52 | 53 |
53 private: | 54 private: |
54 // ui::PlatformWindowDelegate: | 55 // ui::PlatformWindowDelegate: |
55 void OnBoundsChanged(const gfx::Rect& new_bounds) override; | 56 void OnBoundsChanged(const gfx::Rect& new_bounds) override; |
56 void OnDamageRect(const gfx::Rect& damaged_region) override; | 57 void OnDamageRect(const gfx::Rect& damaged_region) override; |
(...skipping 18 matching lines...) Expand all Loading... |
75 std::unique_ptr<ui::PlatformWindow> platform_window_; | 76 std::unique_ptr<ui::PlatformWindow> platform_window_; |
76 gfx::AcceleratedWidget widget_; | 77 gfx::AcceleratedWidget widget_; |
77 | 78 |
78 DISALLOW_COPY_AND_ASSIGN(PlatformDisplayDefault); | 79 DISALLOW_COPY_AND_ASSIGN(PlatformDisplayDefault); |
79 }; | 80 }; |
80 | 81 |
81 } // namespace ws | 82 } // namespace ws |
82 } // namespace ui | 83 } // namespace ui |
83 | 84 |
84 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_DEFAULT_H_ | 85 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_DEFAULT_H_ |
OLD | NEW |