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

Unified Diff: components/navigation_interception/navigation_params.h

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.h
diff --git a/components/navigation_interception/navigation_params.h b/components/navigation_interception/navigation_params.h
index 3417816590e2fb4fcf7b78e83f1c776fdf086b5c..c9ba4b303e76f0ca126a210672082616de4772f5 100644
--- a/components/navigation_interception/navigation_params.h
+++ b/components/navigation_interception/navigation_params.h
@@ -5,6 +5,7 @@
#ifndef COMPONENTS_NAVIGATION_INTERCEPTION_NAVIGATION_PARAMS_H_
#define COMPONENTS_NAVIGATION_INTERCEPTION_NAVIGATION_PARAMS_H_
+#include "content/public/common/navigation_gesture.h"
#include "content/public/common/referrer.h"
#include "ui/base/page_transition_types.h"
#include "ui/base/page_transition_types.h"
@@ -16,7 +17,7 @@ class NavigationParams {
public:
NavigationParams(const GURL& url,
const content::Referrer& referrer,
- bool has_user_gesture,
+ content::NavigationGesture gesture,
bool is_post,
ui::PageTransition page_transition_type,
bool is_redirect,
@@ -28,7 +29,7 @@ class NavigationParams {
const GURL& url() const { return url_; }
GURL& url() { return url_; }
const content::Referrer& referrer() const { return referrer_; }
- bool has_user_gesture() const { return has_user_gesture_; }
+ content::NavigationGesture gesture() const { return gesture_; }
bool is_post() const { return is_post_; }
ui::PageTransition transition_type() const { return transition_type_; }
bool is_redirect() const { return is_redirect_; }
@@ -40,7 +41,7 @@ class NavigationParams {
GURL url_;
content::Referrer referrer_;
- bool has_user_gesture_;
+ content::NavigationGesture gesture_;
bool is_post_;
ui::PageTransition transition_type_;
bool is_redirect_;

Powered by Google App Engine
This is Rietveld 408576698