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

Side by Side Diff: ui/base/dragdrop/cocoa_dnd_util.h

Issue 17951002: ui/base/dragdrop: Use base::string16 now that string16 was moved into base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | ui/base/dragdrop/cocoa_dnd_util.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef UI_BASE_DRAGDROP_MAC_DND_UTIL_H_ 5 #ifndef UI_BASE_DRAGDROP_MAC_DND_UTIL_H_
6 #define UI_BASE_DRAGDROP_MAC_DND_UTIL_H_ 6 #define UI_BASE_DRAGDROP_MAC_DND_UTIL_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 17 matching lines...) Expand all
28 // put it on as this Chrome-only flavor. External apps won't see HTML but 28 // put it on as this Chrome-only flavor. External apps won't see HTML but
29 // Chrome will know enough to read it as HTML. <http://crbug.com/55879> 29 // Chrome will know enough to read it as HTML. <http://crbug.com/55879>
30 UI_EXPORT extern NSString* const kChromeDragImageHTMLPboardType; 30 UI_EXPORT extern NSString* const kChromeDragImageHTMLPboardType;
31 31
32 // Populates the |url| and |title| with URL data in |pboard|. There may be more 32 // Populates the |url| and |title| with URL data in |pboard|. There may be more
33 // than one, but we only handle dropping the first. |url| must not be |NULL|; 33 // than one, but we only handle dropping the first. |url| must not be |NULL|;
34 // |title| is an optional parameter. Returns |YES| if URL data was obtained from 34 // |title| is an optional parameter. Returns |YES| if URL data was obtained from
35 // the pasteboard, |NO| otherwise. If |convert_filenames| is |YES|, the function 35 // the pasteboard, |NO| otherwise. If |convert_filenames| is |YES|, the function
36 // will also attempt to convert filenames in |pboard| to file URLs. 36 // will also attempt to convert filenames in |pboard| to file URLs.
37 UI_EXPORT BOOL PopulateURLAndTitleFromPasteboard(GURL* url, 37 UI_EXPORT BOOL PopulateURLAndTitleFromPasteboard(GURL* url,
38 string16* title, 38 base::string16* title,
39 NSPasteboard* pboard, 39 NSPasteboard* pboard,
40 BOOL convert_filenames); 40 BOOL convert_filenames);
41 41
42 } // namespace ui 42 } // namespace ui
43 43
44 #endif // UI_BASE_DRAGDROP_MAC_DND_UTIL_H_ 44 #endif // UI_BASE_DRAGDROP_MAC_DND_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | ui/base/dragdrop/cocoa_dnd_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698