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

Side by Side Diff: components/web_contents_delegate_android/web_contents_delegate_android.cc

Issue 2942163003: Pass user gesture flag when opening a new tab on Android. (Closed)
Patch Set: . Created 3 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/web_contents_delegate_android/web_contents_delegate_android .h" 5 #include "components/web_contents_delegate_android/web_contents_delegate_android .h"
6 6
7 #include <android/keycodes.h> 7 #include <android/keycodes.h>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_array.h" 10 #include "base/android/jni_array.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // content::OpenURLParams -> content::NavigationController::LoadURLParams 103 // content::OpenURLParams -> content::NavigationController::LoadURLParams
104 content::NavigationController::LoadURLParams load_params(url); 104 content::NavigationController::LoadURLParams load_params(url);
105 load_params.referrer = params.referrer; 105 load_params.referrer = params.referrer;
106 load_params.frame_tree_node_id = params.frame_tree_node_id; 106 load_params.frame_tree_node_id = params.frame_tree_node_id;
107 load_params.redirect_chain = params.redirect_chain; 107 load_params.redirect_chain = params.redirect_chain;
108 load_params.transition_type = params.transition; 108 load_params.transition_type = params.transition;
109 load_params.extra_headers = params.extra_headers; 109 load_params.extra_headers = params.extra_headers;
110 load_params.should_replace_current_entry = 110 load_params.should_replace_current_entry =
111 params.should_replace_current_entry; 111 params.should_replace_current_entry;
112 load_params.is_renderer_initiated = params.is_renderer_initiated; 112 load_params.is_renderer_initiated = params.is_renderer_initiated;
113 load_params.has_user_gesture = params.user_gesture;
113 114
114 if (params.uses_post) { 115 if (params.uses_post) {
115 load_params.load_type = content::NavigationController::LOAD_TYPE_HTTP_POST; 116 load_params.load_type = content::NavigationController::LOAD_TYPE_HTTP_POST;
116 load_params.post_data = params.post_data; 117 load_params.post_data = params.post_data;
117 } 118 }
118 119
119 source->GetController().LoadURLWithParams(load_params); 120 source->GetController().LoadURLWithParams(load_params);
120 121
121 return source; 122 return source;
122 } 123 }
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 validation_message_bubble_->SetPositionRelativeToAnchor( 408 validation_message_bubble_->SetPositionRelativeToAnchor(
408 rwhv->GetRenderWidgetHost(), anchor_in_root_view); 409 rwhv->GetRenderWidgetHost(), anchor_in_root_view);
409 } 410 }
410 } 411 }
411 412
412 void WebContentsDelegateAndroid::RequestAppBannerFromDevTools( 413 void WebContentsDelegateAndroid::RequestAppBannerFromDevTools(
413 content::WebContents* web_contents) { 414 content::WebContents* web_contents) {
414 } 415 }
415 416
416 } // namespace web_contents_delegate_android 417 } // namespace web_contents_delegate_android
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698