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

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

Issue 2560993002: [Mac] Fix omnibox text overlap (Closed)
Patch Set: Created 4 years 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) 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
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_
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