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

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

Issue 107933006: Get rid of ui_cocoa_third_party_toolkits target from ui.gyp (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mark review Created 7 years 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 #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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698