| 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/browser_controls_offset_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 "cc/trees/scroll_node.h" |
| 13 #include "ui/gfx/geometry/vector2d_conversions.h" | 13 #include "ui/gfx/geometry/vector2d_conversions.h" |
| 14 #include "ui/gfx/geometry/vector2d_f.h" | 14 #include "ui/gfx/geometry/vector2d_f.h" |
| 15 | 15 |
| 16 namespace cc { | 16 namespace cc { |
| 17 | 17 |
| 18 // static | 18 // static |
| 19 std::unique_ptr<Viewport> Viewport::Create(LayerTreeHostImpl* host_impl) { | 19 std::unique_ptr<Viewport> Viewport::Create(LayerTreeHostImpl* host_impl) { |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 | 255 |
| 256 LayerImpl* Viewport::InnerScrollLayer() const { | 256 LayerImpl* Viewport::InnerScrollLayer() const { |
| 257 return host_impl_->InnerViewportScrollLayer(); | 257 return host_impl_->InnerViewportScrollLayer(); |
| 258 } | 258 } |
| 259 | 259 |
| 260 LayerImpl* Viewport::OuterScrollLayer() const { | 260 LayerImpl* Viewport::OuterScrollLayer() const { |
| 261 return host_impl_->OuterViewportScrollLayer(); | 261 return host_impl_->OuterViewportScrollLayer(); |
| 262 } | 262 } |
| 263 | 263 |
| 264 } // namespace cc | 264 } // namespace cc |
| OLD | NEW |