Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Side by Side Diff: chrome/browser/ui/cocoa/notifications/balloon_view.mm

Issue 17593006: mac: Update clients of scoped_nsobject.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: iwyu, scoped_nsprotocol Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/cocoa/notifications/balloon_view.h" 5 #include "chrome/browser/ui/cocoa/notifications/balloon_view.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
11 #import "chrome/browser/ui/cocoa/notifications/balloon_controller.h" 11 #import "chrome/browser/ui/cocoa/notifications/balloon_controller.h"
12 #import "third_party/GTM/AppKit/GTMNSBezierPath+RoundRect.h" 12 #import "third_party/GTM/AppKit/GTMNSBezierPath+RoundRect.h"
13 13
14 namespace { 14 namespace {
15 15
16 const int kRoundedCornerSize = 6; 16 const int kRoundedCornerSize = 6;
17 17
18 } // namespace 18 } // namespace
19 19
20 @implementation BalloonWindow 20 @implementation BalloonWindow
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 - (void)mouseDown:(NSEvent*)event { 92 - (void)mouseDown:(NSEvent*)event {
93 [NSApp preventWindowOrdering]; 93 [NSApp preventWindowOrdering];
94 // Continue bubbling the event up the chain of responders. 94 // Continue bubbling the event up the chain of responders.
95 [super mouseDown:event]; 95 [super mouseDown:event];
96 } 96 }
97 97
98 - (BOOL)acceptsFirstMouse:(NSEvent*)event { 98 - (BOOL)acceptsFirstMouse:(NSEvent*)event {
99 return YES; 99 return YES;
100 } 100 }
101 @end 101 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698