summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/extension.cc
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-17 01:03:26 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-17 01:03:26 +0000
commit4c4f8199de84c55ae267506eacfd744e8f3e69f7 (patch)
treeae469a5a8c542d3c0af754953d0178be168a9385 /chrome/common/extensions/extension.cc
parentb4efc650ae68817ff33bd4efab83ffb23d706113 (diff)
downloadchromium_src-4c4f8199de84c55ae267506eacfd744e8f3e69f7.zip
chromium_src-4c4f8199de84c55ae267506eacfd744e8f3e69f7.tar.gz
chromium_src-4c4f8199de84c55ae267506eacfd744e8f3e69f7.tar.bz2
Allow slightly larger browser and page action icons.
This allows 19px icons to be able to be used for both browser and page icons. I think it looks nicer with the page actions slightly smaller, and that is what we also usually do in Chrome, but some Chrome location bar icons use 18px for soft edges, so I guess this will just have to be something we advise developers on. We can actually fit up to 21 (whoa nelly) pixels on Windows, but apparently the space is slightly smaller on mac. Also minor layout fix. We were sizing the browser action buttons 1px too short. BUG=24881 TEST=Load chrome/test/data/extensions/samples/icon_size_test. Icons should be 17px for the page action and 19px for the browser action and centered nicely in the space. Review URL: http://codereview.chromium.org/286001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29365 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/extension.cc')
-rw-r--r--chrome/common/extensions/extension.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/common/extensions/extension.cc b/chrome/common/extensions/extension.cc
index fee0e89..4ead417 100644
--- a/chrome/common/extensions/extension.cc
+++ b/chrome/common/extensions/extension.cc
@@ -96,6 +96,9 @@ const int Extension::kIconSizes[] = {
EXTENSION_ICON_BITTY
};
+const int Extension::kPageActionIconMaxSize = 19;
+const int Extension::kBrowserActionIconMaxSize = 19;
+
const char* Extension::kPermissionNames[] = {
"tabs",
"bookmarks",