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

Side by Side Diff: chrome/browser/ui/cocoa/info_bubble_window.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #import "chrome/browser/ui/cocoa/info_bubble_window.h" 5 #import "chrome/browser/ui/cocoa/info_bubble_window.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/mac/scoped_nsobject.h" 9 #include "base/mac/scoped_nsobject.h"
10 #include "chrome/browser/chrome_notification_types.h" 10 #include "chrome/browser/chrome_notification_types.h"
11 #include "content/public/browser/notification_observer.h" 11 #include "content/public/browser/notification_observer.h"
12 #include "content/public/browser/notification_registrar.h" 12 #include "content/public/browser/notification_registrar.h"
13 #include "content/public/browser/notification_service.h" 13 #include "content/public/browser/notification_service.h"
14 #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h" 14 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSAnimation+Duration.h "
15 15
16 namespace { 16 namespace {
17 const CGFloat kOrderInSlideOffset = 10; 17 const CGFloat kOrderInSlideOffset = 10;
18 const NSTimeInterval kOrderInAnimationDuration = 0.075; 18 const NSTimeInterval kOrderInAnimationDuration = 0.075;
19 const NSTimeInterval kOrderOutAnimationDuration = 0.15; 19 const NSTimeInterval kOrderOutAnimationDuration = 0.15;
20 // The minimum representable time interval. This can be used as the value 20 // The minimum representable time interval. This can be used as the value
21 // passed to +[NSAnimationContext setDuration:] to stop an in-progress 21 // passed to +[NSAnimationContext setDuration:] to stop an in-progress
22 // animation as quickly as possible. 22 // animation as quickly as possible.
23 const NSTimeInterval kMinimumTimeInterval = 23 const NSTimeInterval kMinimumTimeInterval =
24 std::numeric_limits<NSTimeInterval>::min(); 24 std::numeric_limits<NSTimeInterval>::min();
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 - (void)sendEvent:(NSEvent*)theEvent { 226 - (void)sendEvent:(NSEvent*)theEvent {
227 if (!closing_) 227 if (!closing_)
228 [super sendEvent:theEvent]; 228 [super sendEvent:theEvent];
229 } 229 }
230 230
231 - (BOOL)isClosing { 231 - (BOOL)isClosing {
232 return closing_; 232 return closing_;
233 } 233 }
234 234
235 @end 235 @end
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/info_bubble_view.mm ('k') | chrome/browser/ui/cocoa/infobars/confirm_infobar_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698