| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_BROWSER_NATIVE_APP_LAUNCHER_NATIVE_APP_NAVIGATION_CONTROLLER_
PROTOCOL_H_ |
| 6 #define IOS_CHROME_BROWSER_NATIVE_APP_LAUNCHER_NATIVE_APP_NAVIGATION_CONTROLLER_
PROTOCOL_H_ |
| 7 |
| 8 #import "ios/public/provider/chrome/browser/native_app_launcher/native_app_types
.h" |
| 9 |
| 10 class GURL; |
| 11 @class NSString; |
| 12 @class UIImage; |
| 13 |
| 14 // Protocol required for a controller to create a Native App Launcher infobar. |
| 15 @protocol NativeAppNavigationControllerProtocol |
| 16 // Returns app ID used to offer the installation of the application |
| 17 - (NSString*)appId; |
| 18 // Returns app name displayed in the infobar. |
| 19 - (NSString*)appName; |
| 20 // Asynchronously fetches icon and calls |block| when done. |
| 21 - (void)fetchSmallIconWithCompletionBlock:(void (^)(UIImage*))block; |
| 22 // Launches the application from the information extracted from |url|. |
| 23 - (void)launchApp:(const GURL&)url; |
| 24 // Opens store for the installation of the application. |
| 25 - (void)openStore; |
| 26 // Update metadata based on what the user did with the infobar. |
| 27 - (void)updateMetadataWithUserAction:(NativeAppActionType)userAction; |
| 28 @end |
| 29 |
| 30 #endif // IOS_CHROME_BROWSER_NATIVE_APP_LAUNCHER_NATIVE_APP_NAVIGATION_CONTROLL
ER_PROTOCOL_H_ |
| OLD | NEW |