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 #import "chrome/browser/ui/cocoa/extensions/browser_actions_container_view.h" | 5 #import "chrome/browser/ui/cocoa/extensions/browser_actions_container_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #import "base/memory/scoped_nsobject.h" | 10 #import "base/mac/scoped_nsobject.h" |
11 #import "chrome/browser/ui/cocoa/view_id_util.h" | 11 #import "chrome/browser/ui/cocoa/view_id_util.h" |
12 | 12 |
13 NSString* const kBrowserActionGrippyDragStartedNotification = | 13 NSString* const kBrowserActionGrippyDragStartedNotification = |
14 @"BrowserActionGrippyDragStartedNotification"; | 14 @"BrowserActionGrippyDragStartedNotification"; |
15 NSString* const kBrowserActionGrippyDraggingNotification = | 15 NSString* const kBrowserActionGrippyDraggingNotification = |
16 @"BrowserActionGrippyDraggingNotification"; | 16 @"BrowserActionGrippyDraggingNotification"; |
17 NSString* const kBrowserActionGrippyDragFinishedNotification = | 17 NSString* const kBrowserActionGrippyDragFinishedNotification = |
18 @"BrowserActionGrippyDragFinishedNotification"; | 18 @"BrowserActionGrippyDragFinishedNotification"; |
19 | 19 |
20 namespace { | 20 namespace { |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 retVal = [NSCursor resizeRightCursor]; | 183 retVal = [NSCursor resizeRightCursor]; |
184 } else if (!canDragRight_) { | 184 } else if (!canDragRight_) { |
185 retVal = [NSCursor resizeLeftCursor]; | 185 retVal = [NSCursor resizeLeftCursor]; |
186 } else { | 186 } else { |
187 retVal = [NSCursor resizeLeftRightCursor]; | 187 retVal = [NSCursor resizeLeftRightCursor]; |
188 } | 188 } |
189 return retVal; | 189 return retVal; |
190 } | 190 } |
191 | 191 |
192 @end | 192 @end |
OLD | NEW |