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

Side by Side Diff: components/test_runner/web_test_delegate.h

Issue 1807733002: Make MockScreenOrientationClient an internal detail of components/test_runner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-app-banner-dep
Patch Set: Rebasing... Created 4 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 // 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 COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_
6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // Platform::setDeviceLightListener(). 70 // Platform::setDeviceLightListener().
71 virtual void SetDeviceLightData(const double data) = 0; 71 virtual void SetDeviceLightData(const double data) = 0;
72 // Set data to return when registering via 72 // Set data to return when registering via
73 // Platform::setDeviceMotionListener(). 73 // Platform::setDeviceMotionListener().
74 virtual void SetDeviceMotionData(const blink::WebDeviceMotionData& data) = 0; 74 virtual void SetDeviceMotionData(const blink::WebDeviceMotionData& data) = 0;
75 // Set data to return when registering via 75 // Set data to return when registering via
76 // Platform::setDeviceOrientationListener(). 76 // Platform::setDeviceOrientationListener().
77 virtual void SetDeviceOrientationData( 77 virtual void SetDeviceOrientationData(
78 const blink::WebDeviceOrientationData& data) = 0; 78 const blink::WebDeviceOrientationData& data) = 0;
79 79
80 // Set orientation to set when registering via
81 // Platform::setScreenOrientationListener().
82 virtual void SetScreenOrientation(
83 const blink::WebScreenOrientationType& orientation) = 0;
84
85 // Reset the screen orientation data used for testing.
86 virtual void ResetScreenOrientation() = 0;
87
88 // Disables screen orientation test-specific mock.
89 virtual void DisableMockScreenOrientation() = 0;
90
91 // Add a message to the text dump for the layout test. 80 // Add a message to the text dump for the layout test.
92 virtual void PrintMessage(const std::string& message) = 0; 81 virtual void PrintMessage(const std::string& message) = 0;
93 82
94 // The delegate takes ownership of the WebTask objects and is responsible 83 // The delegate takes ownership of the WebTask objects and is responsible
95 // for deleting them. 84 // for deleting them.
96 virtual void PostTask(WebTask* task) = 0; 85 virtual void PostTask(WebTask* task) = 0;
97 virtual void PostDelayedTask(WebTask* task, long long ms) = 0; 86 virtual void PostDelayedTask(WebTask* task, long long ms) = 0;
98 87
99 // Register a new isolated filesystem with the given files, and return the 88 // Register a new isolated filesystem with the given files, and return the
100 // new filesystem id. 89 // new filesystem id.
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 const blink::WebPluginParams& params) = 0; 273 const blink::WebPluginParams& params) = 0;
285 274
286 // Convert the position in DIP to native coordinates. 275 // Convert the position in DIP to native coordinates.
287 virtual blink::WebPoint ConvertDIPToNative( 276 virtual blink::WebPoint ConvertDIPToNative(
288 const blink::WebPoint& point_in_dip) const = 0; 277 const blink::WebPoint& point_in_dip) const = 0;
289 }; 278 };
290 279
291 } // namespace test_runner 280 } // namespace test_runner
292 281
293 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 282 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698