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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 SOURCE_FILE_HANDLER, | 122 SOURCE_FILE_HANDLER, |
123 SOURCE_URL_HANDLER, | 123 SOURCE_URL_HANDLER, |
124 | 124 |
125 SOURCE_SYSTEM_TRAY, | 125 SOURCE_SYSTEM_TRAY, |
126 SOURCE_ABOUT_PAGE, | 126 SOURCE_ABOUT_PAGE, |
127 SOURCE_KEYBOARD, | 127 SOURCE_KEYBOARD, |
128 | 128 |
129 NUM_APP_LAUNCH_SOURCES | 129 NUM_APP_LAUNCH_SOURCES |
130 }; | 130 }; |
131 | 131 |
| 132 // This enum is used for the launch type the user wants to use for an |
| 133 // application. |
| 134 // Do not remove items or re-order this enum as it is used in preferences |
| 135 // and histograms. |
| 136 enum LaunchType { |
| 137 LAUNCH_TYPE_INVALID = -1, |
| 138 LAUNCH_TYPE_FIRST = 0, |
| 139 LAUNCH_TYPE_PINNED = LAUNCH_TYPE_FIRST, |
| 140 LAUNCH_TYPE_REGULAR = 1, |
| 141 LAUNCH_TYPE_FULLSCREEN = 2, |
| 142 LAUNCH_TYPE_WINDOW = 3, |
| 143 NUM_LAUNCH_TYPES, |
| 144 |
| 145 // Launch an app in the in the way a click on the NTP would, |
| 146 // if no user pref were set. Update this constant to change |
| 147 // the default for the NTP and chrome.management.launchApp(). |
| 148 LAUNCH_TYPE_DEFAULT = LAUNCH_TYPE_REGULAR |
| 149 }; |
| 150 |
| 151 // Don't remove items or change the order of this enum. It's used in |
| 152 // histograms and preferences. |
| 153 enum LaunchContainer { |
| 154 LAUNCH_CONTAINER_WINDOW, |
| 155 LAUNCH_CONTAINER_PANEL, |
| 156 LAUNCH_CONTAINER_TAB, |
| 157 // For platform apps, which don't actually have a container (they just get a |
| 158 // "onLaunched" event). |
| 159 LAUNCH_CONTAINER_NONE |
| 160 }; |
| 161 |
132 } // namespace extensions | 162 } // namespace extensions |
133 | 163 |
134 namespace extension_misc { | 164 namespace extension_misc { |
135 | 165 |
136 // Matches chrome.windows.WINDOW_ID_NONE. | 166 // Matches chrome.windows.WINDOW_ID_NONE. |
137 const int kUnknownWindowId = -1; | 167 const int kUnknownWindowId = -1; |
138 | 168 |
139 // Matches chrome.windows.WINDOW_ID_CURRENT. | 169 // Matches chrome.windows.WINDOW_ID_CURRENT. |
140 const int kCurrentWindowId = -2; | 170 const int kCurrentWindowId = -2; |
141 | 171 |
(...skipping 25 matching lines...) Expand all Loading... |
167 const ui::ScaleFactor scale; | 197 const ui::ScaleFactor scale; |
168 }; | 198 }; |
169 | 199 |
170 // The icon representations for extension actions. | 200 // The icon representations for extension actions. |
171 extern const IconRepresentationInfo kExtensionActionIconSizes[]; | 201 extern const IconRepresentationInfo kExtensionActionIconSizes[]; |
172 const size_t kNumExtensionActionIconSizes = 2u; | 202 const size_t kNumExtensionActionIconSizes = 2u; |
173 | 203 |
174 } // namespace extension_misc | 204 } // namespace extension_misc |
175 | 205 |
176 #endif // EXTENSIONS_COMMON_CONSTANTS_H_ | 206 #endif // EXTENSIONS_COMMON_CONSTANTS_H_ |
OLD | NEW |