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

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

Issue 538063003: Move execute_code_function to extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing 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
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 namespace extensions { 7 namespace extensions {
8 8
9 const char kExtensionScheme[] = "chrome-extension"; 9 const char kExtensionScheme[] = "chrome-extension";
10 const char kExtensionResourceScheme[] = "chrome-extension-resource"; 10 const char kExtensionResourceScheme[] = "chrome-extension-resource";
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 const char kSyncAppSettingsDirectoryName[] = "Sync App Settings"; 50 const char kSyncAppSettingsDirectoryName[] = "Sync App Settings";
51 const char kSyncExtensionSettingsDirectoryName[] = "Sync Extension Settings"; 51 const char kSyncExtensionSettingsDirectoryName[] = "Sync Extension Settings";
52 const char kManagedSettingsDirectoryName[] = "Managed Extension Settings"; 52 const char kManagedSettingsDirectoryName[] = "Managed Extension Settings";
53 const char kStateStoreName[] = "Extension State"; 53 const char kStateStoreName[] = "Extension State";
54 const char kRulesStoreName[] = "Extension Rules"; 54 const char kRulesStoreName[] = "Extension Rules";
55 const char kWebStoreAppId[] = "ahfgeienlihckogmohjhadlkjgocpleb"; 55 const char kWebStoreAppId[] = "ahfgeienlihckogmohjhadlkjgocpleb";
56 56
57 const char kMimeTypeJpeg[] = "image/jpeg"; 57 const char kMimeTypeJpeg[] = "image/jpeg";
58 const char kMimeTypePng[] = "image/png"; 58 const char kMimeTypePng[] = "image/png";
59 59
60 const char kNoCodeOrFileToExecuteError[] = "No source code or file specified.";
61 const char kMoreThanOneValuesError[] = "Code and file should not be specified "
Ken Rockot(use gerrit already) 2014/09/04 22:54:47 Could you fix this constant name now that it's mov
Fady Samuel 2014/09/04 22:59:59 I don't want to block this CL but should these str
62 "at the same time in the second argument.";
63 const char kLoadFileError[] = "Failed to load file: \"*\". ";
64
60 } // namespace extensions 65 } // namespace extensions
61 66
62 namespace extension_misc { 67 namespace extension_misc {
63 68
64 const int kExtensionIconSizes[] = {EXTENSION_ICON_GIGANTOR, // 512 69 const int kExtensionIconSizes[] = {EXTENSION_ICON_GIGANTOR, // 512
65 EXTENSION_ICON_EXTRA_LARGE, // 256 70 EXTENSION_ICON_EXTRA_LARGE, // 256
66 EXTENSION_ICON_LARGE, // 128 71 EXTENSION_ICON_LARGE, // 128
67 EXTENSION_ICON_MEDIUM, // 48 72 EXTENSION_ICON_MEDIUM, // 48
68 EXTENSION_ICON_SMALL, // 32 73 EXTENSION_ICON_SMALL, // 32
69 EXTENSION_ICON_SMALLISH, // 24 74 EXTENSION_ICON_SMALLISH, // 24
70 EXTENSION_ICON_BITTY, // 16 75 EXTENSION_ICON_BITTY, // 16
71 // Additional 2x resources to load. 76 // Additional 2x resources to load.
72 2 * EXTENSION_ICON_MEDIUM, // 96 77 2 * EXTENSION_ICON_MEDIUM, // 96
73 2 * EXTENSION_ICON_SMALL // 64 78 2 * EXTENSION_ICON_SMALL // 64
74 }; 79 };
75 80
76 const size_t kNumExtensionIconSizes = arraysize(kExtensionIconSizes); 81 const size_t kNumExtensionIconSizes = arraysize(kExtensionIconSizes);
77 82
78 const IconRepresentationInfo kExtensionActionIconSizes[] = { 83 const IconRepresentationInfo kExtensionActionIconSizes[] = {
79 { EXTENSION_ICON_ACTION, "19", ui::SCALE_FACTOR_100P }, 84 { EXTENSION_ICON_ACTION, "19", ui::SCALE_FACTOR_100P },
80 { 2 * EXTENSION_ICON_ACTION, "38", ui::SCALE_FACTOR_200P } 85 { 2 * EXTENSION_ICON_ACTION, "38", ui::SCALE_FACTOR_200P }
81 }; 86 };
82 87
83 COMPILE_ASSERT(kNumExtensionActionIconSizes == 88 COMPILE_ASSERT(kNumExtensionActionIconSizes ==
84 arraysize(kExtensionActionIconSizes), 89 arraysize(kExtensionActionIconSizes),
85 num_action_icon_sizes_must_be_in_sync_with_action_icon_sizes); 90 num_action_icon_sizes_must_be_in_sync_with_action_icon_sizes);
86 91
87 } // namespace extension_misc 92 } // namespace extension_misc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698