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

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

Issue 2839893003: cocoa: allow omnibox decorations to become key (Closed)
Patch Set: Created 3 years, 8 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 bc1e235c894c152f887f8c4b79bd85216284b750..dc0758ea121202ceb72d38c24ed26417fd174f17 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
@@ -139,6 +139,13 @@ class LocationBarDecoration;
// Handles the |event| that caused |controlView| to become firstResponder.
- (void)handleFocusEvent:(NSEvent*)event
ofView:(AutocompleteTextField*)controlView;
+
+// Returns the index of |decoration| as a leading decoration, if it is one. The
+// leading-most decoration is at index zero, and increasing indices are closer
+// to the start of the omnibox text field. Returns -1 if |decoration| is not a
+// leading decoration.
+- (int)leadingDecorationIndex:(LocationBarDecoration*)decoration;
+
@end
// Methods which are either only for testing, or only public for testing.

Powered by Google App Engine
This is Rietveld 408576698