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_RELOAD, |
| 117 SOURCE_RESTART, |
| 118 SOURCE_LOAD_AND_LAUNCH, |
| 119 SOURCE_FILE_HANDLER, |
| 120 SOURCE_URL_HANDLER, |
| 121 |
| 122 SOURCE_ATHENA, |
| 123 SOURCE_WIN_METRO, |
| 124 |
| 125 SOURCE_SYSTEM_TRAY, |
| 126 SOURCE_ABOUT_PAGE, |
| 127 SOURCE_KEYBOARD, |
| 128 |
| 129 NUM_APP_LAUNCH_SOURCES |
| 130 }; |
| 131 |
111 } // namespace extensions | 132 } // namespace extensions |
112 | 133 |
113 namespace extension_misc { | 134 namespace extension_misc { |
114 | 135 |
115 // Matches chrome.windows.WINDOW_ID_NONE. | 136 // Matches chrome.windows.WINDOW_ID_NONE. |
116 const int kUnknownWindowId = -1; | 137 const int kUnknownWindowId = -1; |
117 | 138 |
118 // Matches chrome.windows.WINDOW_ID_CURRENT. | 139 // Matches chrome.windows.WINDOW_ID_CURRENT. |
119 const int kCurrentWindowId = -2; | 140 const int kCurrentWindowId = -2; |
120 | 141 |
(...skipping 25 matching lines...) Expand all Loading... |
146 const ui::ScaleFactor scale; | 167 const ui::ScaleFactor scale; |
147 }; | 168 }; |
148 | 169 |
149 // The icon representations for extension actions. | 170 // The icon representations for extension actions. |
150 extern const IconRepresentationInfo kExtensionActionIconSizes[]; | 171 extern const IconRepresentationInfo kExtensionActionIconSizes[]; |
151 const size_t kNumExtensionActionIconSizes = 2u; | 172 const size_t kNumExtensionActionIconSizes = 2u; |
152 | 173 |
153 } // namespace extension_misc | 174 } // namespace extension_misc |
154 | 175 |
155 #endif // EXTENSIONS_COMMON_CONSTANTS_H_ | 176 #endif // EXTENSIONS_COMMON_CONSTANTS_H_ |
OLD | NEW |