OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_AUTOCOMPLETE_TEXT_FIELD_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_ |
6 #define CHROME_BROWSER_UI_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_ | 6 #define CHROME_BROWSER_UI_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #import "base/mac/cocoa_protocols.h" | |
11 #include "base/memory/scoped_nsobject.h" | 10 #include "base/memory/scoped_nsobject.h" |
12 #import "chrome/browser/ui/cocoa/styled_text_field.h" | 11 #import "chrome/browser/ui/cocoa/styled_text_field.h" |
13 #import "chrome/browser/ui/cocoa/url_drop_target.h" | 12 #import "chrome/browser/ui/cocoa/url_drop_target.h" |
14 | 13 |
15 @class AutocompleteTextFieldCell; | 14 @class AutocompleteTextFieldCell; |
16 | 15 |
17 // AutocompleteTextField intercepts UI actions for forwarding to | 16 // AutocompleteTextField intercepts UI actions for forwarding to |
18 // OmniboxViewMac (*), and provides a custom look. It works | 17 // OmniboxViewMac (*), and provides a custom look. It works |
19 // together with AutocompleteTextFieldEditor (mostly for intercepting | 18 // together with AutocompleteTextFieldEditor (mostly for intercepting |
20 // user actions) and AutocompleteTextFieldCell (mostly for custom | 19 // user actions) and AutocompleteTextFieldCell (mostly for custom |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 // Return the appropriate menu for any decoration under |event|. | 137 // Return the appropriate menu for any decoration under |event|. |
139 - (NSMenu*)decorationMenuForEvent:(NSEvent*)event; | 138 - (NSMenu*)decorationMenuForEvent:(NSEvent*)event; |
140 | 139 |
141 // Retains |tooltip| (in |currentToolTips_|) and adds this tooltip | 140 // Retains |tooltip| (in |currentToolTips_|) and adds this tooltip |
142 // via -[NSView addToolTipRect:owner:userData:]. | 141 // via -[NSView addToolTipRect:owner:userData:]. |
143 - (void)addToolTip:(NSString*)tooltip forRect:(NSRect)aRect; | 142 - (void)addToolTip:(NSString*)tooltip forRect:(NSRect)aRect; |
144 | 143 |
145 @end | 144 @end |
146 | 145 |
147 #endif // CHROME_BROWSER_UI_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_ | 146 #endif // CHROME_BROWSER_UI_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_ |
OLD | NEW |