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

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

Issue 1905163002: [Mac][Material Design] Rework how location bar shadow is drawn. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix for Retina screens. Created 4 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
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"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 base::scoped_nsobject<URLDropTargetHandler> dropHandler_; 134 base::scoped_nsobject<URLDropTargetHandler> dropHandler_;
135 135
136 // Holds current tooltip strings, to keep them from being dealloced. 136 // Holds current tooltip strings, to keep them from being dealloced.
137 base::scoped_nsobject<NSMutableArray> currentToolTips_; 137 base::scoped_nsobject<NSMutableArray> currentToolTips_;
138 138
139 // Animation object used for resizing the autocomplete field. 139 // Animation object used for resizing the autocomplete field.
140 base::scoped_nsobject<NSViewAnimation> resizeAnimation_; 140 base::scoped_nsobject<NSViewAnimation> resizeAnimation_;
141 141
142 base::scoped_nsobject<NSString> suggestText_; 142 base::scoped_nsobject<NSString> suggestText_;
143 base::scoped_nsobject<NSColor> suggestColor_; 143 base::scoped_nsobject<NSColor> suggestColor_;
144
145 base::scoped_nsobject<NSView> shadowView_;
144 } 146 }
145 147
146 @property(nonatomic) AutocompleteTextFieldObserver* observer; 148 @property(nonatomic) AutocompleteTextFieldObserver* observer;
147 149
148 // Convenience method to return the cell, casted appropriately. 150 // Convenience method to return the cell, casted appropriately.
149 - (AutocompleteTextFieldCell*)cell; 151 - (AutocompleteTextFieldCell*)cell;
150 152
151 // Superclass aborts editing before changing the string, which causes 153 // Superclass aborts editing before changing the string, which causes
152 // problems for undo. This version modifies the field editor's 154 // problems for undo. This version modifies the field editor's
153 // contents if the control is already being edited. 155 // contents if the control is already being edited.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 // Draw gray text suggestion in |controlView|. 196 // Draw gray text suggestion in |controlView|.
195 void DrawGrayTextAutocompletion(NSAttributedString* mainText, 197 void DrawGrayTextAutocompletion(NSAttributedString* mainText,
196 NSString* suggestText, 198 NSString* suggestText,
197 NSColor* suggestColor, 199 NSColor* suggestColor,
198 NSView* controlView, 200 NSView* controlView,
199 NSRect frame); 201 NSRect frame);
200 202
201 } // namespace autocomplete_text_field 203 } // namespace autocomplete_text_field
202 204
203 #endif // CHROME_BROWSER_UI_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_ 205 #endif // CHROME_BROWSER_UI_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698