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

Unified Diff: content/public/test/browser_test_utils.cc

Issue 1407173005: Revert of OOPIF: Route keyboard events to focused frame in the browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@focus-page
Patch Set: Created 5 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 | « content/browser/web_contents/web_contents_impl.cc ('k') | content/test/data/page_with_input_field.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/browser_test_utils.cc
diff --git a/content/public/test/browser_test_utils.cc b/content/public/test/browser_test_utils.cc
index 59541ff73a5dfde97465966e8814973cb6c071bb..44647dfd45c40055e75c9c5d6a42a5d9c3c08093 100644
--- a/content/public/test/browser_test_utils.cc
+++ b/content/public/test/browser_test_utils.cc
@@ -227,9 +227,7 @@
int modifiers) {
NativeWebKeyboardEvent event;
BuildSimpleWebKeyEvent(type, key_code, native_key_code, modifiers, &event);
- static_cast<WebContentsImpl*>(web_contents)
- ->GetFocusedRenderWidgetHost()
- ->ForwardKeyboardEvent(event);
+ web_contents->GetRenderViewHost()->GetWidget()->ForwardKeyboardEvent(event);
}
void GetCookiesCallback(std::string* cookies_out,
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/test/data/page_with_input_field.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698