Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Side by Side Diff: ui/views/cocoa/drag_drop_client_mac_unittest.mm

Issue 2307633002: [MacViews] Fix Drag and Drop bugs (Closed)
Patch Set: Fixed test Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/views/cocoa/drag_drop_client_mac.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/views/cocoa/drag_drop_client_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698