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

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

Issue 2906893004: Omnibox UI Experiments: Port Vertical Layout experiment to Mac Cocoa. (Closed)
Patch Set: fix camel case 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
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
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)getContentAreaWidth:(NSRect)cellFrame;
70 70
71 + (CGFloat)getContentTextHeight; 71 + (CGFloat)getContentTextHeight:(BOOL)isTwoLine;
groby-ooo-7-16 2017/05/31 00:14:51 Goal for cocoa functions is usually to be readable
tommycli 2017/05/31 18:20:39 Done.
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

Powered by Google App Engine
This is Rietveld 408576698