| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
| 11 #import "chrome/browser/ui/cocoa/styled_text_field.h" | 11 #import "chrome/browser/ui/cocoa/styled_text_field.h" |
| 12 #import "chrome/browser/ui/cocoa/themed_window.h" | 12 #import "chrome/browser/ui/cocoa/themed_window.h" |
| 13 #import "chrome/browser/ui/cocoa/url_drop_target.h" | 13 #import "chrome/browser/ui/cocoa/url_drop_target.h" |
| 14 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" |
| 14 | 15 |
| 15 @class AutocompleteTextFieldCell; | 16 @class AutocompleteTextFieldCell; |
| 16 class LocationBarDecoration; | 17 class LocationBarDecoration; |
| 17 | 18 |
| 18 // AutocompleteTextField intercepts UI actions for forwarding to | 19 // AutocompleteTextField intercepts UI actions for forwarding to |
| 19 // OmniboxViewMac (*), and provides a custom look. It works | 20 // OmniboxViewMac (*), and provides a custom look. It works |
| 20 // together with AutocompleteTextFieldEditor (mostly for intercepting | 21 // together with AutocompleteTextFieldEditor (mostly for intercepting |
| 21 // user actions) and AutocompleteTextFieldCell (mostly for custom | 22 // user actions) and AutocompleteTextFieldCell (mostly for custom |
| 22 // drawing). | 23 // drawing). |
| 23 // | 24 // |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 // Retains |tooltip| (in |currentToolTips_|) and adds this tooltip | 166 // Retains |tooltip| (in |currentToolTips_|) and adds this tooltip |
| 166 // via -[NSView addToolTipRect:owner:userData:]. | 167 // via -[NSView addToolTipRect:owner:userData:]. |
| 167 - (void)addToolTip:(NSString*)tooltip forRect:(NSRect)aRect; | 168 - (void)addToolTip:(NSString*)tooltip forRect:(NSRect)aRect; |
| 168 | 169 |
| 169 // Obtain the bubble anchor point for |decoration|. In window coordinates. | 170 // Obtain the bubble anchor point for |decoration|. In window coordinates. |
| 170 - (NSPoint)bubblePointForDecoration:(LocationBarDecoration*)decoration; | 171 - (NSPoint)bubblePointForDecoration:(LocationBarDecoration*)decoration; |
| 171 | 172 |
| 172 @end | 173 @end |
| 173 | 174 |
| 174 #endif // CHROME_BROWSER_UI_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_ | 175 #endif // CHROME_BROWSER_UI_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_ |
| OLD | NEW |