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

Unified Diff: chrome/browser/cocoa/location_bar/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/bubble_decoration.h
diff --git a/chrome/browser/cocoa/location_bar/bubble_decoration.h b/chrome/browser/cocoa/location_bar/bubble_decoration.h
index 03858457f6d4303d325743bae99d5c0e3dee4390..224050fb0141bd1c608331665d561a0b4890f955 100644
--- a/chrome/browser/cocoa/location_bar/bubble_decoration.h
+++ b/chrome/browser/cocoa/location_bar/bubble_decoration.h
@@ -36,6 +36,10 @@ class BubbleDecoration : public LocationBarDecoration {
// assuming |font_| (for sizing text). Arguments can be nil.
CGFloat GetWidthForImageAndLabel(NSImage* image, NSString* label);
+ // Helper to return where the image is drawn, for subclasses to drag
+ // from. |frame| is the decoration's frame in the containing cell.
+ NSRect GetImageRectInFrame(NSRect frame);
+
private:
friend class SelectedKeywordDecorationTest;
FRIEND_TEST_ALL_PREFIXES(SelectedKeywordDecorationTest,

Powered by Google App Engine
This is Rietveld 408576698