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