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

Unified Diff: content/renderer/compositor_bindings/web_compositor_support_impl.cc

Issue 470983004: Move blink<->cc bindings to cc/blink (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/compositor_bindings/web_compositor_support_impl.cc
diff --git a/content/renderer/compositor_bindings/web_compositor_support_impl.cc b/content/renderer/compositor_bindings/web_compositor_support_impl.cc
deleted file mode 100644
index c5156cbd611a58b62571836554d64401d2ee34c9..0000000000000000000000000000000000000000
--- a/content/renderer/compositor_bindings/web_compositor_support_impl.cc
+++ /dev/null
@@ -1,131 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/renderer/compositor_bindings/web_compositor_support_impl.h"
-
-#include "base/memory/scoped_ptr.h"
-#include "base/message_loop/message_loop_proxy.h"
-#include "cc/animation/transform_operations.h"
-#include "cc/output/output_surface.h"
-#include "cc/output/software_output_device.h"
-#include "content/renderer/compositor_bindings/web_animation_impl.h"
-#include "content/renderer/compositor_bindings/web_content_layer_impl.h"
-#include "content/renderer/compositor_bindings/web_external_texture_layer_impl.h"
-#include "content/renderer/compositor_bindings/web_filter_animation_curve_impl.h"
-#include "content/renderer/compositor_bindings/web_filter_operations_impl.h"
-#include "content/renderer/compositor_bindings/web_float_animation_curve_impl.h"
-#include "content/renderer/compositor_bindings/web_image_layer_impl.h"
-#include "content/renderer/compositor_bindings/web_layer_impl.h"
-#include "content/renderer/compositor_bindings/web_nine_patch_layer_impl.h"
-#include "content/renderer/compositor_bindings/web_scroll_offset_animation_curve_impl.h"
-#include "content/renderer/compositor_bindings/web_scrollbar_layer_impl.h"
-#include "content/renderer/compositor_bindings/web_transform_animation_curve_impl.h"
-#include "content/renderer/compositor_bindings/web_transform_operations_impl.h"
-
-using blink::WebCompositorAnimation;
-using blink::WebCompositorAnimationCurve;
-using blink::WebContentLayer;
-using blink::WebContentLayerClient;
-using blink::WebExternalTextureLayer;
-using blink::WebExternalTextureLayerClient;
-using blink::WebFilterAnimationCurve;
-using blink::WebFilterOperations;
-using blink::WebFloatAnimationCurve;
-using blink::WebImageLayer;
-using blink::WebNinePatchLayer;
-using blink::WebLayer;
-using blink::WebScrollbar;
-using blink::WebScrollbarLayer;
-using blink::WebScrollbarThemeGeometry;
-using blink::WebScrollbarThemePainter;
-using blink::WebScrollOffsetAnimationCurve;
-using blink::WebTransformAnimationCurve;
-using blink::WebTransformOperations;
-
-namespace content {
-
-WebCompositorSupportImpl::WebCompositorSupportImpl() {
-}
-
-WebCompositorSupportImpl::~WebCompositorSupportImpl() {
-}
-
-WebLayer* WebCompositorSupportImpl::createLayer() {
- return new WebLayerImpl();
-}
-
-WebContentLayer* WebCompositorSupportImpl::createContentLayer(
- WebContentLayerClient* client) {
- return new WebContentLayerImpl(client);
-}
-
-WebExternalTextureLayer* WebCompositorSupportImpl::createExternalTextureLayer(
- WebExternalTextureLayerClient* client) {
- return new WebExternalTextureLayerImpl(client);
-}
-
-blink::WebImageLayer* WebCompositorSupportImpl::createImageLayer() {
- return new WebImageLayerImpl();
-}
-
-blink::WebNinePatchLayer* WebCompositorSupportImpl::createNinePatchLayer() {
- return new WebNinePatchLayerImpl();
-}
-
-WebScrollbarLayer* WebCompositorSupportImpl::createScrollbarLayer(
- WebScrollbar* scrollbar,
- WebScrollbarThemePainter painter,
- WebScrollbarThemeGeometry* geometry) {
- return new WebScrollbarLayerImpl(scrollbar, painter, geometry);
-}
-
-WebScrollbarLayer* WebCompositorSupportImpl::createSolidColorScrollbarLayer(
- WebScrollbar::Orientation orientation,
- int thumb_thickness,
- int track_start,
- bool is_left_side_vertical_scrollbar) {
- return new WebScrollbarLayerImpl(orientation,
- thumb_thickness,
- track_start,
- is_left_side_vertical_scrollbar);
-}
-
-WebCompositorAnimation* WebCompositorSupportImpl::createAnimation(
- const blink::WebCompositorAnimationCurve& curve,
- blink::WebCompositorAnimation::TargetProperty target,
- int animation_id) {
- return new WebCompositorAnimationImpl(curve, target, animation_id, 0);
-}
-
-WebFilterAnimationCurve*
-WebCompositorSupportImpl::createFilterAnimationCurve() {
- return new WebFilterAnimationCurveImpl();
-}
-
-WebFloatAnimationCurve* WebCompositorSupportImpl::createFloatAnimationCurve() {
- return new WebFloatAnimationCurveImpl();
-}
-
-WebScrollOffsetAnimationCurve*
-WebCompositorSupportImpl::createScrollOffsetAnimationCurve(
- blink::WebFloatPoint target_value,
- blink::WebCompositorAnimationCurve::TimingFunctionType timing_function) {
- return new WebScrollOffsetAnimationCurveImpl(target_value, timing_function);
-}
-
-WebTransformAnimationCurve*
-WebCompositorSupportImpl::createTransformAnimationCurve() {
- return new WebTransformAnimationCurveImpl();
-}
-
-WebTransformOperations* WebCompositorSupportImpl::createTransformOperations() {
- return new WebTransformOperationsImpl();
-}
-
-WebFilterOperations* WebCompositorSupportImpl::createFilterOperations() {
- return new WebFilterOperationsImpl();
-}
-
-} // namespace content
-

Powered by Google App Engine
This is Rietveld 408576698