diff options
author | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-24 18:49:39 +0000 |
---|---|---|
committer | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-24 18:49:39 +0000 |
commit | f1f68ed43d89bfedf1de4abebde27651b5ce0226 (patch) | |
tree | 16364397b3daebaf7f0b1c8dfb14f75796289725 /chrome/browser/cocoa/extension_installed_bubble_controller.mm | |
parent | 7bb4bccc5b723dfcd5153c2d96bd2a58129fc244 (diff) | |
download | chromium_src-f1f68ed43d89bfedf1de4abebde27651b5ce0226.zip chromium_src-f1f68ed43d89bfedf1de4abebde27651b5ce0226.tar.gz chromium_src-f1f68ed43d89bfedf1de4abebde27651b5ce0226.tar.bz2 |
Mac cleanup: Put consts and enums in info_bubble_view.h in a namespace.
BUG=none
TEST=everything still builds
Review URL: http://codereview.chromium.org/1787001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45541 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/extension_installed_bubble_controller.mm')
-rw-r--r-- | chrome/browser/cocoa/extension_installed_bubble_controller.mm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/cocoa/extension_installed_bubble_controller.mm b/chrome/browser/cocoa/extension_installed_bubble_controller.mm index 3cfba62..805f3b5 100644 --- a/chrome/browser/cocoa/extension_installed_bubble_controller.mm +++ b/chrome/browser/cocoa/extension_installed_bubble_controller.mm @@ -234,8 +234,8 @@ class ExtensionLoadedNotificationObserver : public NotificationObserver { // Find window origin, taking into account bubble size and arrow location. NSPoint origin = [parentWindow_ convertBaseToScreen:[self calculateArrowPoint]]; - NSSize offsets = NSMakeSize(kBubbleArrowXOffset + kBubbleArrowWidth / 2.0, - 0); + NSSize offsets = NSMakeSize(info_bubble::kBubbleArrowXOffset + + info_bubble::kBubbleArrowWidth / 2.0, 0); offsets = [[window contentView] convertSize:offsets toView:nil]; origin.x -= NSWidth([window frame]) - offsets.width; origin.y -= NSHeight([window frame]); @@ -250,7 +250,7 @@ class ExtensionLoadedNotificationObserver : public NotificationObserver { // function is exposed for unit testing. - (NSWindow*)initializeWindow { NSWindow* window = [self window]; // completes nib load - [infoBubbleView_ setArrowLocation:kTopRight]; + [infoBubbleView_ setArrowLocation:info_bubble::kTopRight]; // Set appropriate icon, resizing if necessary. if ([icon_ size].width > extension_installed_bubble::kIconSize) { |