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 EXTENSIONS_COMMON_CONSTANTS_H_ | 5 #ifndef EXTENSIONS_COMMON_CONSTANTS_H_ |
6 #define EXTENSIONS_COMMON_CONSTANTS_H_ | 6 #define EXTENSIONS_COMMON_CONSTANTS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "ui/base/layout.h" | 10 #include "ui/base/layout.h" |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 // The URL query parameter key corresponding to multi-login user index. | 101 // The URL query parameter key corresponding to multi-login user index. |
102 extern const char kAuthUserQueryKey[]; | 102 extern const char kAuthUserQueryKey[]; |
103 | 103 |
104 // Mime type strings | 104 // Mime type strings |
105 extern const char kMimeTypeJpeg[]; | 105 extern const char kMimeTypeJpeg[]; |
106 extern const char kMimeTypePng[]; | 106 extern const char kMimeTypePng[]; |
107 | 107 |
108 // The extension id of the Web Store component application. | 108 // The extension id of the Web Store component application. |
109 extern const char kWebStoreAppId[]; | 109 extern const char kWebStoreAppId[]; |
110 | 110 |
| 111 // This enum is used for the launch type the user wants to use for an |
| 112 // application. |
| 113 // Do not remove items or re-order this enum as it is used in preferences |
| 114 // and histograms. |
| 115 enum LaunchType { |
| 116 LAUNCH_TYPE_INVALID = -1, |
| 117 LAUNCH_TYPE_FIRST = 0, |
| 118 LAUNCH_TYPE_PINNED = LAUNCH_TYPE_FIRST, |
| 119 LAUNCH_TYPE_REGULAR = 1, |
| 120 LAUNCH_TYPE_FULLSCREEN = 2, |
| 121 LAUNCH_TYPE_WINDOW = 3, |
| 122 NUM_LAUNCH_TYPES, |
| 123 |
| 124 // Launch an app in the in the way a click on the NTP would, |
| 125 // if no user pref were set. Update this constant to change |
| 126 // the default for the NTP and chrome.management.launchApp(). |
| 127 LAUNCH_TYPE_DEFAULT = LAUNCH_TYPE_REGULAR |
| 128 }; |
| 129 |
| 130 // Don't remove items or change the order of this enum. It's used in |
| 131 // histograms and preferences. |
| 132 enum LaunchContainer { |
| 133 LAUNCH_CONTAINER_WINDOW, |
| 134 LAUNCH_CONTAINER_PANEL, |
| 135 LAUNCH_CONTAINER_TAB, |
| 136 // For platform apps, which don't actually have a container (they just get a |
| 137 // "onLaunched" event). |
| 138 LAUNCH_CONTAINER_NONE |
| 139 }; |
| 140 |
111 } // namespace extensions | 141 } // namespace extensions |
112 | 142 |
113 namespace extension_misc { | 143 namespace extension_misc { |
114 | 144 |
115 // Matches chrome.windows.WINDOW_ID_NONE. | 145 // Matches chrome.windows.WINDOW_ID_NONE. |
116 const int kUnknownWindowId = -1; | 146 const int kUnknownWindowId = -1; |
117 | 147 |
118 // Matches chrome.windows.WINDOW_ID_CURRENT. | 148 // Matches chrome.windows.WINDOW_ID_CURRENT. |
119 const int kCurrentWindowId = -2; | 149 const int kCurrentWindowId = -2; |
120 | 150 |
(...skipping 25 matching lines...) Expand all Loading... |
146 const ui::ScaleFactor scale; | 176 const ui::ScaleFactor scale; |
147 }; | 177 }; |
148 | 178 |
149 // The icon representations for extension actions. | 179 // The icon representations for extension actions. |
150 extern const IconRepresentationInfo kExtensionActionIconSizes[]; | 180 extern const IconRepresentationInfo kExtensionActionIconSizes[]; |
151 const size_t kNumExtensionActionIconSizes = 2u; | 181 const size_t kNumExtensionActionIconSizes = 2u; |
152 | 182 |
153 } // namespace extension_misc | 183 } // namespace extension_misc |
154 | 184 |
155 #endif // EXTENSIONS_COMMON_CONSTANTS_H_ | 185 #endif // EXTENSIONS_COMMON_CONSTANTS_H_ |
OLD | NEW |