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

Unified Diff: content/renderer/render_view_browsertest.cc

Issue 2623483003: Support tracking focused node element for OOPIFs. (Closed)
Patch Set: Added the missing forward declaration Created 3 years, 11 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/renderer/render_frame_impl.cc ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_browsertest.cc
diff --git a/content/renderer/render_view_browsertest.cc b/content/renderer/render_view_browsertest.cc
index 4a478961f960ef2bd507f46d17b30823c02a8a5a..46212b237065e716237f8903c7e4334494213020 100644
--- a/content/renderer/render_view_browsertest.cc
+++ b/content/renderer/render_view_browsertest.cc
@@ -1898,27 +1898,27 @@ TEST_F(RenderViewImplTest, FocusElementCallsFocusedNodeChanged) {
ExecuteJavaScriptForTests("document.getElementById('test1').focus();");
const IPC::Message* msg1 = render_thread_->sink().GetFirstMessageMatching(
- ViewHostMsg_FocusedNodeChanged::ID);
+ FrameHostMsg_FocusedNodeChanged::ID);
EXPECT_TRUE(msg1);
- ViewHostMsg_FocusedNodeChanged::Param params;
- ViewHostMsg_FocusedNodeChanged::Read(msg1, &params);
+ FrameHostMsg_FocusedNodeChanged::Param params;
+ FrameHostMsg_FocusedNodeChanged::Read(msg1, &params);
EXPECT_TRUE(std::get<0>(params));
render_thread_->sink().ClearMessages();
ExecuteJavaScriptForTests("document.getElementById('test2').focus();");
const IPC::Message* msg2 = render_thread_->sink().GetFirstMessageMatching(
- ViewHostMsg_FocusedNodeChanged::ID);
+ FrameHostMsg_FocusedNodeChanged::ID);
EXPECT_TRUE(msg2);
- ViewHostMsg_FocusedNodeChanged::Read(msg2, &params);
+ FrameHostMsg_FocusedNodeChanged::Read(msg2, &params);
EXPECT_TRUE(std::get<0>(params));
render_thread_->sink().ClearMessages();
view()->webview()->clearFocusedElement();
const IPC::Message* msg3 = render_thread_->sink().GetFirstMessageMatching(
- ViewHostMsg_FocusedNodeChanged::ID);
+ FrameHostMsg_FocusedNodeChanged::ID);
EXPECT_TRUE(msg3);
- ViewHostMsg_FocusedNodeChanged::Read(msg3, &params);
+ FrameHostMsg_FocusedNodeChanged::Read(msg3, &params);
EXPECT_FALSE(std::get<0>(params));
render_thread_->sink().ClearMessages();
}
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698