| 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 SERVICES_UI_WS_PLATFORM_DISPLAY_H_ | 5 #ifndef SERVICES_UI_WS_PLATFORM_DISPLAY_H_ |
| 6 #define SERVICES_UI_WS_PLATFORM_DISPLAY_H_ | 6 #define SERVICES_UI_WS_PLATFORM_DISPLAY_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 virtual void Init(PlatformDisplayDelegate* delegate) = 0; | 39 virtual void Init(PlatformDisplayDelegate* delegate) = 0; |
| 40 | 40 |
| 41 virtual void SetViewportSize(const gfx::Size& size) = 0; | 41 virtual void SetViewportSize(const gfx::Size& size) = 0; |
| 42 | 42 |
| 43 virtual void SetTitle(const base::string16& title) = 0; | 43 virtual void SetTitle(const base::string16& title) = 0; |
| 44 | 44 |
| 45 virtual void SetCapture() = 0; | 45 virtual void SetCapture() = 0; |
| 46 | 46 |
| 47 virtual void ReleaseCapture() = 0; | 47 virtual void ReleaseCapture() = 0; |
| 48 | 48 |
| 49 virtual void SetCursorById(mojom::CursorType cursor) = 0; | 49 virtual void SetCursor(const ui::CursorData& cursor) = 0; |
| 50 | 50 |
| 51 virtual void UpdateTextInputState(const ui::TextInputState& state) = 0; | 51 virtual void UpdateTextInputState(const ui::TextInputState& state) = 0; |
| 52 virtual void SetImeVisibility(bool visible) = 0; | 52 virtual void SetImeVisibility(bool visible) = 0; |
| 53 | 53 |
| 54 // Updates the viewport metrics for the display. | 54 // Updates the viewport metrics for the display. |
| 55 virtual void UpdateViewportMetrics( | 55 virtual void UpdateViewportMetrics( |
| 56 const display::ViewportMetrics& metrics) = 0; | 56 const display::ViewportMetrics& metrics) = 0; |
| 57 | 57 |
| 58 // Returns the AcceleratedWidget associated with the Display. It can return | 58 // Returns the AcceleratedWidget associated with the Display. It can return |
| 59 // kNullAcceleratedWidget if the accelerated widget is not available yet. | 59 // kNullAcceleratedWidget if the accelerated widget is not available yet. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 70 private: | 70 private: |
| 71 // Static factory instance (always NULL for non-test). | 71 // Static factory instance (always NULL for non-test). |
| 72 static PlatformDisplayFactory* factory_; | 72 static PlatformDisplayFactory* factory_; |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 | 75 |
| 76 } // namespace ws | 76 } // namespace ws |
| 77 } // namespace ui | 77 } // namespace ui |
| 78 | 78 |
| 79 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_H_ | 79 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_H_ |
| OLD | NEW |