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

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

Issue 1866203004: Convert //cc from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptrcc: rebase Created 4 years, 8 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/solid_color_scrollbar_layer.h ('k') | cc/layers/solid_color_scrollbar_layer_impl.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/solid_color_scrollbar_layer.h" 5 #include "cc/layers/solid_color_scrollbar_layer.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include <memory>
8
8 #include "cc/layers/layer_impl.h" 9 #include "cc/layers/layer_impl.h"
9 #include "cc/layers/solid_color_scrollbar_layer_impl.h" 10 #include "cc/layers/solid_color_scrollbar_layer_impl.h"
10 11
11 namespace cc { 12 namespace cc {
12 13
13 scoped_ptr<LayerImpl> SolidColorScrollbarLayer::CreateLayerImpl( 14 std::unique_ptr<LayerImpl> SolidColorScrollbarLayer::CreateLayerImpl(
14 LayerTreeImpl* tree_impl) { 15 LayerTreeImpl* tree_impl) {
15 const bool kIsOverlayScrollbar = true; 16 const bool kIsOverlayScrollbar = true;
16 return SolidColorScrollbarLayerImpl::Create(tree_impl, 17 return SolidColorScrollbarLayerImpl::Create(tree_impl,
17 id(), 18 id(),
18 orientation(), 19 orientation(),
19 thumb_thickness_, 20 thumb_thickness_,
20 track_start_, 21 track_start_,
21 is_left_side_vertical_scrollbar_, 22 is_left_side_vertical_scrollbar_,
22 kIsOverlayScrollbar); 23 kIsOverlayScrollbar);
23 } 24 }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 78
78 scroll_layer_id_ = layer_id; 79 scroll_layer_id_ = layer_id;
79 SetNeedsFullTreeSync(); 80 SetNeedsFullTreeSync();
80 } 81 }
81 82
82 ScrollbarOrientation SolidColorScrollbarLayer::orientation() const { 83 ScrollbarOrientation SolidColorScrollbarLayer::orientation() const {
83 return orientation_; 84 return orientation_;
84 } 85 }
85 86
86 } // namespace cc 87 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/solid_color_scrollbar_layer.h ('k') | cc/layers/solid_color_scrollbar_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698