Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1574)

Unified Diff: chrome/common/extensions/extension_constants.h

Issue 106713002: Move LaunchContainer enum to extension_constants.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/extension_constants.h
diff --git a/chrome/common/extensions/extension_constants.h b/chrome/common/extensions/extension_constants.h
index 50920e8e35b11e82d8ccf8b7fc6b3ccb65d859f7..ee1dc9f6b2ea205a37d121e6b5a42a090017ac14 100644
--- a/chrome/common/extensions/extension_constants.h
+++ b/chrome/common/extensions/extension_constants.h
@@ -309,4 +309,33 @@ namespace extension_misc {
extern const size_t kNumScriptBadgeIconSizes;
} // namespace extension_misc
+namespace extensions {
+ // 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_PINNED,
+ LAUNCH_TYPE_REGULAR,
+ LAUNCH_TYPE_FULLSCREEN,
+ LAUNCH_TYPE_WINDOW,
+
+ // 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
+
#endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_
« no previous file with comments | « chrome/browser/ui/webui/ntp/app_launcher_handler.cc ('k') | chrome/common/extensions/manifest_handlers/app_launch_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698