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

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

Issue 2877033002: Fix cc scrollbar layer issues with initialization, and use element ids throughout. (Closed)
Patch Set: none Created 3 years, 7 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 | « no previous file | cc/blink/web_scrollbar_layer_impl.cc » ('j') | cc/trees/layer_tree_host_impl.h » ('J')
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> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 21 matching lines...) Expand all
32 blink::WebScrollbar::Orientation orientation, 32 blink::WebScrollbar::Orientation orientation,
33 int thumb_thickness, 33 int thumb_thickness,
34 int track_start, 34 int track_start,
35 bool is_left_side_vertical_scrollbar); 35 bool is_left_side_vertical_scrollbar);
36 ~WebScrollbarLayerImpl() override; 36 ~WebScrollbarLayerImpl() override;
37 37
38 // blink::WebScrollbarLayer implementation. 38 // blink::WebScrollbarLayer implementation.
39 blink::WebLayer* Layer() override; 39 blink::WebLayer* Layer() override;
40 void SetScrollLayer(blink::WebLayer* layer) override; 40 void SetScrollLayer(blink::WebLayer* layer) override;
41 41
42 void SetElementId(const cc::ElementId&) override;
wkorman 2017/05/12 22:29:38 Is it worth using ref param given struct is basica
43
42 private: 44 private:
43 std::unique_ptr<WebLayerImpl> layer_; 45 std::unique_ptr<WebLayerImpl> layer_;
44 46
45 DISALLOW_COPY_AND_ASSIGN(WebScrollbarLayerImpl); 47 DISALLOW_COPY_AND_ASSIGN(WebScrollbarLayerImpl);
46 }; 48 };
47 49
48 } // namespace cc_blink 50 } // namespace cc_blink
49 51
50 #endif // CC_BLINK_WEB_SCROLLBAR_LAYER_IMPL_H_ 52 #endif // CC_BLINK_WEB_SCROLLBAR_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/blink/web_scrollbar_layer_impl.cc » ('j') | cc/trees/layer_tree_host_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698