OLD | NEW |
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 #import "chrome/browser/ui/cocoa/notifications/balloon_controller.h" | 10 #import "chrome/browser/ui/cocoa/notifications/balloon_controller.h" |
11 #import "third_party/GTM/AppKit/GTMNSBezierPath+RoundRect.h" | 11 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSBezierPath+RoundRect
.h" |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 const int kRoundedCornerSize = 6; | 15 const int kRoundedCornerSize = 6; |
16 | 16 |
17 } // namespace | 17 } // namespace |
18 | 18 |
19 @implementation BalloonWindow | 19 @implementation BalloonWindow |
20 - (id)initWithContentRect:(NSRect)contentRect | 20 - (id)initWithContentRect:(NSRect)contentRect |
21 styleMask:(NSUInteger)aStyle | 21 styleMask:(NSUInteger)aStyle |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 - (void)mouseDown:(NSEvent*)event { | 91 - (void)mouseDown:(NSEvent*)event { |
92 [NSApp preventWindowOrdering]; | 92 [NSApp preventWindowOrdering]; |
93 // Continue bubbling the event up the chain of responders. | 93 // Continue bubbling the event up the chain of responders. |
94 [super mouseDown:event]; | 94 [super mouseDown:event]; |
95 } | 95 } |
96 | 96 |
97 - (BOOL)acceptsFirstMouse:(NSEvent*)event { | 97 - (BOOL)acceptsFirstMouse:(NSEvent*)event { |
98 return YES; | 98 return YES; |
99 } | 99 } |
100 @end | 100 @end |
OLD | NEW |