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

Unified Diff: webkit/compositor_bindings/web_scrollbar_layer_impl.cc

Issue 14651027: Move webkit/compositor_bindings into webkit/renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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: webkit/compositor_bindings/web_scrollbar_layer_impl.cc
diff --git a/webkit/compositor_bindings/web_scrollbar_layer_impl.cc b/webkit/compositor_bindings/web_scrollbar_layer_impl.cc
deleted file mode 100644
index 9332d43ee0e4442ddab228dabe296bdeb250f342..0000000000000000000000000000000000000000
--- a/webkit/compositor_bindings/web_scrollbar_layer_impl.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2012 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 "webkit/compositor_bindings/web_scrollbar_layer_impl.h"
-
-#include "cc/layers/scrollbar_layer.h"
-#include "webkit/compositor_bindings/web_layer_impl.h"
-#include "webkit/compositor_bindings/web_to_ccscrollbar_theme_painter_adapter.h"
-
-using cc::ScrollbarLayer;
-using cc::ScrollbarThemePainter;
-using WebKit::WebScrollbarThemePainter;
-
-namespace webkit {
-
-WebScrollbarLayerImpl::WebScrollbarLayerImpl(
- WebKit::WebScrollbar* scrollbar,
- WebKit::WebScrollbarThemePainter painter,
- WebKit::WebScrollbarThemeGeometry* geometry)
- : layer_(new WebLayerImpl(ScrollbarLayer::Create(
- make_scoped_ptr(scrollbar),
- WebToCCScrollbarThemePainterAdapter::Create(
- make_scoped_ptr(new WebScrollbarThemePainter(painter)))
- .PassAs<ScrollbarThemePainter>(),
- make_scoped_ptr(geometry),
- 0))) {}
-
-WebScrollbarLayerImpl::~WebScrollbarLayerImpl() {}
-
-WebKit::WebLayer* WebScrollbarLayerImpl::layer() { return layer_.get(); }
-
-void WebScrollbarLayerImpl::setScrollLayer(WebKit::WebLayer* layer) {
- int id = layer ? static_cast<WebLayerImpl*>(layer)->layer()->id() : 0;
- static_cast<ScrollbarLayer*>(layer_->layer())->SetScrollLayerId(id);
-}
-
-} // namespace webkit
« no previous file with comments | « webkit/compositor_bindings/web_scrollbar_layer_impl.h ('k') | webkit/compositor_bindings/web_solid_color_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698