Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(297)

Side by Side Diff: components/mus/ws/display_manager.h

Issue 1406333003: aura: Support SurfaceDestroyed() on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wth2
Patch Set: comment Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | components/mus/ws/display_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | components/mus/ws/display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698