| OLD | NEW | 
|    1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |    1 // Copyright (c) 2010 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/cocoa/extensions/browser_actions_container_view.h" |    5 #import "chrome/browser/cocoa/extensions/browser_actions_container_view.h" | 
|    6  |    6  | 
|    7 #include <algorithm> |    7 #include <algorithm> | 
|    8  |    8  | 
|    9 #include "base/logging.h" |    9 #include "base/logging.h" | 
|   10 #import "base/scoped_nsobject.h" |   10 #import "base/scoped_nsobject.h" | 
|   11  |   11  | 
|   12 extern const NSString* kBrowserActionGrippyDragStartedNotification = |   12 NSString* const kBrowserActionGrippyDragStartedNotification = | 
|   13     @"BrowserActionGrippyDragStartedNotification"; |   13     @"BrowserActionGrippyDragStartedNotification"; | 
|   14 extern const NSString* kBrowserActionGrippyDraggingNotification = |   14 NSString* const kBrowserActionGrippyDraggingNotification = | 
|   15     @"BrowserActionGrippyDraggingNotification"; |   15     @"BrowserActionGrippyDraggingNotification"; | 
|   16 extern const NSString* kBrowserActionGrippyDragFinishedNotification = |   16 NSString* const kBrowserActionGrippyDragFinishedNotification = | 
|   17     @"BrowserActionGrippyDragFinishedNotification"; |   17     @"BrowserActionGrippyDragFinishedNotification"; | 
|   18  |   18  | 
|   19 namespace { |   19 namespace { | 
|   20 const CGFloat kAnimationDuration = 0.2; |   20 const CGFloat kAnimationDuration = 0.2; | 
|   21 const CGFloat kGrippyLowerPadding = 4.0; |   21 const CGFloat kGrippyLowerPadding = 4.0; | 
|   22 const CGFloat kGrippyUpperPadding = 8.0; |   22 const CGFloat kGrippyUpperPadding = 8.0; | 
|   23 const CGFloat kGrippyWidth = 10.0; |   23 const CGFloat kGrippyWidth = 10.0; | 
|   24 const CGFloat kLowerPadding = 5.0; |   24 const CGFloat kLowerPadding = 5.0; | 
|   25 const CGFloat kMinimumContainerWidth = 10.0; |   25 const CGFloat kMinimumContainerWidth = 10.0; | 
|   26 const CGFloat kRightBorderXOffset = -1.0; |   26 const CGFloat kRightBorderXOffset = -1.0; | 
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  230   [[NSColor colorWithCalibratedWhite:0.7 alpha:0.5] set]; |  230   [[NSColor colorWithCalibratedWhite:0.7 alpha:0.5] set]; | 
|  231   grippyRect.origin.x += 1.0; |  231   grippyRect.origin.x += 1.0; | 
|  232   NSRectFill(grippyRect); |  232   NSRectFill(grippyRect); | 
|  233  |  233  | 
|  234   [[NSColor colorWithCalibratedWhite:1.0 alpha:1.0] set]; |  234   [[NSColor colorWithCalibratedWhite:1.0 alpha:1.0] set]; | 
|  235   grippyRect.origin.x += 1.0; |  235   grippyRect.origin.x += 1.0; | 
|  236   NSRectFill(grippyRect); |  236   NSRectFill(grippyRect); | 
|  237 } |  237 } | 
|  238  |  238  | 
|  239 @end |  239 @end | 
| OLD | NEW |