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

Unified Diff: components/test_runner/web_widget_test_proxy.h

Issue 2036873002: Making EventSender talk to the right WebWidget (for OOPIF support). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use RenderWidget::viewRect() [rather than windowRect()] in TransformScreenToWidgetCoordinates. Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/test_runner/web_widget_test_client.cc ('k') | components/test_runner/web_widget_test_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/web_widget_test_proxy.h
diff --git a/components/test_runner/web_widget_test_proxy.h b/components/test_runner/web_widget_test_proxy.h
index 00bdbb7571fe756dc2a825a00449655df8de09e5..a9377be84b05ed6be0589a4388fb7a91bd6ce2ef 100644
--- a/components/test_runner/web_widget_test_proxy.h
+++ b/components/test_runner/web_widget_test_proxy.h
@@ -14,12 +14,16 @@
#include "third_party/WebKit/public/web/WebWidgetClient.h"
namespace blink {
+class WebLocalFrame;
class WebString;
class WebWidget;
}
namespace test_runner {
+class EventSender;
+class WebViewTestProxyBase;
+
class TEST_RUNNER_EXPORT WebWidgetTestProxyBase {
public:
blink::WebWidget* web_widget() { return web_widget_; }
@@ -36,6 +40,21 @@ class TEST_RUNNER_EXPORT WebWidgetTestProxyBase {
widget_test_client_ = std::move(widget_test_client);
}
+ WebViewTestProxyBase* web_view_test_proxy_base() const {
+ return web_view_test_proxy_base_;
+ }
+ void set_web_view_test_proxy_base(
+ WebViewTestProxyBase* web_view_test_proxy_base) {
+ DCHECK(web_view_test_proxy_base);
+ DCHECK(!web_view_test_proxy_base_);
+ web_view_test_proxy_base_ = web_view_test_proxy_base;
+ }
+
+ EventSender* event_sender() { return event_sender_.get(); }
+
+ void Reset();
+ void BindTo(blink::WebLocalFrame* frame);
+
protected:
WebWidgetTestProxyBase();
~WebWidgetTestProxyBase();
@@ -46,7 +65,9 @@ class TEST_RUNNER_EXPORT WebWidgetTestProxyBase {
private:
blink::WebWidget* web_widget_;
+ WebViewTestProxyBase* web_view_test_proxy_base_;
std::unique_ptr<WebWidgetTestClient> widget_test_client_;
+ std::unique_ptr<EventSender> event_sender_;
DISALLOW_COPY_AND_ASSIGN(WebWidgetTestProxyBase);
};
« no previous file with comments | « components/test_runner/web_widget_test_client.cc ('k') | components/test_runner/web_widget_test_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698