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

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

Issue 2896623003: Added web::NavigationContext::GetPageTransition. (Closed)
Patch Set: Rebased 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
« no previous file with comments | « ios/web/public/test/fakes/test_web_state_observer.mm ('k') | ios/web/test/web_int_test.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b8d5b468a80f2b7c002892595418eb94a4f53db2..ee7073b63b536424863b68a38991377ecb1da470 100644
--- a/ios/web/public/web_state/navigation_context.h
+++ b/ios/web/public/web_state/navigation_context.h
@@ -7,6 +7,8 @@
#import <Foundation/Foundation.h>
+#include "ui/base/page_transition_types.h"
+
class GURL;
namespace net {
@@ -30,6 +32,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
« no previous file with comments | « ios/web/public/test/fakes/test_web_state_observer.mm ('k') | ios/web/test/web_int_test.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698