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

Side by Side Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 2443613002: Rename classes related to top controls (Closed)
Patch Set: 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "content/renderer/gpu/render_widget_compositor.h" 5 #include "content/renderer/gpu/render_widget_compositor.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <limits> 8 #include <limits>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 191
192 // Check cc::TopControlsState, and blink::WebTopControlsState 192 // Check cc::TopControlsState, and blink::WebTopControlsState
193 // are kept in sync. 193 // are kept in sync.
194 static_assert(int(blink::WebTopControlsBoth) == int(cc::BOTH), 194 static_assert(int(blink::WebTopControlsBoth) == int(cc::BOTH),
195 "mismatching enums: BOTH"); 195 "mismatching enums: BOTH");
196 static_assert(int(blink::WebTopControlsHidden) == int(cc::HIDDEN), 196 static_assert(int(blink::WebTopControlsHidden) == int(cc::HIDDEN),
197 "mismatching enums: HIDDEN"); 197 "mismatching enums: HIDDEN");
198 static_assert(int(blink::WebTopControlsShown) == int(cc::SHOWN), 198 static_assert(int(blink::WebTopControlsShown) == int(cc::SHOWN),
199 "mismatching enums: SHOWN"); 199 "mismatching enums: SHOWN");
200 200
201 static cc::TopControlsState ConvertTopControlsState( 201 static cc::BrowserControlsState ConvertTopControlsState(
202 WebTopControlsState state) { 202 WebTopControlsState state) {
203 return static_cast<cc::TopControlsState>(state); 203 return static_cast<cc::BrowserControlsState>(state);
204 } 204 }
205 205
206 } // namespace 206 } // namespace
207 207
208 // static 208 // static
209 std::unique_ptr<RenderWidgetCompositor> RenderWidgetCompositor::Create( 209 std::unique_ptr<RenderWidgetCompositor> RenderWidgetCompositor::Create(
210 RenderWidgetCompositorDelegate* delegate, 210 RenderWidgetCompositorDelegate* delegate,
211 float device_scale_factor, 211 float device_scale_factor,
212 CompositorDependencies* compositor_deps) { 212 CompositorDependencies* compositor_deps) {
213 std::unique_ptr<RenderWidgetCompositor> compositor( 213 std::unique_ptr<RenderWidgetCompositor> compositor(
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after
1117 float device_scale) { 1117 float device_scale) {
1118 layer_tree_host_->GetLayerTree()->SetPaintedDeviceScaleFactor(device_scale); 1118 layer_tree_host_->GetLayerTree()->SetPaintedDeviceScaleFactor(device_scale);
1119 } 1119 }
1120 1120
1121 void RenderWidgetCompositor::SetDeviceColorSpace( 1121 void RenderWidgetCompositor::SetDeviceColorSpace(
1122 const gfx::ColorSpace& color_space) { 1122 const gfx::ColorSpace& color_space) {
1123 layer_tree_host_->GetLayerTree()->SetDeviceColorSpace(color_space); 1123 layer_tree_host_->GetLayerTree()->SetDeviceColorSpace(color_space);
1124 } 1124 }
1125 1125
1126 } // namespace content 1126 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698