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

Unified Diff: chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.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 | « no previous file | chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h
diff --git a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h
index 9c302858d9a97000fee92170850bad3e401e560a..b7a4d84bfbd9e1b738b1389ee6993e84b54e97fb 100644
--- a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h
+++ b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h
@@ -45,8 +45,11 @@ class AutocompleteTextFieldObserver {
// Return |true| if there is a selection to copy.
virtual bool CanCopy() = 0;
- // Clears the |pboard| and adds the field's current selection.
- // Called when the user does a copy or drag.
+ // Creates a pasteboard item from the field's current selection.
+ virtual base::scoped_nsobject<NSPasteboardItem> CreatePasteboardItem() = 0;
+
+ // Copies the pasteboard item returned from |CreatePasteboardItem()| to
+ // |pboard|.
virtual void CopyToPasteboard(NSPasteboard* pboard) = 0;
// Returns true if the Show URL option should be available.
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698