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

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: use struct for name+rect Created 6 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
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 32705ca85bd22eac78a5d7099615f0ab4d6ae9e9..328929f1e802490ca3950d93c9c76a9cf353297b 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -2521,11 +2521,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));
« content/browser/frame_host/navigator_impl.cc ('K') | « content/public/common/transition_element.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698