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

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

Issue 502033003: Move ExtensionActionStorageManager out of extension_action_api.* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master for CQ Created 6 years, 3 months 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
« no previous file with comments | « extensions/common/constants.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "extensions/common/constants.h" 5 #include "extensions/common/constants.h"
6 6
7 #include "base/files/file_path.h"
8
9 namespace extensions { 7 namespace extensions {
10 8
11 const char kExtensionScheme[] = "chrome-extension"; 9 const char kExtensionScheme[] = "chrome-extension";
12 const char kExtensionResourceScheme[] = "chrome-extension-resource"; 10 const char kExtensionResourceScheme[] = "chrome-extension-resource";
13 11
14 const base::FilePath::CharType kManifestFilename[] = 12 const base::FilePath::CharType kManifestFilename[] =
15 FILE_PATH_LITERAL("manifest.json"); 13 FILE_PATH_LITERAL("manifest.json");
16 const base::FilePath::CharType kLocaleFolder[] = 14 const base::FilePath::CharType kLocaleFolder[] =
17 FILE_PATH_LITERAL("_locales"); 15 FILE_PATH_LITERAL("_locales");
18 const base::FilePath::CharType kMessagesFilename[] = 16 const base::FilePath::CharType kMessagesFilename[] =
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 EXTENSION_ICON_SMALL, // 32 64 EXTENSION_ICON_SMALL, // 32
67 EXTENSION_ICON_SMALLISH, // 24 65 EXTENSION_ICON_SMALLISH, // 24
68 EXTENSION_ICON_BITTY, // 16 66 EXTENSION_ICON_BITTY, // 16
69 // Additional 2x resources to load. 67 // Additional 2x resources to load.
70 2 * EXTENSION_ICON_MEDIUM, // 96 68 2 * EXTENSION_ICON_MEDIUM, // 96
71 2 * EXTENSION_ICON_SMALL // 64 69 2 * EXTENSION_ICON_SMALL // 64
72 }; 70 };
73 71
74 const size_t kNumExtensionIconSizes = arraysize(kExtensionIconSizes); 72 const size_t kNumExtensionIconSizes = arraysize(kExtensionIconSizes);
75 73
76 const int kExtensionActionIconSizes[] = {EXTENSION_ICON_ACTION, // 19, 74 const IconRepresentationInfo kExtensionActionIconSizes[] = {
77 2 * EXTENSION_ICON_ACTION // 38 75 { EXTENSION_ICON_ACTION, "19", ui::SCALE_FACTOR_100P },
76 { 2 * EXTENSION_ICON_ACTION, "38", ui::SCALE_FACTOR_200P }
78 }; 77 };
79 78
80 const size_t kNumExtensionActionIconSizes = 79 COMPILE_ASSERT(kNumExtensionActionIconSizes ==
81 arraysize(kExtensionActionIconSizes); 80 arraysize(kExtensionActionIconSizes),
81 num_action_icon_sizes_must_be_in_sync_with_action_icon_sizes);
82 82
83 } // namespace extension_misc 83 } // namespace extension_misc
OLDNEW
« no previous file with comments | « extensions/common/constants.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698