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

Unified Diff: chrome/browser/cocoa/location_bar/ev_bubble_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
Index: chrome/browser/cocoa/location_bar/ev_bubble_decoration.h
diff --git a/chrome/browser/cocoa/location_bar/ev_bubble_decoration.h b/chrome/browser/cocoa/location_bar/ev_bubble_decoration.h
index 0cdd960b634fdc161362e463346e212342c1582a..ecbdf1d6f17ee4df412033049e6bb30ba050fb90 100644
--- a/chrome/browser/cocoa/location_bar/ev_bubble_decoration.h
+++ b/chrome/browser/cocoa/location_bar/ev_bubble_decoration.h
@@ -28,6 +28,9 @@ class EVBubbleDecoration : public BubbleDecoration {
virtual bool IsDraggable();
virtual NSPasteboard* GetDragPasteboard();
virtual NSImage* GetDragImage();
+ virtual NSRect GetDragImageFrame(NSRect frame) {
+ return GetImageRectInFrame(frame);
+ }
virtual bool OnMousePressed(NSRect frame);
virtual bool AcceptsMousePress() { return true; }
« no previous file with comments | « chrome/browser/cocoa/location_bar/bubble_decoration.mm ('k') | chrome/browser/cocoa/location_bar/location_bar_decoration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698