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_ |