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

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

Issue 2927193002: Omnibox UI: Create right-margin on Cocoa dropdown (Closed)
Patch Set: merge Created 3 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/omnibox/omnibox_popup_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 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 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 - (void)drawMatchWithFrame:(NSRect)cellFrame inView:(NSView*)controlView; 60 - (void)drawMatchWithFrame:(NSRect)cellFrame inView:(NSView*)controlView;
61 61
62 // Returns the offset of the start of the contents in the input text for the 62 // Returns the offset of the start of the contents in the input text for the
63 // given match. It is costly to compute this offset, so it is computed once and 63 // given match. It is costly to compute this offset, so it is computed once and
64 // shared by all OmniboxPopupCell instances through OmniboxPopupViewMac parent. 64 // shared by all OmniboxPopupCell instances through OmniboxPopupViewMac parent.
65 + (CGFloat)computeContentsOffset:(const AutocompleteMatch&)match; 65 + (CGFloat)computeContentsOffset:(const AutocompleteMatch&)match;
66 66
67 + (NSAttributedString*)createSeparatorStringForDarkTheme:(BOOL)isDarkTheme; 67 + (NSAttributedString*)createSeparatorStringForDarkTheme:(BOOL)isDarkTheme;
68 68
69 + (CGFloat)getContentAreaWidth:(NSRect)cellFrame; 69 + (CGFloat)getTextContentAreaWidth:(CGFloat)cellContentMaxWidth;
70 70
71 + (CGFloat)getContentTextHeightForDoubleLine:(BOOL)isDoubleLine; 71 + (CGFloat)getContentTextHeightForDoubleLine:(BOOL)isDoubleLine;
72 72
73 @end 73 @end
74 74
75 #endif // CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_POPUP_CELL_H_ 75 #endif // CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_POPUP_CELL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698