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

Unified Diff: cc/pinch_zoom_scrollbar_layer.cc

Issue 11550035: Implement pinch-zoom scaling for main-frame scrollbars and pinch-zoom overlay scrollbars. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing files. Created 8 years 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: cc/pinch_zoom_scrollbar_layer.cc
diff --git a/cc/pinch_zoom_scrollbar_layer.cc b/cc/pinch_zoom_scrollbar_layer.cc
new file mode 100644
index 0000000000000000000000000000000000000000..54ae37cbb15b0b450c09629ab664e2fd15d4e081
--- /dev/null
+++ b/cc/pinch_zoom_scrollbar_layer.cc
@@ -0,0 +1,30 @@
+// 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 "pinch_zoom_scrollbar_layer.h"
+
+#include "scrollbar_layer_impl.h"
+
+namespace cc {
+
+scoped_refptr<PinchZoomScrollbarLayer> PinchZoomScrollbarLayer::create()
+{
+ return make_scoped_refptr(new PinchZoomScrollbarLayer());
+}
+
+PinchZoomScrollbarLayer::PinchZoomScrollbarLayer()
+{
+}
+
+scoped_ptr<LayerImpl> PinchZoomScrollbarLayer::createLayerImpl(LayerTreeImpl* treeImpl)
+{
+ return ScrollbarLayerImpl::create(treeImpl, id()).PassAs<LayerImpl>();
+}
+
+bool PinchZoomScrollbarLayer::drawsContent() const
+{
+ return true;
+}
+
+} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698