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

Unified Diff: chrome/browser/ui/cocoa/drag_util.h

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, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/drag_util.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/drag_util.h
diff --git a/chrome/browser/ui/cocoa/drag_util.h b/chrome/browser/ui/cocoa/drag_util.h
index 90658ac66db19fcf896a259571fd8b5dab241c2b..2a3a721fd8886a69ea2ec1bdc9bc75988c5fd6bd 100644
--- a/chrome/browser/ui/cocoa/drag_util.h
+++ b/chrome/browser/ui/cocoa/drag_util.h
@@ -8,23 +8,11 @@
#import <Cocoa/Cocoa.h>
-#include "base/basictypes.h"
-#include "googleurl/src/gurl.h"
-
+class GURL;
class Profile;
namespace drag_util {
-// Populates the |url| and |title| with URL data in |pboard|. There may be more
-// than one, but we only handle dropping the first. |url| must not be |NULL|;
-// |title| is an optional parameter. Returns |YES| if URL data was obtained from
-// the pasteboard, |NO| otherwise. If |convert_filenames| is |YES|, the function
-// will also attempt to convert filenames in |pboard| to file URLs.
-BOOL PopulateURLAndTitleFromPasteBoard(GURL* url,
- string16* title,
- NSPasteboard* pboard,
- BOOL convert_filenames);
-
// Returns the first file URL from |info|, if there is one. If |info| doesn't
// contain any file URLs, an empty |GURL| is returned.
GURL GetFileURLFromDropData(id<NSDraggingInfo> info);
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/drag_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698