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

Side by Side Diff: third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h

Issue 2743653003: Revert of Remove indirection: setup scrollbar scroll layers in the scrollbar constructor (Closed)
Patch Set: Created 3 years, 9 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 std::unique_ptr<WebLayer> createLayer() override; 69 std::unique_ptr<WebLayer> createLayer() override;
70 std::unique_ptr<WebLayer> createLayerFromCCLayer(cc::Layer*) override; 70 std::unique_ptr<WebLayer> createLayerFromCCLayer(cc::Layer*) override;
71 std::unique_ptr<WebContentLayer> createContentLayer( 71 std::unique_ptr<WebContentLayer> createContentLayer(
72 WebContentLayerClient*) override; 72 WebContentLayerClient*) override;
73 std::unique_ptr<WebExternalTextureLayer> createExternalTextureLayer( 73 std::unique_ptr<WebExternalTextureLayer> createExternalTextureLayer(
74 cc::TextureLayerClient*) override; 74 cc::TextureLayerClient*) override;
75 std::unique_ptr<WebImageLayer> createImageLayer() override; 75 std::unique_ptr<WebImageLayer> createImageLayer() override;
76 std::unique_ptr<WebScrollbarLayer> createScrollbarLayer( 76 std::unique_ptr<WebScrollbarLayer> createScrollbarLayer(
77 std::unique_ptr<WebScrollbar>, 77 std::unique_ptr<WebScrollbar>,
78 WebScrollbarThemePainter, 78 WebScrollbarThemePainter,
79 std::unique_ptr<WebScrollbarThemeGeometry>, 79 std::unique_ptr<WebScrollbarThemeGeometry>) override;
80 WebLayer* scrollLayer) override;
81 std::unique_ptr<WebScrollbarLayer> createOverlayScrollbarLayer( 80 std::unique_ptr<WebScrollbarLayer> createOverlayScrollbarLayer(
82 std::unique_ptr<WebScrollbar>, 81 std::unique_ptr<WebScrollbar>,
83 WebScrollbarThemePainter, 82 WebScrollbarThemePainter,
84 std::unique_ptr<WebScrollbarThemeGeometry>, 83 std::unique_ptr<WebScrollbarThemeGeometry>) override;
85 WebLayer* scrollLayer) override;
86 std::unique_ptr<WebScrollbarLayer> createSolidColorScrollbarLayer( 84 std::unique_ptr<WebScrollbarLayer> createSolidColorScrollbarLayer(
87 WebScrollbar::Orientation, 85 WebScrollbar::Orientation,
88 int thumbThickness, 86 int thumbThickness,
89 int trackStart, 87 int trackStart,
90 bool isLeftSideVerticalScrollbar, 88 bool isLeftSideVerticalScrollbar) override;
91 WebLayer* scrollLayer) override;
92 }; 89 };
93 90
94 // A base class to override Platform methods for testing. You can override the 91 // A base class to override Platform methods for testing. You can override the
95 // behavior by subclassing TestingPlatformSupport or using 92 // behavior by subclassing TestingPlatformSupport or using
96 // ScopedTestingPlatformSupport (see below). 93 // ScopedTestingPlatformSupport (see below).
97 class TestingPlatformSupport : public Platform { 94 class TestingPlatformSupport : public Platform {
98 WTF_MAKE_NONCOPYABLE(TestingPlatformSupport); 95 WTF_MAKE_NONCOPYABLE(TestingPlatformSupport);
99 96
100 public: 97 public:
101 struct Config { 98 struct Config {
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 m_discardableMemoryAllocator; 236 m_discardableMemoryAllocator;
240 std::unique_ptr<DummyPlatform> m_dummyPlatform; 237 std::unique_ptr<DummyPlatform> m_dummyPlatform;
241 std::unique_ptr<cc_blink::WebCompositorSupportImpl> m_compositorSupport; 238 std::unique_ptr<cc_blink::WebCompositorSupportImpl> m_compositorSupport;
242 TestingPlatformSupport::Config m_testingPlatformConfig; 239 TestingPlatformSupport::Config m_testingPlatformConfig;
243 std::unique_ptr<TestingPlatformSupport> m_testingPlatformSupport; 240 std::unique_ptr<TestingPlatformSupport> m_testingPlatformSupport;
244 }; 241 };
245 242
246 } // namespace blink 243 } // namespace blink
247 244
248 #endif // TestingPlatformSupport_h 245 #endif // TestingPlatformSupport_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698