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

Unified Diff: ui/base/clipboard/clipboard_util_mac.h

Issue 1841813002: Update AutocompleteTextFieldEditor to use non-deprecated dragging APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments from avi. Created 4 years, 9 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 | « ui/base/clipboard/clipboard_mac.mm ('k') | ui/base/clipboard/clipboard_util_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/clipboard/clipboard_util_mac.h
diff --git a/ui/base/clipboard/clipboard_util_mac.h b/ui/base/clipboard/clipboard_util_mac.h
index 2bb6edaf36eb5b875ef239efb8fee16ab7182895..5d62cfa0f6484d30b47a1ba3539daba7c2645c90 100644
--- a/ui/base/clipboard/clipboard_util_mac.h
+++ b/ui/base/clipboard/clipboard_util_mac.h
@@ -34,6 +34,16 @@ class UI_BASE_EXPORT ClipboardUtil {
static base::scoped_nsobject<NSPasteboardItem> PasteboardItemFromUrl(
NSString* url,
NSString* title);
+
+ // Returns an NSPasteboardItem that represents the given string.
+ // |string| must not be nil.
+ static base::scoped_nsobject<NSPasteboardItem> PasteboardItemFromString(
+ NSString* string);
+
+ // Returns the title or url associated with a NSPasteboard which contains an
+ // url NSPasteboardItem.
+ static NSString* GetTitleFromPasteboardURL(NSPasteboard* pboard);
+ static NSString* GetURLFromPasteboardURL(NSPasteboard* pboard);
};
}
« no previous file with comments | « ui/base/clipboard/clipboard_mac.mm ('k') | ui/base/clipboard/clipboard_util_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698