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

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

Issue 522763002: Moving capture_web_contents_function to extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Documenting the inheritance of CaptureWebContentsFunction 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') | extensions/extensions.gyp » ('j') | 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 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 const char kLocalAppSettingsDirectoryName[] = "Local App Settings"; 48 const char kLocalAppSettingsDirectoryName[] = "Local App Settings";
49 const char kLocalExtensionSettingsDirectoryName[] = "Local Extension Settings"; 49 const char kLocalExtensionSettingsDirectoryName[] = "Local Extension Settings";
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";
58 const char kMimeTypePng[] = "image/png";
59
57 } // namespace extensions 60 } // namespace extensions
58 61
59 namespace extension_misc { 62 namespace extension_misc {
60 63
61 const int kExtensionIconSizes[] = {EXTENSION_ICON_GIGANTOR, // 512 64 const int kExtensionIconSizes[] = {EXTENSION_ICON_GIGANTOR, // 512
62 EXTENSION_ICON_EXTRA_LARGE, // 256 65 EXTENSION_ICON_EXTRA_LARGE, // 256
63 EXTENSION_ICON_LARGE, // 128 66 EXTENSION_ICON_LARGE, // 128
64 EXTENSION_ICON_MEDIUM, // 48 67 EXTENSION_ICON_MEDIUM, // 48
65 EXTENSION_ICON_SMALL, // 32 68 EXTENSION_ICON_SMALL, // 32
66 EXTENSION_ICON_SMALLISH, // 24 69 EXTENSION_ICON_SMALLISH, // 24
67 EXTENSION_ICON_BITTY, // 16 70 EXTENSION_ICON_BITTY, // 16
68 // Additional 2x resources to load. 71 // Additional 2x resources to load.
69 2 * EXTENSION_ICON_MEDIUM, // 96 72 2 * EXTENSION_ICON_MEDIUM, // 96
70 2 * EXTENSION_ICON_SMALL // 64 73 2 * EXTENSION_ICON_SMALL // 64
71 }; 74 };
72 75
73 const size_t kNumExtensionIconSizes = arraysize(kExtensionIconSizes); 76 const size_t kNumExtensionIconSizes = arraysize(kExtensionIconSizes);
74 77
75 const IconRepresentationInfo kExtensionActionIconSizes[] = { 78 const IconRepresentationInfo kExtensionActionIconSizes[] = {
76 { EXTENSION_ICON_ACTION, "19", ui::SCALE_FACTOR_100P }, 79 { EXTENSION_ICON_ACTION, "19", ui::SCALE_FACTOR_100P },
77 { 2 * EXTENSION_ICON_ACTION, "38", ui::SCALE_FACTOR_200P } 80 { 2 * EXTENSION_ICON_ACTION, "38", ui::SCALE_FACTOR_200P }
78 }; 81 };
79 82
80 COMPILE_ASSERT(kNumExtensionActionIconSizes == 83 COMPILE_ASSERT(kNumExtensionActionIconSizes ==
81 arraysize(kExtensionActionIconSizes), 84 arraysize(kExtensionActionIconSizes),
82 num_action_icon_sizes_must_be_in_sync_with_action_icon_sizes); 85 num_action_icon_sizes_must_be_in_sync_with_action_icon_sizes);
83 86
84 } // namespace extension_misc 87 } // namespace extension_misc
OLDNEW
« no previous file with comments | « extensions/common/constants.h ('k') | extensions/extensions.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698