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_PLATFORM_DISPLAY_H_ | 5 #ifndef COMPONENTS_MUS_WS_PLATFORM_DISPLAY_H_ |
6 #define COMPONENTS_MUS_WS_PLATFORM_DISPLAY_H_ | 6 #define COMPONENTS_MUS_WS_PLATFORM_DISPLAY_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 17 matching lines...) Expand all Loading... |
28 class CompositorFrame; | 28 class CompositorFrame; |
29 class CopyOutputRequest; | 29 class CopyOutputRequest; |
30 class SurfaceIdAllocator; | 30 class SurfaceIdAllocator; |
31 class SurfaceManager; | 31 class SurfaceManager; |
32 } // namespace cc | 32 } // namespace cc |
33 | 33 |
34 namespace gles2 { | 34 namespace gles2 { |
35 class GpuState; | 35 class GpuState; |
36 } // namespace gles2 | 36 } // namespace gles2 |
37 | 37 |
38 namespace mojo { | 38 namespace shell { |
39 class Connector; | 39 class Connector; |
40 } // namespace mojo | 40 } // namespace shell |
41 | 41 |
42 namespace ui { | 42 namespace ui { |
43 class CursorLoader; | 43 class CursorLoader; |
44 class PlatformWindow; | 44 class PlatformWindow; |
45 struct TextInputState; | 45 struct TextInputState; |
46 } // namespace ui | 46 } // namespace ui |
47 | 47 |
48 namespace mus { | 48 namespace mus { |
49 | 49 |
50 class GpuState; | 50 class GpuState; |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 void DispatchEvent(ui::Event* event) override; | 150 void DispatchEvent(ui::Event* event) override; |
151 void OnCloseRequest() override; | 151 void OnCloseRequest() override; |
152 void OnClosed() override; | 152 void OnClosed() override; |
153 void OnWindowStateChanged(ui::PlatformWindowState new_state) override; | 153 void OnWindowStateChanged(ui::PlatformWindowState new_state) override; |
154 void OnLostCapture() override; | 154 void OnLostCapture() override; |
155 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget, | 155 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget, |
156 float device_pixel_ratio) override; | 156 float device_pixel_ratio) override; |
157 void OnAcceleratedWidgetDestroyed() override; | 157 void OnAcceleratedWidgetDestroyed() override; |
158 void OnActivationChanged(bool active) override; | 158 void OnActivationChanged(bool active) override; |
159 | 159 |
160 mojo::Connector* connector_; | 160 shell::Connector* connector_; |
161 scoped_refptr<GpuState> gpu_state_; | 161 scoped_refptr<GpuState> gpu_state_; |
162 scoped_refptr<SurfacesState> surfaces_state_; | 162 scoped_refptr<SurfacesState> surfaces_state_; |
163 PlatformDisplayDelegate* delegate_; | 163 PlatformDisplayDelegate* delegate_; |
164 | 164 |
165 mojom::ViewportMetrics metrics_; | 165 mojom::ViewportMetrics metrics_; |
166 gfx::Rect dirty_rect_; | 166 gfx::Rect dirty_rect_; |
167 base::Timer draw_timer_; | 167 base::Timer draw_timer_; |
168 bool frame_pending_; | 168 bool frame_pending_; |
169 | 169 |
170 scoped_ptr<TopLevelDisplayClient> top_level_display_client_; | 170 scoped_ptr<TopLevelDisplayClient> top_level_display_client_; |
171 scoped_ptr<ui::PlatformWindow> platform_window_; | 171 scoped_ptr<ui::PlatformWindow> platform_window_; |
172 | 172 |
173 #if !defined(OS_ANDROID) | 173 #if !defined(OS_ANDROID) |
174 scoped_ptr<ui::CursorLoader> cursor_loader_; | 174 scoped_ptr<ui::CursorLoader> cursor_loader_; |
175 #endif | 175 #endif |
176 | 176 |
177 base::WeakPtrFactory<DefaultPlatformDisplay> weak_factory_; | 177 base::WeakPtrFactory<DefaultPlatformDisplay> weak_factory_; |
178 | 178 |
179 DISALLOW_COPY_AND_ASSIGN(DefaultPlatformDisplay); | 179 DISALLOW_COPY_AND_ASSIGN(DefaultPlatformDisplay); |
180 }; | 180 }; |
181 | 181 |
182 } // namespace ws | 182 } // namespace ws |
183 | 183 |
184 } // namespace mus | 184 } // namespace mus |
185 | 185 |
186 #endif // COMPONENTS_MUS_WS_PLATFORM_DISPLAY_H_ | 186 #endif // COMPONENTS_MUS_WS_PLATFORM_DISPLAY_H_ |
OLD | NEW |