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

Side by Side Diff: cc/blink/web_scrollbar_layer_impl.h

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/blink/web_layer_impl_fixed_bounds_unittest.cc ('k') | cc/blink/web_scrollbar_layer_impl.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CC_BLINK_WEB_SCROLLBAR_LAYER_IMPL_H_ 5 #ifndef CC_BLINK_WEB_SCROLLBAR_LAYER_IMPL_H_
6 #define CC_BLINK_WEB_SCROLLBAR_LAYER_IMPL_H_ 6 #define CC_BLINK_WEB_SCROLLBAR_LAYER_IMPL_H_
7 7
8 #include <memory>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "cc/blink/cc_blink_export.h" 11 #include "cc/blink/cc_blink_export.h"
11 #include "third_party/WebKit/public/platform/WebScrollbar.h" 12 #include "third_party/WebKit/public/platform/WebScrollbar.h"
12 #include "third_party/WebKit/public/platform/WebScrollbarLayer.h" 13 #include "third_party/WebKit/public/platform/WebScrollbarLayer.h"
13 14
14 namespace blink { 15 namespace blink {
15 class WebScrollbarThemeGeometry; 16 class WebScrollbarThemeGeometry;
16 class WebScrollbarThemePainter; 17 class WebScrollbarThemePainter;
17 } 18 }
18 19
19 namespace cc_blink { 20 namespace cc_blink {
(...skipping 11 matching lines...) Expand all
31 int thumb_thickness, 32 int thumb_thickness,
32 int track_start, 33 int track_start,
33 bool is_left_side_vertical_scrollbar); 34 bool is_left_side_vertical_scrollbar);
34 ~WebScrollbarLayerImpl() override; 35 ~WebScrollbarLayerImpl() override;
35 36
36 // blink::WebScrollbarLayer implementation. 37 // blink::WebScrollbarLayer implementation.
37 blink::WebLayer* layer() override; 38 blink::WebLayer* layer() override;
38 void setScrollLayer(blink::WebLayer* layer) override; 39 void setScrollLayer(blink::WebLayer* layer) override;
39 40
40 private: 41 private:
41 scoped_ptr<WebLayerImpl> layer_; 42 std::unique_ptr<WebLayerImpl> layer_;
42 43
43 DISALLOW_COPY_AND_ASSIGN(WebScrollbarLayerImpl); 44 DISALLOW_COPY_AND_ASSIGN(WebScrollbarLayerImpl);
44 }; 45 };
45 46
46 } // namespace cc_blink 47 } // namespace cc_blink
47 48
48 #endif // CC_BLINK_WEB_SCROLLBAR_LAYER_IMPL_H_ 49 #endif // CC_BLINK_WEB_SCROLLBAR_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/blink/web_layer_impl_fixed_bounds_unittest.cc ('k') | cc/blink/web_scrollbar_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698