diff options
author | andybons@chromium.org <andybons@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-12 18:53:09 +0000 |
---|---|---|
committer | andybons@chromium.org <andybons@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-12 18:53:09 +0000 |
commit | 5a2fb0052ba3649072a6a943474032e0f750c136 (patch) | |
tree | c517c33debaba26acb1ef1fc1e839dafa9a2f316 /chrome/common/extensions/extension_action.cc | |
parent | 8761dfd26bce81b5e438cbee1f020755cabaef7c (diff) | |
download | chromium_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-x | chrome/common/extensions/extension_action.cc | 14 |
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 |