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

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

Issue 2613903003: Reland of "Mustash: Ensure surfaces submitted to Mus by WM and embedders contain Surfaces with embe… (Closed)
Patch Set: fix Created 3 years, 11 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 | « services/ui/ws/platform_display_default.h ('k') | services/ui/ws/platform_display_delegate.h » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_default.h" 5 #include "services/ui/ws/platform_display_default.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "gpu/ipc/client/gpu_channel_host.h" 8 #include "gpu/ipc/client/gpu_channel_host.h"
9 #include "services/ui/display/screen_manager.h" 9 #include "services/ui/display/screen_manager.h"
10 #include "services/ui/ws/platform_display_init_params.h" 10 #include "services/ui/ws/platform_display_init_params.h"
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 delegate_->OnAcceleratedWidgetAvailable(); 241 delegate_->OnAcceleratedWidgetAvailable();
242 frame_generator_->OnAcceleratedWidgetAvailable(widget); 242 frame_generator_->OnAcceleratedWidgetAvailable(widget);
243 } 243 }
244 244
245 void PlatformDisplayDefault::OnAcceleratedWidgetDestroyed() { 245 void PlatformDisplayDefault::OnAcceleratedWidgetDestroyed() {
246 NOTREACHED(); 246 NOTREACHED();
247 } 247 }
248 248
249 void PlatformDisplayDefault::OnActivationChanged(bool active) {} 249 void PlatformDisplayDefault::OnActivationChanged(bool active) {}
250 250
251 ServerWindow* PlatformDisplayDefault::GetActiveRootWindow() {
252 return delegate_->GetActiveRootWindow();
253 }
254
251 bool PlatformDisplayDefault::IsInHighContrastMode() { 255 bool PlatformDisplayDefault::IsInHighContrastMode() {
252 return delegate_ ? delegate_->IsInHighContrastMode() : false; 256 return delegate_ ? delegate_->IsInHighContrastMode() : false;
253 } 257 }
254 258
255 } // namespace ws 259 } // namespace ws
256 } // namespace ui 260 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/ws/platform_display_default.h ('k') | services/ui/ws/platform_display_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698