Index: cc/trees/root_scroller_controller.cc |
diff --git a/cc/trees/root_scroller_controller.cc b/cc/trees/root_scroller_controller.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a18093645f6da2a4d64604c0ee99b6e9d4f1c8c3 |
--- /dev/null |
+++ b/cc/trees/root_scroller_controller.cc |
@@ -0,0 +1,27 @@ |
+// Copyright 2016 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 "cc/trees/root_scroller_controller.h" |
+ |
+#include "base/memory/ptr_util.h" |
+ |
+namespace cc { |
+ |
+// static |
+std::unique_ptr<RootScrollerController> RootScrollerController::Create() { |
+ return base::WrapUnique(new RootScrollerController); |
+} |
+ |
+RootScrollerController::RootScrollerController() |
+ : root_scroller_layer_(nullptr) {} |
+ |
+void RootScrollerController::SetRootScrollerLayer(LayerImpl* layer) { |
+ root_scroller_layer_ = layer; |
+} |
+ |
+LayerImpl* RootScrollerController::GetRootScrollerLayer() { |
+ return root_scroller_layer_; |
+} |
+ |
+} // namespace cc |