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. | |
Alexei Svitkine (slow)
2014/11/03 22:03:42
Nit: Could you expand comment to mention it's used
cylee1
2014/11/04 13:40:23
Done.
| |
112 enum AppLaunchSource { | |
113 SOURCE_UNTRACKED = 0, | |
114 SOURCE_APP_LAUNCHER, | |
115 SOURCE_NEW_TAB_PAGE, | |
116 SOURCE_RELOAD, | |
117 SOURCE_RESTART, | |
118 SOURCE_LOAD_AND_LAUNCH, | |
119 SOURCE_COMMAND_LINE, | |
120 SOURCE_FILE_HANDLER, | |
121 SOURCE_URL_HANDLER, | |
122 | |
123 SOURCE_SYSTEM_TRAY, | |
124 SOURCE_ABOUT_PAGE, | |
125 SOURCE_KEYBOARD, | |
126 | |
127 NUM_APP_LAUNCH_SOURCES | |
128 }; | |
129 | |
111 } // namespace extensions | 130 } // namespace extensions |
112 | 131 |
113 namespace extension_misc { | 132 namespace extension_misc { |
114 | 133 |
115 // Matches chrome.windows.WINDOW_ID_NONE. | 134 // Matches chrome.windows.WINDOW_ID_NONE. |
116 const int kUnknownWindowId = -1; | 135 const int kUnknownWindowId = -1; |
117 | 136 |
118 // Matches chrome.windows.WINDOW_ID_CURRENT. | 137 // Matches chrome.windows.WINDOW_ID_CURRENT. |
119 const int kCurrentWindowId = -2; | 138 const int kCurrentWindowId = -2; |
120 | 139 |
(...skipping 25 matching lines...) Expand all Loading... | |
146 const ui::ScaleFactor scale; | 165 const ui::ScaleFactor scale; |
147 }; | 166 }; |
148 | 167 |
149 // The icon representations for extension actions. | 168 // The icon representations for extension actions. |
150 extern const IconRepresentationInfo kExtensionActionIconSizes[]; | 169 extern const IconRepresentationInfo kExtensionActionIconSizes[]; |
151 const size_t kNumExtensionActionIconSizes = 2u; | 170 const size_t kNumExtensionActionIconSizes = 2u; |
152 | 171 |
153 } // namespace extension_misc | 172 } // namespace extension_misc |
154 | 173 |
155 #endif // EXTENSIONS_COMMON_CONSTANTS_H_ | 174 #endif // EXTENSIONS_COMMON_CONSTANTS_H_ |
OLD | NEW |