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

Side by Side Diff: sky/viewer/cc/web_compositor_support_impl.cc

Issue 720713003: Remove WebScroll* (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 "sky/viewer/cc/web_compositor_support_impl.h" 5 #include "sky/viewer/cc/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 "sky/viewer/cc/web_animation_impl.h" 10 #include "sky/viewer/cc/web_animation_impl.h"
11 #include "sky/viewer/cc/web_content_layer_impl.h" 11 #include "sky/viewer/cc/web_content_layer_impl.h"
12 #include "sky/viewer/cc/web_external_texture_layer_impl.h" 12 #include "sky/viewer/cc/web_external_texture_layer_impl.h"
13 #include "sky/viewer/cc/web_filter_animation_curve_impl.h" 13 #include "sky/viewer/cc/web_filter_animation_curve_impl.h"
14 #include "sky/viewer/cc/web_filter_operations_impl.h" 14 #include "sky/viewer/cc/web_filter_operations_impl.h"
15 #include "sky/viewer/cc/web_float_animation_curve_impl.h" 15 #include "sky/viewer/cc/web_float_animation_curve_impl.h"
16 #include "sky/viewer/cc/web_image_layer_impl.h" 16 #include "sky/viewer/cc/web_image_layer_impl.h"
17 #include "sky/viewer/cc/web_layer_impl.h" 17 #include "sky/viewer/cc/web_layer_impl.h"
18 #include "sky/viewer/cc/web_scroll_offset_animation_curve_impl.h"
19 #include "sky/viewer/cc/web_scrollbar_layer_impl.h"
20 #include "sky/viewer/cc/web_transform_animation_curve_impl.h" 18 #include "sky/viewer/cc/web_transform_animation_curve_impl.h"
21 #include "sky/viewer/cc/web_transform_operations_impl.h" 19 #include "sky/viewer/cc/web_transform_operations_impl.h"
22 #include "cc/output/output_surface.h" 20 #include "cc/output/output_surface.h"
23 #include "cc/output/software_output_device.h" 21 #include "cc/output/software_output_device.h"
24 22
25 using blink::WebCompositorAnimation; 23 using blink::WebCompositorAnimation;
26 using blink::WebCompositorAnimationCurve; 24 using blink::WebCompositorAnimationCurve;
27 using blink::WebContentLayer; 25 using blink::WebContentLayer;
28 using blink::WebContentLayerClient; 26 using blink::WebContentLayerClient;
29 using blink::WebExternalTextureLayer; 27 using blink::WebExternalTextureLayer;
30 using blink::WebExternalTextureLayerClient; 28 using blink::WebExternalTextureLayerClient;
31 using blink::WebFilterAnimationCurve; 29 using blink::WebFilterAnimationCurve;
32 using blink::WebFilterOperations; 30 using blink::WebFilterOperations;
33 using blink::WebFloatAnimationCurve; 31 using blink::WebFloatAnimationCurve;
34 using blink::WebImageLayer; 32 using blink::WebImageLayer;
35 using blink::WebLayer; 33 using blink::WebLayer;
36 using blink::WebScrollbar;
37 using blink::WebScrollbarLayer;
38 using blink::WebScrollbarThemeGeometry;
39 using blink::WebScrollbarThemePainter;
40 using blink::WebScrollOffsetAnimationCurve;
41 using blink::WebTransformAnimationCurve; 34 using blink::WebTransformAnimationCurve;
42 using blink::WebTransformOperations; 35 using blink::WebTransformOperations;
43 36
44 namespace sky_viewer_cc { 37 namespace sky_viewer_cc {
45 38
46 WebCompositorSupportImpl::WebCompositorSupportImpl() { 39 WebCompositorSupportImpl::WebCompositorSupportImpl() {
47 } 40 }
48 41
49 WebCompositorSupportImpl::~WebCompositorSupportImpl() { 42 WebCompositorSupportImpl::~WebCompositorSupportImpl() {
50 } 43 }
51 44
52 WebLayer* WebCompositorSupportImpl::createLayer() { 45 WebLayer* WebCompositorSupportImpl::createLayer() {
53 return new WebLayerImpl(); 46 return new WebLayerImpl();
54 } 47 }
55 48
56 WebContentLayer* WebCompositorSupportImpl::createContentLayer( 49 WebContentLayer* WebCompositorSupportImpl::createContentLayer(
57 WebContentLayerClient* client) { 50 WebContentLayerClient* client) {
58 return new WebContentLayerImpl(client); 51 return new WebContentLayerImpl(client);
59 } 52 }
60 53
61 WebExternalTextureLayer* WebCompositorSupportImpl::createExternalTextureLayer( 54 WebExternalTextureLayer* WebCompositorSupportImpl::createExternalTextureLayer(
62 WebExternalTextureLayerClient* client) { 55 WebExternalTextureLayerClient* client) {
63 return new WebExternalTextureLayerImpl(client); 56 return new WebExternalTextureLayerImpl(client);
64 } 57 }
65 58
66 blink::WebImageLayer* WebCompositorSupportImpl::createImageLayer() { 59 blink::WebImageLayer* WebCompositorSupportImpl::createImageLayer() {
67 return new WebImageLayerImpl(); 60 return new WebImageLayerImpl();
68 } 61 }
69 62
70 WebScrollbarLayer* WebCompositorSupportImpl::createScrollbarLayer(
71 WebScrollbar* scrollbar,
72 WebScrollbarThemePainter painter,
73 WebScrollbarThemeGeometry* geometry) {
74 return new WebScrollbarLayerImpl(scrollbar, painter, geometry);
75 }
76
77 WebScrollbarLayer* WebCompositorSupportImpl::createSolidColorScrollbarLayer(
78 WebScrollbar::Orientation orientation,
79 int thumb_thickness,
80 int track_start,
81 bool is_left_side_vertical_scrollbar) {
82 return new WebScrollbarLayerImpl(orientation,
83 thumb_thickness,
84 track_start,
85 is_left_side_vertical_scrollbar);
86 }
87
88 WebCompositorAnimation* WebCompositorSupportImpl::createAnimation( 63 WebCompositorAnimation* WebCompositorSupportImpl::createAnimation(
89 const blink::WebCompositorAnimationCurve& curve, 64 const blink::WebCompositorAnimationCurve& curve,
90 blink::WebCompositorAnimation::TargetProperty target, 65 blink::WebCompositorAnimation::TargetProperty target,
91 int animation_id) { 66 int animation_id) {
92 return new WebCompositorAnimationImpl(curve, target, animation_id, 0); 67 return new WebCompositorAnimationImpl(curve, target, animation_id, 0);
93 } 68 }
94 69
95 WebFilterAnimationCurve* 70 WebFilterAnimationCurve*
96 WebCompositorSupportImpl::createFilterAnimationCurve() { 71 WebCompositorSupportImpl::createFilterAnimationCurve() {
97 return new WebFilterAnimationCurveImpl(); 72 return new WebFilterAnimationCurveImpl();
98 } 73 }
99 74
100 WebFloatAnimationCurve* WebCompositorSupportImpl::createFloatAnimationCurve() { 75 WebFloatAnimationCurve* WebCompositorSupportImpl::createFloatAnimationCurve() {
101 return new WebFloatAnimationCurveImpl(); 76 return new WebFloatAnimationCurveImpl();
102 } 77 }
103 78
104 WebScrollOffsetAnimationCurve*
105 WebCompositorSupportImpl::createScrollOffsetAnimationCurve(
106 blink::WebFloatPoint target_value,
107 blink::WebCompositorAnimationCurve::TimingFunctionType timing_function) {
108 return new WebScrollOffsetAnimationCurveImpl(target_value, timing_function);
109 }
110
111 WebTransformAnimationCurve* 79 WebTransformAnimationCurve*
112 WebCompositorSupportImpl::createTransformAnimationCurve() { 80 WebCompositorSupportImpl::createTransformAnimationCurve() {
113 return new WebTransformAnimationCurveImpl(); 81 return new WebTransformAnimationCurveImpl();
114 } 82 }
115 83
116 WebTransformOperations* WebCompositorSupportImpl::createTransformOperations() { 84 WebTransformOperations* WebCompositorSupportImpl::createTransformOperations() {
117 return new WebTransformOperationsImpl(); 85 return new WebTransformOperationsImpl();
118 } 86 }
119 87
120 WebFilterOperations* WebCompositorSupportImpl::createFilterOperations() { 88 WebFilterOperations* WebCompositorSupportImpl::createFilterOperations() {
121 return new WebFilterOperationsImpl(); 89 return new WebFilterOperationsImpl();
122 } 90 }
123 91
124 } // namespace sky_viewer_cc 92 } // namespace sky_viewer_cc
OLDNEW
« no previous file with comments | « sky/viewer/cc/web_compositor_support_impl.h ('k') | sky/viewer/cc/web_scroll_offset_animation_curve_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698