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