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