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

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

Issue 2324593002: [Mac] Fix for security indicator drag&drop navigation (Closed)
Patch Set: Fix for shrike Created 4 years, 3 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/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 ad08058f737004df3f81e74eb885e95c04f3879a..7fa83f069d7aa802a2432655d5e5530ce5651768 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
@@ -64,6 +64,18 @@ class LocationBarDecoration;
- (NSRect)frameForDecoration:(const LocationBarDecoration*)aDecoration
inFrame:(NSRect)cellFrame;
+// Returns true if it's okay to drop dragged data into the view at the
+// given location.
+- (BOOL)canDropAtLocationInWindow:(NSPoint)location
+ ofView:(AutocompleteTextField*)controlView;
+
+// Find the decoration under the location in the window. Return |NULL| if
+// there's nothing in the location.
+- (LocationBarDecoration*)decorationForLocationInWindow:(NSPoint)location
+ inRect:(NSRect)cellFrame
+ ofView:(AutocompleteTextField*)
+ field;
+
// Find the decoration under the event. |NULL| if |theEvent| is not
// over anything.
- (LocationBarDecoration*)decorationForEvent:(NSEvent*)theEvent

Powered by Google App Engine
This is Rietveld 408576698