| Index: extensions/common/constants.h
|
| diff --git a/extensions/common/constants.h b/extensions/common/constants.h
|
| index bd446861d7602187d56983c1fb54c18f70e689fc..25d0be23f9f2880e50f2b1fc1f09ab410400a2d5 100644
|
| --- a/extensions/common/constants.h
|
| +++ b/extensions/common/constants.h
|
| @@ -129,6 +129,36 @@ enum AppLaunchSource {
|
| NUM_APP_LAUNCH_SOURCES
|
| };
|
|
|
| +// This enum is used for the launch type the user wants to use for an
|
| +// application.
|
| +// Do not remove items or re-order this enum as it is used in preferences
|
| +// and histograms.
|
| +enum LaunchType {
|
| + LAUNCH_TYPE_INVALID = -1,
|
| + LAUNCH_TYPE_FIRST = 0,
|
| + LAUNCH_TYPE_PINNED = LAUNCH_TYPE_FIRST,
|
| + LAUNCH_TYPE_REGULAR = 1,
|
| + LAUNCH_TYPE_FULLSCREEN = 2,
|
| + LAUNCH_TYPE_WINDOW = 3,
|
| + NUM_LAUNCH_TYPES,
|
| +
|
| + // Launch an app in the in the way a click on the NTP would,
|
| + // if no user pref were set. Update this constant to change
|
| + // the default for the NTP and chrome.management.launchApp().
|
| + LAUNCH_TYPE_DEFAULT = LAUNCH_TYPE_REGULAR
|
| +};
|
| +
|
| +// Don't remove items or change the order of this enum. It's used in
|
| +// histograms and preferences.
|
| +enum LaunchContainer {
|
| + LAUNCH_CONTAINER_WINDOW,
|
| + LAUNCH_CONTAINER_PANEL,
|
| + LAUNCH_CONTAINER_TAB,
|
| + // For platform apps, which don't actually have a container (they just get a
|
| + // "onLaunched" event).
|
| + LAUNCH_CONTAINER_NONE
|
| +};
|
| +
|
| } // namespace extensions
|
|
|
| namespace extension_misc {
|
|
|