| OLD | NEW |
| 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/url_drop_target.h" | 5 #import "chrome/browser/ui/cocoa/url_drop_target.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | |
| 8 #include "chrome/browser/ui/cocoa/drag_util.h" | 7 #include "chrome/browser/ui/cocoa/drag_util.h" |
| 9 #import "third_party/mozilla/NSPasteboard+Utils.h" | 8 #import "third_party/mozilla/NSPasteboard+Utils.h" |
| 10 #include "url/gurl.h" | 9 #include "url/gurl.h" |
| 11 | 10 |
| 12 namespace { | 11 namespace { |
| 13 | 12 |
| 14 // Mac WebKit uses this type, declared in | 13 // Mac WebKit uses this type, declared in |
| 15 // WebKit/mac/History/WebURLsWithTitles.h. | 14 // WebKit/mac/History/WebURLsWithTitles.h. |
| 16 NSString* const kCrWebURLsWithTitlesPboardType = | 15 NSString* const kCrWebURLsWithTitlesPboardType = |
| 17 @"WebURLsWithTitlesPboardType"; | 16 @"WebURLsWithTitlesPboardType"; |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 | 125 |
| 127 // Only allow the copy operation. | 126 // Only allow the copy operation. |
| 128 return [sender draggingSourceOperationMask] & NSDragOperationCopy; | 127 return [sender draggingSourceOperationMask] & NSDragOperationCopy; |
| 129 } | 128 } |
| 130 | 129 |
| 131 - (void)hideIndicator { | 130 - (void)hideIndicator { |
| 132 [[view_ urlDropController] hideDropURLsIndicatorInView:view_]; | 131 [[view_ urlDropController] hideDropURLsIndicatorInView:view_]; |
| 133 } | 132 } |
| 134 | 133 |
| 135 @end // @implementation URLDropTargetHandler(Private) | 134 @end // @implementation URLDropTargetHandler(Private) |
| OLD | NEW |