| 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 | 37 |
| 38 // EventSource:: | 38 // EventSource:: |
| 39 EventSink* GetEventSink() override; | 39 EventSink* GetEventSink() override; |
| 40 | 40 |
| 41 // PlatformDisplay: | 41 // PlatformDisplay: |
| 42 void Init(PlatformDisplayDelegate* delegate) override; | 42 void Init(PlatformDisplayDelegate* delegate) override; |
| 43 void SetViewportSize(const gfx::Size& size) override; | 43 void SetViewportSize(const gfx::Size& size) override; |
| 44 void SetTitle(const base::string16& title) override; | 44 void SetTitle(const base::string16& title) override; |
| 45 void SetCapture() override; | 45 void SetCapture() override; |
| 46 void ReleaseCapture() override; | 46 void ReleaseCapture() override; |
| 47 void SetCursorById(mojom::CursorType cursor) override; | 47 void SetCursor(const ui::CursorData& cursor) override; |
| 48 void UpdateTextInputState(const ui::TextInputState& state) override; | 48 void UpdateTextInputState(const ui::TextInputState& state) override; |
| 49 void SetImeVisibility(bool visible) override; | 49 void SetImeVisibility(bool visible) override; |
| 50 void UpdateViewportMetrics(const display::ViewportMetrics& metrics) override; | 50 void UpdateViewportMetrics(const display::ViewportMetrics& metrics) override; |
| 51 gfx::AcceleratedWidget GetAcceleratedWidget() const override; | 51 gfx::AcceleratedWidget GetAcceleratedWidget() const override; |
| 52 FrameGenerator* GetFrameGenerator() override; | 52 FrameGenerator* GetFrameGenerator() override; |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 // Update the root_location of located events to be relative to the origin | 55 // Update the root_location of located events to be relative to the origin |
| 56 // of this display. For example, if the origin of this display is (1800, 0) | 56 // of this display. For example, if the origin of this display is (1800, 0) |
| 57 // and the location of the event is (100, 200) then the root_location will be | 57 // and the location of the event is (100, 200) then the root_location will be |
| (...skipping 25 matching lines...) Expand all Loading... |
| 83 std::unique_ptr<ui::PlatformWindow> platform_window_; | 83 std::unique_ptr<ui::PlatformWindow> platform_window_; |
| 84 gfx::AcceleratedWidget widget_; | 84 gfx::AcceleratedWidget widget_; |
| 85 | 85 |
| 86 DISALLOW_COPY_AND_ASSIGN(PlatformDisplayDefault); | 86 DISALLOW_COPY_AND_ASSIGN(PlatformDisplayDefault); |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 } // namespace ws | 89 } // namespace ws |
| 90 } // namespace ui | 90 } // namespace ui |
| 91 | 91 |
| 92 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_DEFAULT_H_ | 92 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_DEFAULT_H_ |
| OLD | NEW |