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

Unified Diff: ios/chrome/browser/native_app_launcher/native_app_navigation_util.h

Issue 2650563002: Pass WebState to NativeAppNavigationController (Closed)
Patch Set: fixed import vs. include Created 3 years, 11 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/chrome/browser/native_app_launcher/native_app_navigation_util.h
diff --git a/ios/chrome/browser/native_app_launcher/native_app_navigation_util.h b/ios/chrome/browser/native_app_launcher/native_app_navigation_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..fd4462553d72f74861d5f1bfeb4229510d2afa41
--- /dev/null
+++ b/ios/chrome/browser/native_app_launcher/native_app_navigation_util.h
@@ -0,0 +1,21 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_CHROME_BROWSER_NATIVE_APP_LAUNCHER_NATIVE_APP_NAVIGATION_UTIL_H_
+#define IOS_CHROME_BROWSER_NATIVE_APP_LAUNCHER_NATIVE_APP_NAVIGATION_UTIL_H_
+
+namespace web {
+class WebState;
+} // namespace web
+
+namespace native_app_launcher {
+
+// Returns whether the current state is arrived at via a "link navigation" in
+// the sense of Native App Launcher, i.e. a navigation caused by an explicit
+// user action in the rectangle of the web content area.
+bool IsLinkNavigation(web::WebState* web_state);
+
+} // namespace native_app_launcher
+
+#endif // IOS_CHROME_BROWSER_NATIVE_APP_LAUNCHER_NATIVE_APP_NAVIGATION_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698