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/url_drop_target.h" | 5 #import "chrome/browser/ui/cocoa/url_drop_target.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "chrome/browser/ui/cocoa/drag_util.h" | 8 #include "chrome/browser/ui/cocoa/drag_util.h" |
| 9 #include "googleurl/src/gurl.h" |
9 #import "third_party/mozilla/NSPasteboard+Utils.h" | 10 #import "third_party/mozilla/NSPasteboard+Utils.h" |
10 | 11 |
11 @interface URLDropTargetHandler(Private) | 12 @interface URLDropTargetHandler(Private) |
12 | 13 |
13 // Gets the appropriate drag operation given the |NSDraggingInfo|. | 14 // Gets the appropriate drag operation given the |NSDraggingInfo|. |
14 - (NSDragOperation)getDragOperation:(id<NSDraggingInfo>)sender; | 15 - (NSDragOperation)getDragOperation:(id<NSDraggingInfo>)sender; |
15 | 16 |
16 // Tell the window controller to hide the drop indicator. | 17 // Tell the window controller to hide the drop indicator. |
17 - (void)hideIndicator; | 18 - (void)hideIndicator; |
18 | 19 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 | 117 |
117 // Only allow the copy operation. | 118 // Only allow the copy operation. |
118 return [sender draggingSourceOperationMask] & NSDragOperationCopy; | 119 return [sender draggingSourceOperationMask] & NSDragOperationCopy; |
119 } | 120 } |
120 | 121 |
121 - (void)hideIndicator { | 122 - (void)hideIndicator { |
122 [[view_ urlDropController] hideDropURLsIndicatorInView:view_]; | 123 [[view_ urlDropController] hideDropURLsIndicatorInView:view_]; |
123 } | 124 } |
124 | 125 |
125 @end // @implementation URLDropTargetHandler(Private) | 126 @end // @implementation URLDropTargetHandler(Private) |
OLD | NEW |