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

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

Issue 1802643002: Adjust locationbar text vertical position under Material Design. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code cleanup. Created 4 years, 9 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) 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 #include <vector> 5 #include <vector>
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "base/mac/scoped_nsobject.h" 9 #include "base/mac/scoped_nsobject.h"
10 #import "chrome/browser/ui/cocoa/styled_text_field_cell.h" 10 #import "chrome/browser/ui/cocoa/styled_text_field_cell.h"
(...skipping 15 matching lines...) Expand all
26 26
27 // If YES then the text field will not draw a focus ring or show the insertion 27 // If YES then the text field will not draw a focus ring or show the insertion
28 // pointer. 28 // pointer.
29 BOOL hideFocusState_; 29 BOOL hideFocusState_;
30 30
31 // YES if this field is shown in a popup window. 31 // YES if this field is shown in a popup window.
32 BOOL isPopupMode_; 32 BOOL isPopupMode_;
33 33
34 // Retains the NSEvent that caused the controlView to become firstResponder. 34 // Retains the NSEvent that caused the controlView to become firstResponder.
35 base::scoped_nsobject<NSEvent> focusEvent_; 35 base::scoped_nsobject<NSEvent> focusEvent_;
36
37 // The coordinate system line width that draws a single pixel line.
38 CGFloat singlePixelLineWidth_;
36 } 39 }
37 40
38 @property(assign, nonatomic) BOOL isPopupMode; 41 @property(assign, nonatomic) BOOL isPopupMode;
42 @property(assign, nonatomic) CGFloat singlePixelLineWidth;
39 43
40 // Line height used for text in this cell. 44 // Line height used for text in this cell.
41 - (CGFloat)lineHeight; 45 - (CGFloat)lineHeight;
42 46
43 // Clear |leftDecorations_| and |rightDecorations_|. 47 // Clear |leftDecorations_| and |rightDecorations_|.
44 - (void)clearDecorations; 48 - (void)clearDecorations;
45 49
46 // Add a new left-side decoration to the right of the existing 50 // Add a new left-side decoration to the right of the existing
47 // left-side decorations. 51 // left-side decorations.
48 - (void)addLeftDecoration:(LocationBarDecoration*)decoration; 52 - (void)addLeftDecoration:(LocationBarDecoration*)decoration;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // Gets and sets |hideFocusState|. This allows the text field to have focus but 96 // Gets and sets |hideFocusState|. This allows the text field to have focus but
93 // to appear unfocused. 97 // to appear unfocused.
94 - (BOOL)hideFocusState; 98 - (BOOL)hideFocusState;
95 - (void)setHideFocusState:(BOOL)hideFocusState 99 - (void)setHideFocusState:(BOOL)hideFocusState
96 ofView:(AutocompleteTextField*)controlView; 100 ofView:(AutocompleteTextField*)controlView;
97 101
98 // Handles the |event| that caused |controlView| to become firstResponder. 102 // Handles the |event| that caused |controlView| to become firstResponder.
99 - (void)handleFocusEvent:(NSEvent*)event 103 - (void)handleFocusEvent:(NSEvent*)event
100 ofView:(AutocompleteTextField*)controlView; 104 ofView:(AutocompleteTextField*)controlView;
101 @end 105 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698