summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/extension_action.cc
diff options
context:
space:
mode:
authorandybons@chromium.org <andybons@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-12 18:53:09 +0000
committerandybons@chromium.org <andybons@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-12 18:53:09 +0000
commit5a2fb0052ba3649072a6a943474032e0f750c136 (patch)
treec517c33debaba26acb1ef1fc1e839dafa9a2f316 /chrome/common/extensions/extension_action.cc
parent8761dfd26bce81b5e438cbee1f020755cabaef7c (diff)
downloadchromium_src-5a2fb0052ba3649072a6a943474032e0f750c136.zip
chromium_src-5a2fb0052ba3649072a6a943474032e0f750c136.tar.gz
chromium_src-5a2fb0052ba3649072a6a943474032e0f750c136.tar.bz2
Initial change for the implementation of browser actions on the mac.
Popups are not implemented within this change. BUG=23881 TEST=Install a browser action extension on the mac. Observe that something actually happens in the UI. Review URL: http://codereview.chromium.org/366029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31803 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/extension_action.cc')
-rwxr-xr-xchrome/common/extensions/extension_action.cc14
1 files changed, 8 insertions, 6 deletions
diff --git a/chrome/common/extensions/extension_action.cc b/chrome/common/extensions/extension_action.cc
index 13d6186..088e24c 100755
--- a/chrome/common/extensions/extension_action.cc
+++ b/chrome/common/extensions/extension_action.cc
@@ -23,24 +23,26 @@ const int kTextSize = 9;
const int kBottomMargin = 0;
const int kPadding = 2;
const int kTopTextPadding = 0;
-const int kBadgeHeight = 11;
-const int kMaxTextWidth = 23;
-// The minimum width for center-aligning the badge.
-const int kCenterAlignThreshold = 20;
+#elif defined(OS_MACOSX)
+const int kTextSize = 9;
+const int kBottomMargin = 5;
+const int kPadding = 2;
+const int kTopTextPadding = 0;
#else
const int kTextSize = 8;
const int kBottomMargin = 5;
const int kPadding = 2;
// The padding between the top of the badge and the top of the text.
const int kTopTextPadding = 1;
+#endif
+
const int kBadgeHeight = 11;
const int kMaxTextWidth = 23;
// The minimum width for center-aligning the badge.
const int kCenterAlignThreshold = 20;
-#endif
#if defined(OS_MACOSX)
-const char kPreferredTypeface[] = "Helvetica";
+const char kPreferredTypeface[] = "Helvetica Bold";
#else
const char kPreferredTypeface[] = "Arial";
#endif