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 // Enumeration of possible app launch sources. |
| 112 enum AppLaunchSource { |
| 113 SOURCE_UNKNOWN = 0, |
| 114 SOURCE_APP_LAUNCHER, |
| 115 SOURCE_NEW_TAB_PAGE, |
| 116 SOURCE_RESTART, |
| 117 SOURCE_RELOAD, |
| 118 SOURCE_FILE_HANDLER, |
| 119 SOURCE_URL_HANDLER, |
| 120 |
| 121 SOURCE_GETHELP_SYSTEM_TRAY, |
| 122 SOURCE_GETHELP_ABOUT_PAGE, |
| 123 SOURCE_GETHELP_KEYBOARD, |
| 124 |
| 125 NUM_APP_LAUNCH_SOURCES |
| 126 }; |
| 127 |
111 } // namespace extensions | 128 } // namespace extensions |
112 | 129 |
113 namespace extension_misc { | 130 namespace extension_misc { |
114 | 131 |
115 // Matches chrome.windows.WINDOW_ID_NONE. | 132 // Matches chrome.windows.WINDOW_ID_NONE. |
116 const int kUnknownWindowId = -1; | 133 const int kUnknownWindowId = -1; |
117 | 134 |
118 // Matches chrome.windows.WINDOW_ID_CURRENT. | 135 // Matches chrome.windows.WINDOW_ID_CURRENT. |
119 const int kCurrentWindowId = -2; | 136 const int kCurrentWindowId = -2; |
120 | 137 |
(...skipping 25 matching lines...) Expand all Loading... |
146 const ui::ScaleFactor scale; | 163 const ui::ScaleFactor scale; |
147 }; | 164 }; |
148 | 165 |
149 // The icon representations for extension actions. | 166 // The icon representations for extension actions. |
150 extern const IconRepresentationInfo kExtensionActionIconSizes[]; | 167 extern const IconRepresentationInfo kExtensionActionIconSizes[]; |
151 const size_t kNumExtensionActionIconSizes = 2u; | 168 const size_t kNumExtensionActionIconSizes = 2u; |
152 | 169 |
153 } // namespace extension_misc | 170 } // namespace extension_misc |
154 | 171 |
155 #endif // EXTENSIONS_COMMON_CONSTANTS_H_ | 172 #endif // EXTENSIONS_COMMON_CONSTANTS_H_ |
OLD | NEW |