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

Unified Diff: ios/web/public/web_state/navigation_context.h

Issue 2896623003: Added web::NavigationContext::GetPageTransition. (Closed)
Patch Set: Fixed condition for SetIsCreatedFromHashChange call Created 3 years, 7 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: ios/web/public/web_state/navigation_context.h
diff --git a/ios/web/public/web_state/navigation_context.h b/ios/web/public/web_state/navigation_context.h
index 95e07c0b37226f580f04ab3a10ab989c4906822d..61c4d3e0a862dad6d1bda074b174165ec92c74fc 100644
--- a/ios/web/public/web_state/navigation_context.h
+++ b/ios/web/public/web_state/navigation_context.h
@@ -5,6 +5,8 @@
#ifndef IOS_WEB_PUBLIC_WEB_STATE_NAVIGATION_CONTEXT_H_
#define IOS_WEB_PUBLIC_WEB_STATE_NAVIGATION_CONTEXT_H_
+#include "ui/base/page_transition_types.h"
+
class GURL;
namespace net {
@@ -28,6 +30,9 @@ class NavigationContext {
// The URL the WebState is navigating to.
virtual const GURL& GetUrl() const = 0;
+ // Returns the page transition type for this navigation.
+ virtual ui::PageTransition GetPageTransition() const = 0;
+
// Whether the navigation happened within the same document. Examples of same
// document navigations are:
// * reference fragment navigations

Powered by Google App Engine
This is Rietveld 408576698