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

Side by Side Diff: cc/layers/viewport.cc

Issue 2118993002: Detemplatize cc property nodes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « cc/layers/scrollbar_layer_unittest.cc ('k') | cc/trees/clip_node.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « cc/layers/scrollbar_layer_unittest.cc ('k') | cc/trees/clip_node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698