OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "cc/layers/viewport.h" | 5 #include "cc/layers/viewport.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
9 #include "cc/input/top_controls_manager.h" | 9 #include "cc/input/top_controls_manager.h" |
10 #include "cc/trees/layer_tree_host_impl.h" | 10 #include "cc/trees/layer_tree_host_impl.h" |
11 #include "cc/trees/layer_tree_impl.h" | 11 #include "cc/trees/layer_tree_impl.h" |
| 12 #include "cc/trees/scroll_node.h" |
12 #include "ui/gfx/geometry/vector2d_conversions.h" | 13 #include "ui/gfx/geometry/vector2d_conversions.h" |
13 #include "ui/gfx/geometry/vector2d_f.h" | 14 #include "ui/gfx/geometry/vector2d_f.h" |
14 | 15 |
15 namespace cc { | 16 namespace cc { |
16 | 17 |
17 // static | 18 // static |
18 std::unique_ptr<Viewport> Viewport::Create(LayerTreeHostImpl* host_impl) { | 19 std::unique_ptr<Viewport> Viewport::Create(LayerTreeHostImpl* host_impl) { |
19 return base::WrapUnique(new Viewport(host_impl)); | 20 return base::WrapUnique(new Viewport(host_impl)); |
20 } | 21 } |
21 | 22 |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 | 234 |
234 LayerImpl* Viewport::InnerScrollLayer() const { | 235 LayerImpl* Viewport::InnerScrollLayer() const { |
235 return host_impl_->InnerViewportScrollLayer(); | 236 return host_impl_->InnerViewportScrollLayer(); |
236 } | 237 } |
237 | 238 |
238 LayerImpl* Viewport::OuterScrollLayer() const { | 239 LayerImpl* Viewport::OuterScrollLayer() const { |
239 return host_impl_->OuterViewportScrollLayer(); | 240 return host_impl_->OuterViewportScrollLayer(); |
240 } | 241 } |
241 | 242 |
242 } // namespace cc | 243 } // namespace cc |
OLD | NEW |