Index: extensions/common/constants.h |
diff --git a/extensions/common/constants.h b/extensions/common/constants.h |
index d952989760ec47f99fbdb8db445233d98af5d503..540abd2e5a8727e3414865e92d5ade4fea90a007 100644 |
--- a/extensions/common/constants.h |
+++ b/extensions/common/constants.h |
@@ -108,6 +108,36 @@ extern const char kMimeTypePng[]; |
// The extension id of the Web Store component application. |
extern const char kWebStoreAppId[]; |
+// 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 { |