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 COMPONENTS_MUS_WS_DISPLAY_MANAGER_H_ | 5 #ifndef COMPONENTS_MUS_WS_DISPLAY_MANAGER_H_ |
6 #define COMPONENTS_MUS_WS_DISPLAY_MANAGER_H_ | 6 #define COMPONENTS_MUS_WS_DISPLAY_MANAGER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 virtual void Init(DisplayManagerDelegate* delegate) = 0; | 70 virtual void Init(DisplayManagerDelegate* delegate) = 0; |
71 | 71 |
72 // Schedules a paint for the specified region in the coordinates of |window|. | 72 // Schedules a paint for the specified region in the coordinates of |window|. |
73 virtual void SchedulePaint(const ServerWindow* window, | 73 virtual void SchedulePaint(const ServerWindow* window, |
74 const gfx::Rect& bounds) = 0; | 74 const gfx::Rect& bounds) = 0; |
75 | 75 |
76 virtual void SetViewportSize(const gfx::Size& size) = 0; | 76 virtual void SetViewportSize(const gfx::Size& size) = 0; |
77 | 77 |
78 virtual void SetTitle(const base::string16& title) = 0; | 78 virtual void SetTitle(const base::string16& title) = 0; |
79 | 79 |
| 80 virtual void SetCapture() = 0; |
| 81 |
| 82 virtual void ReleaseCapture() = 0; |
| 83 |
80 virtual void SetCursorById(int32_t cursor) = 0; | 84 virtual void SetCursorById(int32_t cursor) = 0; |
81 | 85 |
82 virtual mojom::Rotation GetRotation() = 0; | 86 virtual mojom::Rotation GetRotation() = 0; |
83 | 87 |
84 virtual const mojom::ViewportMetrics& GetViewportMetrics() = 0; | 88 virtual const mojom::ViewportMetrics& GetViewportMetrics() = 0; |
85 | 89 |
86 virtual void UpdateTextInputState(const ui::TextInputState& state) = 0; | 90 virtual void UpdateTextInputState(const ui::TextInputState& state) = 0; |
87 virtual void SetImeVisibility(bool visible) = 0; | 91 virtual void SetImeVisibility(bool visible) = 0; |
88 | 92 |
89 // Returns true if a compositor frame has been submitted but not drawn yet. | 93 // Returns true if a compositor frame has been submitted but not drawn yet. |
(...skipping 22 matching lines...) Expand all Loading... |
112 const scoped_refptr<GpuState>& gpu_state, | 116 const scoped_refptr<GpuState>& gpu_state, |
113 const scoped_refptr<SurfacesState>& surfaces_state); | 117 const scoped_refptr<SurfacesState>& surfaces_state); |
114 ~DefaultDisplayManager() override; | 118 ~DefaultDisplayManager() override; |
115 | 119 |
116 // DisplayManager: | 120 // DisplayManager: |
117 void Init(DisplayManagerDelegate* delegate) override; | 121 void Init(DisplayManagerDelegate* delegate) override; |
118 void SchedulePaint(const ServerWindow* window, | 122 void SchedulePaint(const ServerWindow* window, |
119 const gfx::Rect& bounds) override; | 123 const gfx::Rect& bounds) override; |
120 void SetViewportSize(const gfx::Size& size) override; | 124 void SetViewportSize(const gfx::Size& size) override; |
121 void SetTitle(const base::string16& title) override; | 125 void SetTitle(const base::string16& title) override; |
| 126 void SetCapture() override; |
| 127 void ReleaseCapture() override; |
122 void SetCursorById(int32_t cursor) override; | 128 void SetCursorById(int32_t cursor) override; |
123 const mojom::ViewportMetrics& GetViewportMetrics() override; | 129 const mojom::ViewportMetrics& GetViewportMetrics() override; |
124 mojom::Rotation GetRotation() override; | 130 mojom::Rotation GetRotation() override; |
125 void UpdateTextInputState(const ui::TextInputState& state) override; | 131 void UpdateTextInputState(const ui::TextInputState& state) override; |
126 void SetImeVisibility(bool visible) override; | 132 void SetImeVisibility(bool visible) override; |
127 bool IsFramePending() const override; | 133 bool IsFramePending() const override; |
128 void RequestCopyOfOutput( | 134 void RequestCopyOfOutput( |
129 scoped_ptr<cc::CopyOutputRequest> output_request) override; | 135 scoped_ptr<cc::CopyOutputRequest> output_request) override; |
130 | 136 |
131 private: | 137 private: |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 base::WeakPtrFactory<DefaultDisplayManager> weak_factory_; | 182 base::WeakPtrFactory<DefaultDisplayManager> weak_factory_; |
177 | 183 |
178 DISALLOW_COPY_AND_ASSIGN(DefaultDisplayManager); | 184 DISALLOW_COPY_AND_ASSIGN(DefaultDisplayManager); |
179 }; | 185 }; |
180 | 186 |
181 } // namespace ws | 187 } // namespace ws |
182 | 188 |
183 } // namespace mus | 189 } // namespace mus |
184 | 190 |
185 #endif // COMPONENTS_MUS_WS_DISPLAY_MANAGER_H_ | 191 #endif // COMPONENTS_MUS_WS_DISPLAY_MANAGER_H_ |
OLD | NEW |