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

Side by Side Diff: chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.h

Issue 2839893003: cocoa: allow omnibox decorations to become key (Closed)
Patch Set: fix nits 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_COCOA_LOCATION_BAR_AUTOCOMPLETE_TEXT_FIELD_CELL_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_LOCATION_BAR_AUTOCOMPLETE_TEXT_FIELD_CELL_H_
6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_AUTOCOMPLETE_TEXT_FIELD_CELL_H_ 6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_AUTOCOMPLETE_TEXT_FIELD_CELL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #import <Cocoa/Cocoa.h> 10 #import <Cocoa/Cocoa.h>
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 132
133 // Gets and sets |hideFocusState|. This allows the text field to have focus but 133 // Gets and sets |hideFocusState|. This allows the text field to have focus but
134 // to appear unfocused. 134 // to appear unfocused.
135 - (BOOL)hideFocusState; 135 - (BOOL)hideFocusState;
136 - (void)setHideFocusState:(BOOL)hideFocusState 136 - (void)setHideFocusState:(BOOL)hideFocusState
137 ofView:(AutocompleteTextField*)controlView; 137 ofView:(AutocompleteTextField*)controlView;
138 138
139 // Handles the |event| that caused |controlView| to become firstResponder. 139 // Handles the |event| that caused |controlView| to become firstResponder.
140 - (void)handleFocusEvent:(NSEvent*)event 140 - (void)handleFocusEvent:(NSEvent*)event
141 ofView:(AutocompleteTextField*)controlView; 141 ofView:(AutocompleteTextField*)controlView;
142
143 // Returns the index of |decoration| as a leading decoration, if it is one. The
144 // leading-most decoration is at index zero, and increasing indices are closer
145 // to the start of the omnibox text field. Returns -1 if |decoration| is not a
146 // leading decoration.
147 - (int)leadingDecorationIndex:(LocationBarDecoration*)decoration;
148
142 @end 149 @end
143 150
144 // Methods which are either only for testing, or only public for testing. 151 // Methods which are either only for testing, or only public for testing.
145 @interface AutocompleteTextFieldCell (TestingAPI) 152 @interface AutocompleteTextFieldCell (TestingAPI)
146 153
147 // Returns |mouseTrackingDecorations_|. 154 // Returns |mouseTrackingDecorations_|.
148 - (const std::vector<LocationBarDecoration*>&)mouseTrackingDecorations; 155 - (const std::vector<LocationBarDecoration*>&)mouseTrackingDecorations;
149 156
150 @end 157 @end
151 158
152 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_AUTOCOMPLETE_TEXT_FIELD_CELL_H_ 159 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_AUTOCOMPLETE_TEXT_FIELD_CELL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698