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

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

Issue 15553008: Instant Extended: Reduce clipping in omnibox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
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 #import "chrome/browser/ui/cocoa/styled_text_field_cell.h" 9 #import "chrome/browser/ui/cocoa/styled_text_field_cell.h"
10 10
(...skipping 10 matching lines...) Expand all
21 // Decorations which live to the left and right of the text, ordered 21 // Decorations which live to the left and right of the text, ordered
22 // from outside in. Decorations are owned by |LocationBarViewMac|. 22 // from outside in. Decorations are owned by |LocationBarViewMac|.
23 std::vector<LocationBarDecoration*> leftDecorations_; 23 std::vector<LocationBarDecoration*> leftDecorations_;
24 std::vector<LocationBarDecoration*> rightDecorations_; 24 std::vector<LocationBarDecoration*> rightDecorations_;
25 25
26 // If YES then the text field will not draw a focus ring or show the insertion 26 // If YES then the text field will not draw a focus ring or show the insertion
27 // pointer. 27 // pointer.
28 BOOL hideFocusState_; 28 BOOL hideFocusState_;
29 } 29 }
30 30
31 // Line height used for text in this cell.
32 - (CGFloat)lineHeight;
33
31 // Clear |leftDecorations_| and |rightDecorations_|. 34 // Clear |leftDecorations_| and |rightDecorations_|.
32 - (void)clearDecorations; 35 - (void)clearDecorations;
33 36
34 // Add a new left-side decoration to the right of the existing 37 // Add a new left-side decoration to the right of the existing
35 // left-side decorations. 38 // left-side decorations.
36 - (void)addLeftDecoration:(LocationBarDecoration*)decoration; 39 - (void)addLeftDecoration:(LocationBarDecoration*)decoration;
37 40
38 // Add a new right-side decoration to the left of the existing 41 // Add a new right-side decoration to the left of the existing
39 // right-side decorations. 42 // right-side decorations.
40 - (void)addRightDecoration:(LocationBarDecoration*)decoration; 43 - (void)addRightDecoration:(LocationBarDecoration*)decoration;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 - (void)updateToolTipsInRect:(NSRect)cellFrame 92 - (void)updateToolTipsInRect:(NSRect)cellFrame
90 ofView:(AutocompleteTextField*)controlView; 93 ofView:(AutocompleteTextField*)controlView;
91 94
92 // Gets and sets |hideFocusState|. This allows the text field to have focus but 95 // Gets and sets |hideFocusState|. This allows the text field to have focus but
93 // to appear unfocused. 96 // to appear unfocused.
94 - (BOOL)hideFocusState; 97 - (BOOL)hideFocusState;
95 - (void)setHideFocusState:(BOOL)hideFocusState 98 - (void)setHideFocusState:(BOOL)hideFocusState
96 ofView:(AutocompleteTextField*)controlView; 99 ofView:(AutocompleteTextField*)controlView;
97 100
98 @end 101 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698