| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |