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

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

Issue 2489003002: Convert mustash use surface references. (Closed)
Patch Set: More fixes for comments. Created 4 years 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/test_utils.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 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 "gpu/ipc/client/gpu_channel_host.h" 7 #include "gpu/ipc/client/gpu_channel_host.h"
8 #include "services/ui/display/platform_screen.h" 8 #include "services/ui/display/platform_screen.h"
9 #include "services/ui/ws/platform_display_init_params.h" 9 #include "services/ui/ws/platform_display_init_params.h"
10 #include "services/ui/ws/server_window.h" 10 #include "services/ui/ws/server_window.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 void PlatformDisplayDefault::SetImeVisibility(bool visible) { 118 void PlatformDisplayDefault::SetImeVisibility(bool visible) {
119 ui::PlatformImeController* ime = platform_window_->GetPlatformImeController(); 119 ui::PlatformImeController* ime = platform_window_->GetPlatformImeController();
120 if (ime) 120 if (ime)
121 ime->SetImeVisibility(visible); 121 ime->SetImeVisibility(visible);
122 } 122 }
123 123
124 gfx::Rect PlatformDisplayDefault::GetBounds() const { 124 gfx::Rect PlatformDisplayDefault::GetBounds() const {
125 return metrics_.bounds; 125 return metrics_.bounds;
126 } 126 }
127 127
128 FrameGenerator* PlatformDisplayDefault::GetFrameGenerator() {
129 return frame_generator_.get();
130 }
131
128 void PlatformDisplayDefault::OnGpuChannelEstablished( 132 void PlatformDisplayDefault::OnGpuChannelEstablished(
129 scoped_refptr<gpu::GpuChannelHost> channel) { 133 scoped_refptr<gpu::GpuChannelHost> channel) {
130 frame_generator_->OnGpuChannelEstablished(channel); 134 frame_generator_->OnGpuChannelEstablished(channel);
131 } 135 }
132 136
133 bool PlatformDisplayDefault::UpdateViewportMetrics( 137 bool PlatformDisplayDefault::UpdateViewportMetrics(
134 const display::ViewportMetrics& metrics) { 138 const display::ViewportMetrics& metrics) {
135 if (metrics_ == metrics) 139 if (metrics_ == metrics)
136 return false; 140 return false;
137 141
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 } 244 }
241 245
242 void PlatformDisplayDefault::OnActivationChanged(bool active) {} 246 void PlatformDisplayDefault::OnActivationChanged(bool active) {}
243 247
244 bool PlatformDisplayDefault::IsInHighContrastMode() { 248 bool PlatformDisplayDefault::IsInHighContrastMode() {
245 return delegate_ ? delegate_->IsInHighContrastMode() : false; 249 return delegate_ ? delegate_->IsInHighContrastMode() : false;
246 } 250 }
247 251
248 } // namespace ws 252 } // namespace ws
249 } // namespace ui 253 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/ws/platform_display_default.h ('k') | services/ui/ws/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698