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

Unified Diff: components/navigation_interception/navigation_params.cc

Issue 2524763002: make NavigationGesture part of public content API and use it outside content (Closed)
Patch Set: Created 4 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
Index: components/navigation_interception/navigation_params.cc
diff --git a/components/navigation_interception/navigation_params.cc b/components/navigation_interception/navigation_params.cc
index 54288f76c724c537460a84a629462c5587a06d47..789ad28668f57f89f121246b7a73e059864d08fb 100644
--- a/components/navigation_interception/navigation_params.cc
+++ b/components/navigation_interception/navigation_params.cc
@@ -12,7 +12,7 @@ NavigationParams::NavigationParams(const NavigationParams& other) {
NavigationParams::NavigationParams(const GURL& url,
const content::Referrer& referrer,
- bool has_user_gesture,
+ content::NavigationGesture gesture,
bool is_post,
ui::PageTransition transition_type,
bool is_redirect,
@@ -20,13 +20,12 @@ NavigationParams::NavigationParams(const GURL& url,
bool is_main_frame)
: url_(url),
referrer_(referrer),
- has_user_gesture_(has_user_gesture),
+ gesture_(gesture),
is_post_(is_post),
transition_type_(transition_type),
is_redirect_(is_redirect),
is_external_protocol_(is_external_protocol),
- is_main_frame_(is_main_frame) {
-}
+ is_main_frame_(is_main_frame) {}
void NavigationParams::operator=(const NavigationParams& rhs) {
Assign(rhs);
@@ -35,7 +34,7 @@ void NavigationParams::operator=(const NavigationParams& rhs) {
void NavigationParams::Assign(const NavigationParams& other) {
url_ = other.url();
referrer_ = other.referrer();
- has_user_gesture_ = other.has_user_gesture();
+ gesture_ = other.gesture();
is_post_ = other.is_post();
transition_type_ = other.transition_type();
is_redirect_ = other.is_redirect();
@@ -44,4 +43,3 @@ void NavigationParams::Assign(const NavigationParams& other) {
}
} // namespace navigation_interception
-
« no previous file with comments | « components/navigation_interception/navigation_params.h ('k') | content/browser/frame_host/navigation_handle_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698