| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "ui/views/cocoa/drag_drop_client_mac.h" | 5 #import "ui/views/cocoa/drag_drop_client_mac.h" |
| 6 | 6 |
| 7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 8 | 8 |
| 9 #include "base/mac/sdk_forward_declarations.h" | 9 #include "base/mac/sdk_forward_declarations.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 - (NSInteger)draggingSequenceNumber { | 55 - (NSInteger)draggingSequenceNumber { |
| 56 return 0; | 56 return 0; |
| 57 } | 57 } |
| 58 | 58 |
| 59 - (id)draggingSource { | 59 - (id)draggingSource { |
| 60 return nil; | 60 return nil; |
| 61 } | 61 } |
| 62 | 62 |
| 63 - (NSDragOperation)draggingSourceOperationMask { | 63 - (NSDragOperation)draggingSourceOperationMask { |
| 64 return NSDragOperationNone; | 64 return NSDragOperationEvery; |
| 65 } | 65 } |
| 66 | 66 |
| 67 - (NSWindow*)draggingDestinationWindow { | 67 - (NSWindow*)draggingDestinationWindow { |
| 68 return nil; | 68 return nil; |
| 69 } | 69 } |
| 70 | 70 |
| 71 - (NSArray*)namesOfPromisedFilesDroppedAtDestination:(NSURL*)dropDestination { | 71 - (NSArray*)namesOfPromisedFilesDroppedAtDestination:(NSURL*)dropDestination { |
| 72 return nil; | 72 return nil; |
| 73 } | 73 } |
| 74 | 74 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 | 239 |
| 240 // Add valid data to the pasteboard and check to see if the target accepts | 240 // Add valid data to the pasteboard and check to see if the target accepts |
| 241 // it. | 241 // it. |
| 242 [pasteboard setString:@"text" forType:NSPasteboardTypeString]; | 242 [pasteboard setString:@"text" forType:NSPasteboardTypeString]; |
| 243 EXPECT_EQ(DragUpdate(pasteboard), NSDragOperationCopy); | 243 EXPECT_EQ(DragUpdate(pasteboard), NSDragOperationCopy); |
| 244 EXPECT_EQ(Drop(), NSDragOperationMove); | 244 EXPECT_EQ(Drop(), NSDragOperationMove); |
| 245 } | 245 } |
| 246 | 246 |
| 247 } // namespace test | 247 } // namespace test |
| 248 } // namespace views | 248 } // namespace views |
| OLD | NEW |