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

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

Issue 2508663002: [ios] Move NativeAppLauncher upstream (Closed)
Patch Set: CL Feedback Created 4 years, 1 month 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
« no previous file with comments | « ios/chrome/browser/native_app_launcher/native_app_infobar_delegate_unittest.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/native_app_launcher/native_app_navigation_controller_protocol.h
diff --git a/ios/chrome/browser/native_app_launcher/native_app_navigation_controller_protocol.h b/ios/chrome/browser/native_app_launcher/native_app_navigation_controller_protocol.h
new file mode 100644
index 0000000000000000000000000000000000000000..c006f286d1dd3278d86e4052df428ac9cbf8f2e7
--- /dev/null
+++ b/ios/chrome/browser/native_app_launcher/native_app_navigation_controller_protocol.h
@@ -0,0 +1,30 @@
+// Copyright 2013 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_CONTROLLER_PROTOCOL_H_
+#define IOS_CHROME_BROWSER_NATIVE_APP_LAUNCHER_NATIVE_APP_NAVIGATION_CONTROLLER_PROTOCOL_H_
+
+#import "ios/public/provider/chrome/browser/native_app_launcher/native_app_types.h"
+
+class GURL;
+@class NSString;
+@class UIImage;
+
+// Protocol required for a controller to create a Native App Launcher infobar.
+@protocol NativeAppNavigationControllerProtocol
+// Returns app ID used to offer the installation of the application
+- (NSString*)appId;
+// Returns app name displayed in the infobar.
+- (NSString*)appName;
+// Asynchronously fetches icon and calls |block| when done.
+- (void)fetchSmallIconWithCompletionBlock:(void (^)(UIImage*))block;
+// Launches the application from the information extracted from |url|.
+- (void)launchApp:(const GURL&)url;
+// Opens store for the installation of the application.
+- (void)openStore;
+// Update metadata based on what the user did with the infobar.
+- (void)updateMetadataWithUserAction:(NativeAppActionType)userAction;
+@end
+
+#endif // IOS_CHROME_BROWSER_NATIVE_APP_LAUNCHER_NATIVE_APP_NAVIGATION_CONTROLLER_PROTOCOL_H_
« no previous file with comments | « ios/chrome/browser/native_app_launcher/native_app_infobar_delegate_unittest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698