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 // ====== New Architecture ===== | 5 // ====== New Architecture ===== |
6 // = This code is only used in the new iOS Chrome architecture. = | 6 // = This code is only used in the new iOS Chrome architecture. = |
7 // ============================================================================ | 7 // ============================================================================ |
8 | 8 |
9 #ifndef IOS_CHROME_APP_APPLICATION_PHASE_H_ | 9 #ifndef IOS_CLEAN_CHROME_APP_APPLICATION_PHASE_H_ |
10 #define IOS_CHROME_APP_APPLICATION_PHASE_H_ | 10 #define IOS_CLEAN_CHROME_APP_APPLICATION_PHASE_H_ |
11 | 11 |
12 // The phases that the application moves through as it transitions between | 12 // The phases that the application moves through as it transitions between |
13 // states. | 13 // states. |
14 typedef NS_ENUM(NSUInteger, ApplicationPhase) { | 14 typedef NS_ENUM(NSUInteger, ApplicationPhase) { |
15 // The initial state of the application performing a cold launch. | 15 // The initial state of the application performing a cold launch. |
16 APPLICATION_COLD, | 16 APPLICATION_COLD, |
17 // The minimal initialization that must be completed before any further | 17 // The minimal initialization that must be completed before any further |
18 // startup can happen. |applicationDidFinishLaunching:withOptions:| must | 18 // startup can happen. |applicationDidFinishLaunching:withOptions:| must |
19 // bring the appication to at least this phase before returning. | 19 // bring the appication to at least this phase before returning. |
20 APPLICATION_BASIC, | 20 APPLICATION_BASIC, |
21 // The phase required for any background handling. | 21 // The phase required for any background handling. |
22 APPLICATION_BACKGROUNDED, | 22 APPLICATION_BACKGROUNDED, |
23 // The phase where the app is foregrounded but Safe Mode has been started. | 23 // The phase where the app is foregrounded but Safe Mode has been started. |
24 APPLICATION_SAFE_MODE, | 24 APPLICATION_SAFE_MODE, |
25 // The phase where the app is fully foregrounded and the regular UI has | 25 // The phase where the app is fully foregrounded and the regular UI has |
26 // started. | 26 // started. |
27 APPLICATION_FOREGROUNDED, | 27 APPLICATION_FOREGROUNDED, |
28 // The phase where the application has started to terminate. | 28 // The phase where the application has started to terminate. |
29 APPLICATION_TERMINATING | 29 APPLICATION_TERMINATING |
30 }; | 30 }; |
31 | 31 |
32 #endif // IOS_CHROME_APP_APPLICATION_PHASE_H_ | 32 #endif // IOS_CLEAN_CHROME_APP_APPLICATION_PHASE_H_ |
OLD | NEW |