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

Unified Diff: chrome/browser/cocoa/location_bar_view_mac.h

Issue 1567023: [Mac] Location icon in omnibox as drag source. (Closed)
Patch Set: more nits Created 10 years, 8 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
Index: chrome/browser/cocoa/location_bar_view_mac.h
diff --git a/chrome/browser/cocoa/location_bar_view_mac.h b/chrome/browser/cocoa/location_bar_view_mac.h
index cebab92d5a759b1d0bec589f9c919e6c467129b4..7eee82187694f2084ac58fec4c703dc157d54645 100644
--- a/chrome/browser/cocoa/location_bar_view_mac.h
+++ b/chrome/browser/cocoa/location_bar_view_mac.h
@@ -167,6 +167,12 @@ class LocationBarViewMac : public AutocompleteEditController,
// Returns the tooltip for this image view or |nil| if there is none.
virtual const NSString* GetToolTip() { return nil; }
+ // Used to determinate if the item can act as a drag source.
+ virtual bool IsDraggable() { return false; }
+
+ // The drag pasteboard to use if a drag is initiated.
+ virtual NSPasteboard* GetDragPasteboard() { return nil; }
+
// Called on mouse down.
virtual void OnMousePressed(NSRect bounds) {}
@@ -190,6 +196,12 @@ class LocationBarViewMac : public AutocompleteEditController,
explicit LocationIconView(LocationBarViewMac* owner);
virtual ~LocationIconView();
+ // Is draggable if the autocomplete edit view has not be changed.
+ virtual bool IsDraggable();
+
+ // Drag the URL and title from the current tab.
+ virtual NSPasteboard* GetDragPasteboard();
+
// Shows the page info dialog.
virtual void OnMousePressed(NSRect bounds);

Powered by Google App Engine
This is Rietveld 408576698