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

Side by Side Diff: webkit/renderer/compositor_bindings/web_compositor_support_impl.cc

Issue 23653017: Remove Android-specific #ifdef in WebCompositorSupportImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "webkit/renderer/compositor_bindings/web_compositor_support_impl.h" 5 #include "webkit/renderer/compositor_bindings/web_compositor_support_impl.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/message_loop/message_loop_proxy.h" 8 #include "base/message_loop/message_loop_proxy.h"
9 #include "cc/animation/transform_operations.h" 9 #include "cc/animation/transform_operations.h"
10 #include "cc/output/output_surface.h" 10 #include "cc/output/output_surface.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 } 71 }
72 72
73 WebSolidColorLayer* WebCompositorSupportImpl::createSolidColorLayer() { 73 WebSolidColorLayer* WebCompositorSupportImpl::createSolidColorLayer() {
74 return new WebSolidColorLayerImpl(); 74 return new WebSolidColorLayerImpl();
75 } 75 }
76 76
77 WebScrollbarLayer* WebCompositorSupportImpl::createScrollbarLayer( 77 WebScrollbarLayer* WebCompositorSupportImpl::createScrollbarLayer(
78 WebScrollbar* scrollbar, 78 WebScrollbar* scrollbar,
79 WebScrollbarThemePainter painter, 79 WebScrollbarThemePainter painter,
80 WebScrollbarThemeGeometry* geometry) { 80 WebScrollbarThemeGeometry* geometry) {
81 // TODO(wjmaclean) Remove the Android-specific if-clause here once the
82 // Blink-side changes are made to call createSolidColorScrollbarLayer()
83 // directly.
84 #if defined(OS_ANDROID)
85 const int kThumbThickness = 3;
86 return new WebScrollbarLayerImpl(scrollbar->orientation(), kThumbThickness);
87 #else
88 return new WebScrollbarLayerImpl(scrollbar, painter, geometry); 81 return new WebScrollbarLayerImpl(scrollbar, painter, geometry);
89 #endif
90 } 82 }
91 83
92 WebScrollbarLayer* WebCompositorSupportImpl::createSolidColorScrollbarLayer( 84 WebScrollbarLayer* WebCompositorSupportImpl::createSolidColorScrollbarLayer(
93 WebKit::WebScrollbar::Orientation orientation, int thumb_thickness) { 85 WebKit::WebScrollbar::Orientation orientation, int thumb_thickness) {
94 return new WebScrollbarLayerImpl(orientation, thumb_thickness); 86 return new WebScrollbarLayerImpl(orientation, thumb_thickness);
95 } 87 }
96 88
97 WebAnimation* WebCompositorSupportImpl::createAnimation( 89 WebAnimation* WebCompositorSupportImpl::createAnimation(
98 const WebKit::WebAnimationCurve& curve, 90 const WebKit::WebAnimationCurve& curve,
99 WebKit::WebAnimation::TargetProperty target, 91 WebKit::WebAnimation::TargetProperty target,
(...skipping 12 matching lines...) Expand all
112 104
113 WebTransformOperations* WebCompositorSupportImpl::createTransformOperations() { 105 WebTransformOperations* WebCompositorSupportImpl::createTransformOperations() {
114 return new WebTransformOperationsImpl(); 106 return new WebTransformOperationsImpl();
115 } 107 }
116 108
117 WebFilterOperations* WebCompositorSupportImpl::createFilterOperations() { 109 WebFilterOperations* WebCompositorSupportImpl::createFilterOperations() {
118 return new WebFilterOperationsImpl(); 110 return new WebFilterOperationsImpl();
119 } 111 }
120 112
121 } // namespace webkit 113 } // namespace webkit
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698