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

Side by Side Diff: ios/chrome/browser/app_startup_parameters.h

Issue 2923013005: Removed XCallbackParameters and related code. (Closed)
Patch Set: rebase Created 3 years, 6 months 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/BUILD.gn ('k') | ios/chrome/browser/app_startup_parameters.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_CHROME_BROWSER_APP_STARTUP_PARAMETERS_H_ 5 #ifndef IOS_CHROME_BROWSER_APP_STARTUP_PARAMETERS_H_
6 #define IOS_CHROME_BROWSER_APP_STARTUP_PARAMETERS_H_ 6 #define IOS_CHROME_BROWSER_APP_STARTUP_PARAMETERS_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 9
10 class GURL; 10 class GURL;
11 @class XCallbackParameters;
12 11
13 // This class stores all the parameters relevant to the app startup in case 12 // This class stores all the parameters relevant to the app startup in case
14 // of launch from another app. 13 // of launch from another app.
15 @interface AppStartupParameters : NSObject 14 @interface AppStartupParameters : NSObject
16 15
17 // The URL received that should be opened. 16 // The URL received that should be opened.
18 @property(nonatomic, readonly, assign) const GURL& externalURL; 17 @property(nonatomic, readonly, assign) const GURL& externalURL;
19 18
20 // Parameters representing an x-callback-url request from another app.
21 // Can be nil.
22 @property(nonatomic, readonly, strong) XCallbackParameters* xCallbackParameters;
23
24 // Boolean to track if a voice search is requested at startup. 19 // Boolean to track if a voice search is requested at startup.
25 @property(nonatomic, readwrite, assign) BOOL launchVoiceSearch; 20 @property(nonatomic, readwrite, assign) BOOL launchVoiceSearch;
26 // Boolean to track if the app should launch in incognito mode. 21 // Boolean to track if the app should launch in incognito mode.
27 @property(nonatomic, readwrite, assign) BOOL launchInIncognito; 22 @property(nonatomic, readwrite, assign) BOOL launchInIncognito;
28 // Boolean to track if the omnibox should be focused on startup. 23 // Boolean to track if the omnibox should be focused on startup.
29 @property(nonatomic, readwrite, assign) BOOL launchFocusOmnibox; 24 @property(nonatomic, readwrite, assign) BOOL launchFocusOmnibox;
30 // Boolean to track if a QR scanner is requested at startup. 25 // Boolean to track if a QR scanner is requested at startup.
31 @property(nonatomic, readwrite, assign) BOOL launchQRScanner; 26 @property(nonatomic, readwrite, assign) BOOL launchQRScanner;
32 27
33 - (instancetype)init NS_UNAVAILABLE; 28 - (instancetype)init NS_UNAVAILABLE;
34 29
35 - (instancetype)initWithExternalURL:(const GURL&)externalURL;
36
37 - (instancetype)initWithExternalURL:(const GURL&)externalURL 30 - (instancetype)initWithExternalURL:(const GURL&)externalURL
38 xCallbackParameters:(XCallbackParameters*)xCallbackParameters
39 NS_DESIGNATED_INITIALIZER; 31 NS_DESIGNATED_INITIALIZER;
40 32
41 @end 33 @end
42 34
43 #endif // IOS_CHROME_BROWSER_APP_STARTUP_PARAMETERS_H_ 35 #endif // IOS_CHROME_BROWSER_APP_STARTUP_PARAMETERS_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/BUILD.gn ('k') | ios/chrome/browser/app_startup_parameters.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698