| Index: components/test_runner/web_test_delegate.h
|
| diff --git a/components/test_runner/web_test_delegate.h b/components/test_runner/web_test_delegate.h
|
| index e01b95ff55009db202a8bfd14762b5c675f3dc7f..8f7dd3ee9fe6475c9e225f5f6ff7485888a69a05 100644
|
| --- a/components/test_runner/web_test_delegate.h
|
| +++ b/components/test_runner/web_test_delegate.h
|
| @@ -5,6 +5,7 @@
|
| #ifndef COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_
|
| #define COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_
|
|
|
| +#include <memory>
|
| #include <string>
|
| #include <vector>
|
|
|
| @@ -25,10 +26,11 @@ class DictionaryValue;
|
| namespace blink {
|
| class WebDeviceMotionData;
|
| class WebDeviceOrientationData;
|
| -class WebFrame;
|
| +class WebLocalFrame;
|
| class WebGamepad;
|
| class WebGamepads;
|
| class WebHistoryItem;
|
| +class WebInputEvent;
|
| class WebLayer;
|
| class WebLocalFrame;
|
| class WebMediaStream;
|
| @@ -53,7 +55,7 @@ namespace test_runner {
|
| class DeviceLightData;
|
| class GamepadController;
|
| class WebTask;
|
| -class WebViewTestProxyBase;
|
| +class WebWidgetTestProxyBase;
|
| struct TestPreferences;
|
|
|
| class WebTestDelegate {
|
| @@ -162,6 +164,19 @@ class WebTestDelegate {
|
| // use-zoom-for-dsf is disabled, this return always 1.0f.
|
| virtual float GetWindowToViewportScale() = 0;
|
|
|
| + // Converts |event| from screen coordinates used by test_runner::EventSender
|
| + // into coordinates that are understood by the widget associated with
|
| + // |web_widget_test_proxy_base|.
|
| + virtual std::unique_ptr<blink::WebInputEvent>
|
| + TransformScreenToWidgetCoordinates(
|
| + test_runner::WebWidgetTestProxyBase* web_widget_test_proxy_base,
|
| + const blink::WebInputEvent& event) = 0;
|
| +
|
| + // Gets WebWidgetTestProxyBase associated with |frame| (associated with either
|
| + // a RenderView or a RenderWidget for the local root).
|
| + virtual test_runner::WebWidgetTestProxyBase* GetWebWidgetTestProxyBase(
|
| + blink::WebLocalFrame* frame) = 0;
|
| +
|
| // Enable zoom-for-dsf option.
|
| virtual void EnableUseZoomForDSF() = 0;
|
|
|
|
|