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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 652953008: Navigation transitions (web to native app): Pass data after starting provisional load (Chrome side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month 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/public/common/transition_element.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index b99f8a0d556e9858c64ce244be4d0773e57d4f08..7bbdfdcca736d80b5c22d3c7fd95acc2b3059a03 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -2555,11 +2555,10 @@ void RenderFrameImpl::addNavigationTransitionData(
allowed_destination_host_pattern.utf8();
params.selector = selector.utf8();
params.markup = markup.utf8();
+ params.elements.resize(web_names.size());
for (size_t i = 0; i < web_names.size(); i++) {
- params.names.push_back(web_names[i].utf8());
- }
- for (size_t i = 0; i < web_rects.size(); i++) {
- params.rects.push_back(gfx::Rect(web_rects[i]));
+ params.elements[i].name = web_names[i].utf8();
+ params.elements[i].rect = gfx::Rect(web_rects[i]);
}
Send(new FrameHostMsg_AddNavigationTransitionData(params));
« no previous file with comments | « content/public/common/transition_element.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698