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

Unified Diff: chrome/browser/cocoa/location_bar/location_icon_decoration.h

Issue 2870059: [Mac] Adjust omnibox decoration dragging to keep image under mouse. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: Move method per Trung. Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/cocoa/location_bar/location_bar_decoration.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/location_bar/location_icon_decoration.h
diff --git a/chrome/browser/cocoa/location_bar/location_icon_decoration.h b/chrome/browser/cocoa/location_bar/location_icon_decoration.h
index 9d705a8f74458ef6c620b576b4fa14cc5e6ffe65..ec1426401e42b946b1b41b48d14aef1c90b0c5e0 100644
--- a/chrome/browser/cocoa/location_bar/location_icon_decoration.h
+++ b/chrome/browser/cocoa/location_bar/location_icon_decoration.h
@@ -23,6 +23,9 @@ class LocationIconDecoration : public ImageDecoration {
virtual bool IsDraggable();
virtual NSPasteboard* GetDragPasteboard();
virtual NSImage* GetDragImage() { return GetImage(); }
+ virtual NSRect GetDragImageFrame(NSRect frame) {
+ return GetDrawRectInFrame(frame);
+ }
// Show the page info panel on click.
virtual bool OnMousePressed(NSRect frame);
« no previous file with comments | « chrome/browser/cocoa/location_bar/location_bar_decoration.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698