OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ |
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 | 254 |
255 // The path part of the file system url used for media file systems. | 255 // The path part of the file system url used for media file systems. |
256 extern const char kMediaFileSystemPathPart[]; | 256 extern const char kMediaFileSystemPathPart[]; |
257 | 257 |
258 // The key used for signing some pieces of data from the webstore. | 258 // The key used for signing some pieces of data from the webstore. |
259 extern const uint8 kWebstoreSignaturesPublicKey[]; | 259 extern const uint8 kWebstoreSignaturesPublicKey[]; |
260 extern const int kWebstoreSignaturesPublicKeySize; | 260 extern const int kWebstoreSignaturesPublicKeySize; |
261 | 261 |
262 } // namespace extension_misc | 262 } // namespace extension_misc |
263 | 263 |
264 namespace extensions { | |
265 | |
266 // This enum is used for the launch type the user wants to use for an | |
267 // application. | |
268 // Do not remove items or re-order this enum as it is used in preferences | |
269 // and histograms. | |
270 enum LaunchType { | |
271 LAUNCH_TYPE_INVALID = -1, | |
272 LAUNCH_TYPE_FIRST = 0, | |
273 LAUNCH_TYPE_PINNED = LAUNCH_TYPE_FIRST, | |
274 LAUNCH_TYPE_REGULAR = 1, | |
275 LAUNCH_TYPE_FULLSCREEN = 2, | |
276 LAUNCH_TYPE_WINDOW = 3, | |
277 NUM_LAUNCH_TYPES, | |
278 | |
279 // Launch an app in the in the way a click on the NTP would, | |
280 // if no user pref were set. Update this constant to change | |
281 // the default for the NTP and chrome.management.launchApp(). | |
282 LAUNCH_TYPE_DEFAULT = LAUNCH_TYPE_REGULAR | |
283 }; | |
284 | |
285 // Don't remove items or change the order of this enum. It's used in | |
286 // histograms and preferences. | |
287 enum LaunchContainer { | |
288 LAUNCH_CONTAINER_WINDOW, | |
289 LAUNCH_CONTAINER_PANEL, | |
290 LAUNCH_CONTAINER_TAB, | |
291 // For platform apps, which don't actually have a container (they just get a | |
292 // "onLaunched" event). | |
293 LAUNCH_CONTAINER_NONE | |
294 }; | |
295 | |
296 } // namespace extensions | |
297 | |
298 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | 264 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ |
OLD | NEW |