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

Unified Diff: chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.h

Issue 2524223002: MacViews: Anchor bubbles according to the MD spec. (Closed)
Patch Set: Zap unnecessary patchset dep Created 4 years, 1 month 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/ui/cocoa/location_bar/autocomplete_text_field_cell.h
diff --git a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.h b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.h
index b8f6543c34155ebb1b3cfac3de7657a33390dfcd..f88aed1edc3e3a635cf89f32fc866f685c2e3d0e 100644
--- a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.h
+++ b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.h
@@ -65,11 +65,17 @@ class LocationBarDecoration;
- (CGFloat)availableWidthInFrame:(const NSRect)frame;
// Return the frame for |aDecoration| if the cell is in |cellFrame|.
-// Returns |NSZeroRect| for decorations which are not currently
-// visible.
+// Returns |NSZeroRect| for decorations which are not currently visible.
- (NSRect)frameForDecoration:(const LocationBarDecoration*)aDecoration
inFrame:(NSRect)cellFrame;
+// Returns the frame representing the background of |decoration|. Also sets
+// |isLeftDecoration| according to whether the decoration appears on the left or
+// the right side of the text field.
+- (NSRect)backgroundFrameForDecoration:(LocationBarDecoration*)decoration
+ inFrame:(NSRect)cellFrame
+ isLeftDecoration:(BOOL*)isLeftDecoration;
+
// Returns true if it's okay to drop dragged data into the view at the
// given location.
- (BOOL)canDropAtLocationInWindow:(NSPoint)location

Powered by Google App Engine
This is Rietveld 408576698