summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-04 04:27:19 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-04 04:27:19 +0000
commitf024f7900b966402d73c9516a9b7e6fe7e98684c (patch)
treefae561da12e5cbab2df4412c35bd6b75a0a18a06 /chrome/browser/cocoa
parent30cb7a44b47b8ec5ef9607ef65dcd6aead29bbe9 (diff)
downloadchromium_src-f024f7900b966402d73c9516a9b7e6fe7e98684c.zip
chromium_src-f024f7900b966402d73c9516a9b7e6fe7e98684c.tar.gz
chromium_src-f024f7900b966402d73c9516a9b7e6fe7e98684c.tar.bz2
Mac: Some clang appeasing.
BUG=TEST=none Review URL: http://codereview.chromium.org/3089004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54870 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa')
-rw-r--r--chrome/browser/cocoa/bookmark_bar_controller.h2
-rw-r--r--chrome/browser/cocoa/bookmark_bubble_controller.mm1
-rw-r--r--chrome/browser/cocoa/bookmark_button.h6
-rw-r--r--chrome/browser/cocoa/bookmark_button.mm6
-rw-r--r--chrome/browser/cocoa/fullscreen_controller.h4
-rw-r--r--chrome/browser/cocoa/fullscreen_controller.mm4
-rw-r--r--chrome/browser/cocoa/location_bar/ev_bubble_decoration.mm2
-rw-r--r--chrome/browser/cocoa/popup_blocked_animation_mac.mm1
8 files changed, 13 insertions, 13 deletions
diff --git a/chrome/browser/cocoa/bookmark_bar_controller.h b/chrome/browser/cocoa/bookmark_bar_controller.h
index ae40517..587cac8 100644
--- a/chrome/browser/cocoa/bookmark_bar_controller.h
+++ b/chrome/browser/cocoa/bookmark_bar_controller.h
@@ -200,7 +200,7 @@ willAnimateFromState:(bookmarks::VisualState)oldState
NSRect originalImportBookmarksRect_; // Original, pre-resized field rect.
// "Other bookmarks" button on the right side.
- scoped_nsobject<NSButton> otherBookmarksButton_;
+ scoped_nsobject<BookmarkButton> otherBookmarksButton_;
// We have a special menu for folder buttons. This starts as a copy
// of the bar menu.
diff --git a/chrome/browser/cocoa/bookmark_bubble_controller.mm b/chrome/browser/cocoa/bookmark_bubble_controller.mm
index 0884d75..641c37e 100644
--- a/chrome/browser/cocoa/bookmark_bubble_controller.mm
+++ b/chrome/browser/cocoa/bookmark_bubble_controller.mm
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#import "chrome/browser/cocoa/bookmark_bubble_controller.h"
+
#include "app/l10n_util_mac.h"
#include "base/mac_util.h"
#include "base/sys_string_conversions.h"
diff --git a/chrome/browser/cocoa/bookmark_button.h b/chrome/browser/cocoa/bookmark_button.h
index 60dd2a6..3459809 100644
--- a/chrome/browser/cocoa/bookmark_button.h
+++ b/chrome/browser/cocoa/bookmark_button.h
@@ -215,14 +215,14 @@ class ThemeProvider;
namespace bookmark_button {
// Notifications for pulsing of bookmarks.
-extern const NSString* kPulseBookmarkButtonNotification;
+extern NSString* const kPulseBookmarkButtonNotification;
// Key for userInfo dict of a kPulseBookmarkButtonNotification.
// Value is a [NSValue valueWithPointer:]; pointer is a (const BookmarkNode*).
-extern const NSString* kBookmarkKey;
+extern NSString* const kBookmarkKey;
// Key for userInfo dict of a kPulseBookmarkButtonNotification.
// Value is a [NSNumber numberWithBool:] to turn pulsing on or off.
-extern const NSString* kBookmarkPulseFlagKey;
+extern NSString* const kBookmarkPulseFlagKey;
};
diff --git a/chrome/browser/cocoa/bookmark_button.mm b/chrome/browser/cocoa/bookmark_button.mm
index f823405..b5f9b86 100644
--- a/chrome/browser/cocoa/bookmark_button.mm
+++ b/chrome/browser/cocoa/bookmark_button.mm
@@ -16,10 +16,10 @@ static const CGFloat kDragImageOpacity = 0.7;
namespace bookmark_button {
-const NSString* kPulseBookmarkButtonNotification =
+NSString* const kPulseBookmarkButtonNotification =
@"PulseBookmarkButtonNotification";
-const NSString* kBookmarkKey = @"BookmarkKey";
-const NSString* kBookmarkPulseFlagKey = @"BookmarkPulseFlagKey";
+NSString* const kBookmarkKey = @"BookmarkKey";
+NSString* const kBookmarkPulseFlagKey = @"BookmarkPulseFlagKey";
};
diff --git a/chrome/browser/cocoa/fullscreen_controller.h b/chrome/browser/cocoa/fullscreen_controller.h
index 1e90a62..f213fa3 100644
--- a/chrome/browser/cocoa/fullscreen_controller.h
+++ b/chrome/browser/cocoa/fullscreen_controller.h
@@ -116,7 +116,7 @@
@end
// Notification posted when we're about to enter or leave fullscreen.
-extern const NSString* kWillEnterFullscreenNotification;
-extern const NSString* kWillLeaveFullscreenNotification;
+extern NSString* const kWillEnterFullscreenNotification;
+extern NSString* const kWillLeaveFullscreenNotification;
#endif // CHROME_BROWSER_COCOA_FULLSCREEN_CONTROLLER_H_
diff --git a/chrome/browser/cocoa/fullscreen_controller.mm b/chrome/browser/cocoa/fullscreen_controller.mm
index f5d66bf..452b996 100644
--- a/chrome/browser/cocoa/fullscreen_controller.mm
+++ b/chrome/browser/cocoa/fullscreen_controller.mm
@@ -9,9 +9,9 @@
#import "chrome/browser/cocoa/browser_window_controller.h"
#import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h"
-const NSString* kWillEnterFullscreenNotification =
+NSString* const kWillEnterFullscreenNotification =
@"WillEnterFullscreenNotification";
-const NSString* kWillLeaveFullscreenNotification =
+NSString* const kWillLeaveFullscreenNotification =
@"WillLeaveFullscreenNotification";
namespace {
diff --git a/chrome/browser/cocoa/location_bar/ev_bubble_decoration.mm b/chrome/browser/cocoa/location_bar/ev_bubble_decoration.mm
index 990c4b9..434009a 100644
--- a/chrome/browser/cocoa/location_bar/ev_bubble_decoration.mm
+++ b/chrome/browser/cocoa/location_bar/ev_bubble_decoration.mm
@@ -31,7 +31,7 @@ const float kMaxBubbleFraction = 0.5;
// TODO(shess): This is ugly, find a better way. Using it right now
// so that I can crib from gtk and still be able to see that I'm using
// the same values easily.
-const NSColor* ColorWithRGBBytes(int rr, int gg, int bb) {
+NSColor* ColorWithRGBBytes(int rr, int gg, int bb) {
DCHECK_LE(rr, 255);
DCHECK_LE(bb, 255);
DCHECK_LE(gg, 255);
diff --git a/chrome/browser/cocoa/popup_blocked_animation_mac.mm b/chrome/browser/cocoa/popup_blocked_animation_mac.mm
index d0f5644..44a765b 100644
--- a/chrome/browser/cocoa/popup_blocked_animation_mac.mm
+++ b/chrome/browser/cocoa/popup_blocked_animation_mac.mm
@@ -108,7 +108,6 @@ class PopupBlockedAnimationObserver : public NotificationObserver {
[parentWindow addChildWindow:animation_ ordered:NSWindowAbove];
// Start the animation from the center of the window.
- NSRect contentFrame = [[animation_ contentView] frame];
[animation_ setStartFrame:CGRectMake(0,
imageHeight / 2,
imageWidth,