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

Side by Side Diff: chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.h

Issue 98463012: Infinite Suggest for mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments, bit rewrite Created 7 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_OMNIBOX_OMNIBOX_POPUP_CELL_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_POPUP_CELL_H_
6 #define CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_POPUP_CELL_H_ 6 #define CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_POPUP_CELL_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 // OmniboxPopupCell overrides how backgrounds are displayed to 10 // OmniboxPopupCell overrides how backgrounds are displayed to
11 // handle hover versus selected. So long as we're in there, it also 11 // handle hover versus selected. So long as we're in there, it also
12 // provides some default initialization. 12 // provides some default initialization.
13 @interface OmniboxPopupCell : NSButtonCell { 13 @interface OmniboxPopupCell : NSButtonCell {
14
15 @private
16 CGFloat requiredWidth_;
17 CGFloat contentsWidth_;
18 CGFloat maxRequiredWidth_;
19 CGFloat maxContentsWidth_;
14 } 20 }
15 21
22 - (void)setRequiredWidth:(CGFloat)requiredWidth;
23
24 - (void)setContentsWidth:(CGFloat)contentsWidth;
25
26 - (void)setMaxRequiredWidth:(CGFloat)maxRequiredWidth;
27
28 - (void)setMaxContentsWidth:(CGFloat)maxContentsWidth;
29
16 @end 30 @end
17 31
18 #endif // CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_POPUP_CELL_H_ 32 #endif // CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_POPUP_CELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698