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

Side by Side Diff: chrome/browser/ui/cocoa/url_drop_target.mm

Issue 8418033: Push one function from the Mac drag/drop util code to ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
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
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)
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/tab_contents/web_drop_target_unittest.mm ('k') | ui/base/dragdrop/cocoa_dnd_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698