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

Unified Diff: ios/chrome/browser/web/external_app_launcher.h

Issue 2580333003: Upstream Chrome on iOS source code [10/11]. (Closed)
Patch Set: Created 4 years 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/web/external_app_launcher.h
diff --git a/ios/chrome/browser/web/external_app_launcher.h b/ios/chrome/browser/web/external_app_launcher.h
new file mode 100644
index 0000000000000000000000000000000000000000..f14e23a4845b85adfb76fe8b8eeed04a27287719
--- /dev/null
+++ b/ios/chrome/browser/web/external_app_launcher.h
@@ -0,0 +1,24 @@
+// Copyright 2012 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_WEB_EXTERNAL_APP_LAUNCHER_H_
+#define IOS_CHROME_BROWSER_WEB_EXTERNAL_APP_LAUNCHER_H_
+
+#import <UIKit/UIKit.h>
+
+class GURL;
+
+// A customized external app launcher that optionally shows a modal
+// confirmation dialog before switching context to an external application.
+@interface ExternalAppLauncher : NSObject
+
+// Opens URL in an external application if possible (optionally after
+// confirming via dialog in case that user didn't interact using
+// |linkClicked| or if the external application is face time) or returns NO
+// if there is no such application available.
+- (BOOL)openURL:(const GURL&)gURL linkClicked:(BOOL)linkClicked;
+
+@end
+
+#endif // IOS_CHROME_BROWSER_WEB_EXTERNAL_APP_LAUNCHER_H_
« no previous file with comments | « ios/chrome/browser/web/error_page_content_unittest.mm ('k') | ios/chrome/browser/web/external_app_launcher.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698