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 <map> | 8 #include <map> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 // ui::PlatformWindowDelegate: | 118 // ui::PlatformWindowDelegate: |
119 void OnBoundsChanged(const gfx::Rect& new_bounds) override; | 119 void OnBoundsChanged(const gfx::Rect& new_bounds) override; |
120 void OnDamageRect(const gfx::Rect& damaged_region) override; | 120 void OnDamageRect(const gfx::Rect& damaged_region) override; |
121 void DispatchEvent(ui::Event* event) override; | 121 void DispatchEvent(ui::Event* event) override; |
122 void OnCloseRequest() override; | 122 void OnCloseRequest() override; |
123 void OnClosed() override; | 123 void OnClosed() override; |
124 void OnWindowStateChanged(ui::PlatformWindowState new_state) override; | 124 void OnWindowStateChanged(ui::PlatformWindowState new_state) override; |
125 void OnLostCapture() override; | 125 void OnLostCapture() override; |
126 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget, | 126 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget, |
127 float device_pixel_ratio) override; | 127 float device_pixel_ratio) override; |
| 128 void OnAcceleratedWidgetDestroyed() override; |
128 void OnActivationChanged(bool active) override; | 129 void OnActivationChanged(bool active) override; |
129 | 130 |
130 mojo::ApplicationImpl* app_impl_; | 131 mojo::ApplicationImpl* app_impl_; |
131 scoped_refptr<GpuState> gpu_state_; | 132 scoped_refptr<GpuState> gpu_state_; |
132 scoped_refptr<SurfacesState> surfaces_state_; | 133 scoped_refptr<SurfacesState> surfaces_state_; |
133 DisplayManagerDelegate* delegate_; | 134 DisplayManagerDelegate* delegate_; |
134 | 135 |
135 mojom::ViewportMetrics metrics_; | 136 mojom::ViewportMetrics metrics_; |
136 gfx::Rect dirty_rect_; | 137 gfx::Rect dirty_rect_; |
137 base::Timer draw_timer_; | 138 base::Timer draw_timer_; |
138 bool frame_pending_; | 139 bool frame_pending_; |
139 | 140 |
140 scoped_ptr<TopLevelDisplayClient> top_level_display_client_; | 141 scoped_ptr<TopLevelDisplayClient> top_level_display_client_; |
141 scoped_ptr<ui::PlatformWindow> platform_window_; | 142 scoped_ptr<ui::PlatformWindow> platform_window_; |
142 | 143 |
143 base::WeakPtrFactory<DefaultDisplayManager> weak_factory_; | 144 base::WeakPtrFactory<DefaultDisplayManager> weak_factory_; |
144 | 145 |
145 DISALLOW_COPY_AND_ASSIGN(DefaultDisplayManager); | 146 DISALLOW_COPY_AND_ASSIGN(DefaultDisplayManager); |
146 }; | 147 }; |
147 | 148 |
148 } // namespace mus | 149 } // namespace mus |
149 | 150 |
150 #endif // COMPONENTS_MUS_WS_DISPLAY_MANAGER_H_ | 151 #endif // COMPONENTS_MUS_WS_DISPLAY_MANAGER_H_ |
OLD | NEW |