| OLD | NEW |
| 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 Loading... |
| 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; |
| 72 |
| 71 @end | 73 @end |
| 72 | 74 |
| 73 const CGFloat kContentLineHeight = 25.0; | |
| 74 | |
| 75 #endif // CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_POPUP_CELL_H_ | 75 #endif // CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_POPUP_CELL_H_ |
| OLD | NEW |