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

Side by Side Diff: cc/test/fake_painted_scrollbar_layer.h

Issue 913393004: Revert of cc: Make PaintedScrollbarLayer not use ContentsScalingLayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/test/fake_layer_tree_host.h ('k') | cc/test/layer_test_common.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 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 #ifndef CC_TEST_FAKE_PAINTED_SCROLLBAR_LAYER_H_ 5 #ifndef CC_TEST_FAKE_PAINTED_SCROLLBAR_LAYER_H_
6 #define CC_TEST_FAKE_PAINTED_SCROLLBAR_LAYER_H_ 6 #define CC_TEST_FAKE_PAINTED_SCROLLBAR_LAYER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/layers/painted_scrollbar_layer.h" 9 #include "cc/layers/painted_scrollbar_layer.h"
10 #include "cc/test/fake_scrollbar.h" 10 #include "cc/test/fake_scrollbar.h"
(...skipping 22 matching lines...) Expand all
33 // For unit tests 33 // For unit tests
34 UIResourceId track_resource_id() { 34 UIResourceId track_resource_id() {
35 return PaintedScrollbarLayer::track_resource_id(); 35 return PaintedScrollbarLayer::track_resource_id();
36 } 36 }
37 UIResourceId thumb_resource_id() { 37 UIResourceId thumb_resource_id() {
38 return PaintedScrollbarLayer::thumb_resource_id(); 38 return PaintedScrollbarLayer::thumb_resource_id();
39 } 39 }
40 FakeScrollbar* fake_scrollbar() { 40 FakeScrollbar* fake_scrollbar() {
41 return fake_scrollbar_; 41 return fake_scrollbar_;
42 } 42 }
43 using PaintedScrollbarLayer::UpdateInternalContentScale;
44 using PaintedScrollbarLayer::UpdateThumbAndTrackGeometry; 43 using PaintedScrollbarLayer::UpdateThumbAndTrackGeometry;
45 44
46 private: 45 private:
47 FakePaintedScrollbarLayer(FakeScrollbar* fake_scrollbar, 46 FakePaintedScrollbarLayer(FakeScrollbar* fake_scrollbar,
48 int scrolling_layer_id); 47 int scrolling_layer_id);
49 ~FakePaintedScrollbarLayer() override; 48 ~FakePaintedScrollbarLayer() override;
50 49
51 int update_count_; 50 int update_count_;
52 size_t push_properties_count_; 51 size_t push_properties_count_;
53 FakeScrollbar* fake_scrollbar_; 52 FakeScrollbar* fake_scrollbar_;
54 }; 53 };
55 54
56 } // namespace cc 55 } // namespace cc
57 56
58 #endif // CC_TEST_FAKE_PAINTED_SCROLLBAR_LAYER_H_ 57 #endif // CC_TEST_FAKE_PAINTED_SCROLLBAR_LAYER_H_
OLDNEW
« no previous file with comments | « cc/test/fake_layer_tree_host.h ('k') | cc/test/layer_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698