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

Unified Diff: components/test_runner/web_frame_test_client.cc

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/event_sender.cc ('k') | components/test_runner/web_test_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/web_frame_test_client.cc
diff --git a/components/test_runner/web_frame_test_client.cc b/components/test_runner/web_frame_test_client.cc
index 7f78978fb00d0099aea33ddde541a333346ed5f6..f155dd223e68660d01f0d7256581ad69d3c3882d 100644
--- a/components/test_runner/web_frame_test_client.cc
+++ b/components/test_runner/web_frame_test_client.cc
@@ -22,6 +22,7 @@
#include "components/test_runner/web_frame_test_proxy.h"
#include "components/test_runner/web_test_delegate.h"
#include "components/test_runner/web_view_test_proxy.h"
+#include "components/test_runner/web_widget_test_proxy.h"
#include "third_party/WebKit/public/platform/WebString.h"
#include "third_party/WebKit/public/platform/WebURL.h"
#include "third_party/WebKit/public/platform/WebURLRequest.h"
@@ -369,8 +370,9 @@ blink::WebPlugin* WebFrameTestClient::createPlugin(
void WebFrameTestClient::showContextMenu(
const blink::WebContextMenuData& context_menu_data) {
- web_view_test_proxy_base_->event_sender()->SetContextMenuData(
- context_menu_data);
+ delegate_->GetWebWidgetTestProxyBase(web_frame_test_proxy_base_->web_frame())
+ ->event_sender()
+ ->SetContextMenuData(context_menu_data);
}
blink::WebUserMediaClient* WebFrameTestClient::userMediaClient() {
@@ -683,6 +685,7 @@ void WebFrameTestClient::checkIfAudioSinkExistsAndIsAuthorized(
void WebFrameTestClient::didClearWindowObject(blink::WebLocalFrame* frame) {
web_view_test_proxy_base_->test_interfaces()->BindTo(frame);
web_view_test_proxy_base_->BindTo(frame);
+ delegate_->GetWebWidgetTestProxyBase(frame)->BindTo(frame);
}
bool WebFrameTestClient::runFileChooser(
« no previous file with comments | « components/test_runner/event_sender.cc ('k') | components/test_runner/web_test_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698