OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_APP_APPLICATION_DELEGATE_APP_STATE_H_ | 5 #ifndef IOS_CHROME_APP_APPLICATION_DELEGATE_APP_STATE_H_ |
6 #define IOS_CHROME_APP_APPLICATION_DELEGATE_APP_STATE_H_ | 6 #define IOS_CHROME_APP_APPLICATION_DELEGATE_APP_STATE_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
10 @protocol AppNavigation; | 10 @protocol AppNavigation; |
(...skipping 19 matching lines...) Expand all Loading... |
30 startupInformation:(id<StartupInformation>)startupInformation | 30 startupInformation:(id<StartupInformation>)startupInformation |
31 applicationDelegate:(MainApplicationDelegate*)applicationDelegate | 31 applicationDelegate:(MainApplicationDelegate*)applicationDelegate |
32 NS_DESIGNATED_INITIALIZER; | 32 NS_DESIGNATED_INITIALIZER; |
33 | 33 |
34 // YES if the user has ever interacted with the application. May be NO if the | 34 // YES if the user has ever interacted with the application. May be NO if the |
35 // application has been woken up by the system for background work. | 35 // application has been woken up by the system for background work. |
36 @property(nonatomic, readonly) BOOL userInteracted; | 36 @property(nonatomic, readonly) BOOL userInteracted; |
37 | 37 |
38 // Window for the application, it is not set during the initialization method. | 38 // Window for the application, it is not set during the initialization method. |
39 // Set the property before calling methods related to it. | 39 // Set the property before calling methods related to it. |
40 @property(nonatomic, assign) UIWindow* window; | 40 @property(nonatomic, weak) UIWindow* window; |
41 | 41 |
42 // Saves the launchOptions to be used from -newTabFromLaunchOptions. If the | 42 // Saves the launchOptions to be used from -newTabFromLaunchOptions. If the |
43 // application is in background, initialize the browser to basic. If not, launch | 43 // application is in background, initialize the browser to basic. If not, launch |
44 // the browser. | 44 // the browser. |
45 // Returns whether additional delegate handling should be performed (call to | 45 // Returns whether additional delegate handling should be performed (call to |
46 // -performActionForShortcutItem or -openURL by the system for example) | 46 // -performActionForShortcutItem or -openURL by the system for example) |
47 - (BOOL)requiresHandlingAfterLaunchWithOptions:(NSDictionary*)launchOptions | 47 - (BOOL)requiresHandlingAfterLaunchWithOptions:(NSDictionary*)launchOptions |
48 stateBackground:(BOOL)stateBackground; | 48 stateBackground:(BOOL)stateBackground; |
49 | 49 |
50 // Whether the application is in Safe Mode. | 50 // Whether the application is in Safe Mode. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 appNavigation:(id<AppNavigation>)appNavigation; | 82 appNavigation:(id<AppNavigation>)appNavigation; |
83 | 83 |
84 // Sets the return value for -didFinishLaunchingWithOptions that determines if | 84 // Sets the return value for -didFinishLaunchingWithOptions that determines if |
85 // UIKit should make followup delegate calls such as | 85 // UIKit should make followup delegate calls such as |
86 // -performActionForShortcutItem or -openURL. | 86 // -performActionForShortcutItem or -openURL. |
87 - (void)launchFromURLHandled:(BOOL)URLHandled; | 87 - (void)launchFromURLHandled:(BOOL)URLHandled; |
88 | 88 |
89 @end | 89 @end |
90 | 90 |
91 #endif // IOS_CHROME_APP_APPLICATION_DELEGATE_APP_STATE_H_ | 91 #endif // IOS_CHROME_APP_APPLICATION_DELEGATE_APP_STATE_H_ |
OLD | NEW |