Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: extensions/common/constants.h

Issue 1492073003: Handle more scale factors for extension Browser Action icons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: better docs Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 EXTENSION_ICON_SMALLISH = 24, 187 EXTENSION_ICON_SMALLISH = 24,
188 EXTENSION_ICON_ACTION = 19, 188 EXTENSION_ICON_ACTION = 19,
189 EXTENSION_ICON_BITTY = 16, 189 EXTENSION_ICON_BITTY = 16,
190 EXTENSION_ICON_INVALID = 0, 190 EXTENSION_ICON_INVALID = 0,
191 }; 191 };
192 192
193 // List of sizes for extension icons that can be defined in the manifest. 193 // List of sizes for extension icons that can be defined in the manifest.
194 extern const int kExtensionIconSizes[]; 194 extern const int kExtensionIconSizes[];
195 extern const size_t kNumExtensionIconSizes; 195 extern const size_t kNumExtensionIconSizes;
196 196
197 struct IconRepresentationInfo {
198 // Size in pixels.
199 const int size;
200 // Size as a string that will be used to retrieve representation value from
201 // ExtensionAction SetIcon function arguments.
202 const char* const size_string;
203 // Scale factor for which the representation should be used.
204 const ui::ScaleFactor scale;
205 };
206
207 // The icon representations for extension actions.
208 extern const IconRepresentationInfo kExtensionActionIconSizes[];
209 const size_t kNumExtensionActionIconSizes = 2u;
210
211 // The extension id of the PDF extension. 197 // The extension id of the PDF extension.
212 extern const char kPdfExtensionId[]; 198 extern const char kPdfExtensionId[];
213 199
214 // The extension id of the Office Viewer component extension. 200 // The extension id of the Office Viewer component extension.
215 extern const char kQuickOfficeComponentExtensionId[]; 201 extern const char kQuickOfficeComponentExtensionId[];
216 202
217 // The extension id of the Office Viewer extension on the internal webstore. 203 // The extension id of the Office Viewer extension on the internal webstore.
218 extern const char kQuickOfficeInternalExtensionId[]; 204 extern const char kQuickOfficeInternalExtensionId[];
219 205
220 // The extension id of the Office Viewer extension. 206 // The extension id of the Office Viewer extension.
221 extern const char kQuickOfficeExtensionId[]; 207 extern const char kQuickOfficeExtensionId[];
222 208
223 // The extension id used for testing mimeHandlerPrivate. 209 // The extension id used for testing mimeHandlerPrivate.
224 extern const char kMimeHandlerPrivateTestExtensionId[]; 210 extern const char kMimeHandlerPrivateTestExtensionId[];
225 211
226 // The extension id for the production version of Hangouts. 212 // The extension id for the production version of Hangouts.
227 extern const char kProdHangoutsExtensionId[]; 213 extern const char kProdHangoutsExtensionId[];
228 214
229 // Extension ids used by Hangouts. 215 // Extension ids used by Hangouts.
230 extern const char* const kHangoutsExtensionIds[6]; 216 extern const char* const kHangoutsExtensionIds[6];
231 217
232 } // namespace extension_misc 218 } // namespace extension_misc
233 219
234 #endif // EXTENSIONS_COMMON_CONSTANTS_H_ 220 #endif // EXTENSIONS_COMMON_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698