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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 // Enumeration of possible app launch sources. | 111 // Enumeration of possible app launch sources. |
112 // Note the enumeration is used in UMA histogram so entries | 112 // Note the enumeration is used in UMA histogram so entries |
113 // should not be re-ordered or removed. | 113 // should not be re-ordered or removed. |
114 enum AppLaunchSource { | 114 enum AppLaunchSource { |
115 SOURCE_UNTRACKED = 0, // Should be used in test. | 115 SOURCE_UNTRACKED = 0, |
116 SOURCE_APP_LAUNCHER, | 116 SOURCE_APP_LAUNCHER, |
117 SOURCE_NEW_TAB_PAGE, | 117 SOURCE_NEW_TAB_PAGE, |
118 SOURCE_RELOAD, | 118 SOURCE_RELOAD, |
119 SOURCE_RESTART, | 119 SOURCE_RESTART, |
120 SOURCE_LOAD_AND_LAUNCH, | 120 SOURCE_LOAD_AND_LAUNCH, |
121 SOURCE_COMMAND_LINE, | 121 SOURCE_COMMAND_LINE, |
122 SOURCE_FILE_HANDLER, | 122 SOURCE_FILE_HANDLER, |
123 SOURCE_URL_HANDLER, | 123 SOURCE_URL_HANDLER, |
| 124 |
124 SOURCE_SYSTEM_TRAY, | 125 SOURCE_SYSTEM_TRAY, |
125 SOURCE_ABOUT_PAGE, | 126 SOURCE_ABOUT_PAGE, |
126 SOURCE_KEYBOARD, | 127 SOURCE_KEYBOARD, |
127 SOURCE_EXTENSIONS_PAGE, | |
128 SOURCE_MANAGEMENT_API, | |
129 SOURCE_EPHEMERAL_APP, | |
130 SOURCE_BACKGROUND, | |
131 SOURCE_KIOSK, | |
132 SOURCE_CHROME_INTERNAL, | |
133 | 128 |
134 NUM_APP_LAUNCH_SOURCES | 129 NUM_APP_LAUNCH_SOURCES |
135 }; | 130 }; |
136 | 131 |
137 // This enum is used for the launch type the user wants to use for an | 132 // This enum is used for the launch type the user wants to use for an |
138 // application. | 133 // application. |
139 // Do not remove items or re-order this enum as it is used in preferences | 134 // Do not remove items or re-order this enum as it is used in preferences |
140 // and histograms. | 135 // and histograms. |
141 enum LaunchType { | 136 enum LaunchType { |
142 LAUNCH_TYPE_INVALID = -1, | 137 LAUNCH_TYPE_INVALID = -1, |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 const ui::ScaleFactor scale; | 197 const ui::ScaleFactor scale; |
203 }; | 198 }; |
204 | 199 |
205 // The icon representations for extension actions. | 200 // The icon representations for extension actions. |
206 extern const IconRepresentationInfo kExtensionActionIconSizes[]; | 201 extern const IconRepresentationInfo kExtensionActionIconSizes[]; |
207 const size_t kNumExtensionActionIconSizes = 2u; | 202 const size_t kNumExtensionActionIconSizes = 2u; |
208 | 203 |
209 } // namespace extension_misc | 204 } // namespace extension_misc |
210 | 205 |
211 #endif // EXTENSIONS_COMMON_CONSTANTS_H_ | 206 #endif // EXTENSIONS_COMMON_CONSTANTS_H_ |
OLD | NEW |