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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« 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