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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 | 302 |
303 // List of sizes for extension icons that can be defined in the manifest. | 303 // List of sizes for extension icons that can be defined in the manifest. |
304 extern const int kExtensionActionIconSizes[]; | 304 extern const int kExtensionActionIconSizes[]; |
305 extern const size_t kNumExtensionActionIconSizes; | 305 extern const size_t kNumExtensionActionIconSizes; |
306 | 306 |
307 // List of sizes for extension icons that can be defined in the manifest. | 307 // List of sizes for extension icons that can be defined in the manifest. |
308 extern const int kScriptBadgeIconSizes[]; | 308 extern const int kScriptBadgeIconSizes[]; |
309 extern const size_t kNumScriptBadgeIconSizes; | 309 extern const size_t kNumScriptBadgeIconSizes; |
310 } // namespace extension_misc | 310 } // namespace extension_misc |
311 | 311 |
| 312 namespace extensions { |
| 313 // This enum is used for the launch type the user wants to use for an |
| 314 // application. |
| 315 // Do not remove items or re-order this enum as it is used in preferences |
| 316 // and histograms. |
| 317 enum LaunchType { |
| 318 LAUNCH_TYPE_PINNED, |
| 319 LAUNCH_TYPE_REGULAR, |
| 320 LAUNCH_TYPE_FULLSCREEN, |
| 321 LAUNCH_TYPE_WINDOW, |
| 322 |
| 323 // Launch an app in the in the way a click on the NTP would, |
| 324 // if no user pref were set. Update this constant to change |
| 325 // the default for the NTP and chrome.management.launchApp(). |
| 326 LAUNCH_TYPE_DEFAULT = LAUNCH_TYPE_REGULAR |
| 327 }; |
| 328 |
| 329 // Don't remove items or change the order of this enum. It's used in |
| 330 // histograms and preferences. |
| 331 enum LaunchContainer { |
| 332 LAUNCH_CONTAINER_WINDOW, |
| 333 LAUNCH_CONTAINER_PANEL, |
| 334 LAUNCH_CONTAINER_TAB, |
| 335 // For platform apps, which don't actually have a container (they just get a |
| 336 // "onLaunched" event). |
| 337 LAUNCH_CONTAINER_NONE |
| 338 }; |
| 339 } // namespace extensions |
| 340 |
312 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | 341 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ |
OLD | NEW |