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

Side by Side Diff: services/ui/ws/platform_display.cc

Issue 2431753002: Mus experiment in content shell on Android.
Patch Set: Addressed comments, fixed browser tests and deps. Created 4 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
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 #include "services/ui/ws/platform_display.h" 5 #include "services/ui/ws/platform_display.h"
6 6
7 #include "base/numerics/safe_conversions.h" 7 #include "base/numerics/safe_conversions.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "cc/ipc/quads.mojom.h" 9 #include "cc/ipc/quads.mojom.h"
10 #include "cc/output/copy_output_request.h" 10 #include "cc/output/copy_output_request.h"
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 void DefaultPlatformDisplay::OnClosed() {} 271 void DefaultPlatformDisplay::OnClosed() {}
272 272
273 void DefaultPlatformDisplay::OnWindowStateChanged( 273 void DefaultPlatformDisplay::OnWindowStateChanged(
274 ui::PlatformWindowState new_state) {} 274 ui::PlatformWindowState new_state) {}
275 275
276 void DefaultPlatformDisplay::OnLostCapture() { 276 void DefaultPlatformDisplay::OnLostCapture() {
277 delegate_->OnNativeCaptureLost(); 277 delegate_->OnNativeCaptureLost();
278 } 278 }
279 279
280 void DefaultPlatformDisplay::OnAcceleratedWidgetAvailable( 280 void DefaultPlatformDisplay::OnAcceleratedWidgetAvailable(
281 gfx::AcceleratedWidget widget, 281 gpu::SurfaceHandle widget,
282 float device_scale_factor) { 282 float device_scale_factor) {
283 frame_generator_->OnAcceleratedWidgetAvailable(widget); 283 frame_generator_->OnAcceleratedWidgetAvailable(widget);
284 } 284 }
285 285
286 void DefaultPlatformDisplay::OnAcceleratedWidgetDestroyed() { 286 void DefaultPlatformDisplay::OnAcceleratedWidgetDestroyed() {
287 NOTREACHED(); 287 NOTREACHED();
288 } 288 }
289 289
290 void DefaultPlatformDisplay::OnActivationChanged(bool active) {} 290 void DefaultPlatformDisplay::OnActivationChanged(bool active) {}
291 291
(...skipping 10 matching lines...) Expand all
302 return delegate_ ? delegate_->IsInHighContrastMode() : false; 302 return delegate_ ? delegate_->IsInHighContrastMode() : false;
303 } 303 }
304 304
305 const ViewportMetrics& DefaultPlatformDisplay::GetViewportMetrics() { 305 const ViewportMetrics& DefaultPlatformDisplay::GetViewportMetrics() {
306 return metrics_; 306 return metrics_;
307 } 307 }
308 308
309 } // namespace ws 309 } // namespace ws
310 310
311 } // namespace ui 311 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698