| 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/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "ui/base/layout.h" | 9 #include "ui/base/layout.h" |
| 10 | 10 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 SOURCE_ABOUT_PAGE, | 124 SOURCE_ABOUT_PAGE, |
| 125 SOURCE_KEYBOARD, | 125 SOURCE_KEYBOARD, |
| 126 SOURCE_EXTENSIONS_PAGE, | 126 SOURCE_EXTENSIONS_PAGE, |
| 127 SOURCE_MANAGEMENT_API, | 127 SOURCE_MANAGEMENT_API, |
| 128 SOURCE_EPHEMERAL_APP_DEPRECATED, | 128 SOURCE_EPHEMERAL_APP_DEPRECATED, |
| 129 SOURCE_BACKGROUND, | 129 SOURCE_BACKGROUND, |
| 130 SOURCE_KIOSK, | 130 SOURCE_KIOSK, |
| 131 SOURCE_CHROME_INTERNAL, | 131 SOURCE_CHROME_INTERNAL, |
| 132 SOURCE_TEST, | 132 SOURCE_TEST, |
| 133 SOURCE_INSTALLED_NOTIFICATION, | 133 SOURCE_INSTALLED_NOTIFICATION, |
| 134 SOURCE_ACTION, |
| 134 | 135 |
| 135 NUM_APP_LAUNCH_SOURCES | 136 NUM_APP_LAUNCH_SOURCES |
| 136 }; | 137 }; |
| 137 | 138 |
| 139 // Type of action to launch. Only applies if AppLaunchSource is set to |
| 140 // SOURCE_ACTION. |
| 141 enum class ActionType { NEW_NOTE }; |
| 142 |
| 143 // Action-specific data to launch with. |
| 144 struct ActionData { |
| 145 ActionType action_type; |
| 146 }; |
| 147 |
| 138 // This enum is used for the launch type the user wants to use for an | 148 // This enum is used for the launch type the user wants to use for an |
| 139 // application. | 149 // application. |
| 140 // Do not remove items or re-order this enum as it is used in preferences | 150 // Do not remove items or re-order this enum as it is used in preferences |
| 141 // and histograms. | 151 // and histograms. |
| 142 enum LaunchType { | 152 enum LaunchType { |
| 143 LAUNCH_TYPE_INVALID = -1, | 153 LAUNCH_TYPE_INVALID = -1, |
| 144 LAUNCH_TYPE_FIRST = 0, | 154 LAUNCH_TYPE_FIRST = 0, |
| 145 LAUNCH_TYPE_PINNED = LAUNCH_TYPE_FIRST, | 155 LAUNCH_TYPE_PINNED = LAUNCH_TYPE_FIRST, |
| 146 LAUNCH_TYPE_REGULAR = 1, | 156 LAUNCH_TYPE_REGULAR = 1, |
| 147 LAUNCH_TYPE_FULLSCREEN = 2, | 157 LAUNCH_TYPE_FULLSCREEN = 2, |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 | 220 |
| 211 // The extension id for the production version of Hangouts. | 221 // The extension id for the production version of Hangouts. |
| 212 extern const char kProdHangoutsExtensionId[]; | 222 extern const char kProdHangoutsExtensionId[]; |
| 213 | 223 |
| 214 // Extension ids used by Hangouts. | 224 // Extension ids used by Hangouts. |
| 215 extern const char* const kHangoutsExtensionIds[6]; | 225 extern const char* const kHangoutsExtensionIds[6]; |
| 216 | 226 |
| 217 } // namespace extension_misc | 227 } // namespace extension_misc |
| 218 | 228 |
| 219 #endif // EXTENSIONS_COMMON_CONSTANTS_H_ | 229 #endif // EXTENSIONS_COMMON_CONSTANTS_H_ |
| OLD | NEW |