summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/extension_installed_bubble_controller.mm
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-24 18:49:39 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-24 18:49:39 +0000
commitf1f68ed43d89bfedf1de4abebde27651b5ce0226 (patch)
tree16364397b3daebaf7f0b1c8dfb14f75796289725 /chrome/browser/cocoa/extension_installed_bubble_controller.mm
parent7bb4bccc5b723dfcd5153c2d96bd2a58129fc244 (diff)
downloadchromium_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.mm6
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) {