| 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 22 matching lines...) Expand all Loading... |
| 33 // The offset at which the infinite suggestion contents should be displayed. | 33 // The offset at which the infinite suggestion contents should be displayed. |
| 34 CGFloat contentsOffset_; | 34 CGFloat contentsOffset_; |
| 35 | 35 |
| 36 BOOL isContentsRTL_; | 36 BOOL isContentsRTL_; |
| 37 | 37 |
| 38 // Is this suggestion an answer or calculator result. | 38 // Is this suggestion an answer or calculator result. |
| 39 bool isAnswer_; | 39 bool isAnswer_; |
| 40 | 40 |
| 41 AutocompleteMatch::Type matchType_; | 41 AutocompleteMatch::Type matchType_; |
| 42 | 42 |
| 43 int max_lines_; | 43 int maxLines_; |
| 44 } | 44 } |
| 45 | 45 |
| 46 @property(readonly, retain, nonatomic) NSAttributedString* contents; | 46 @property(readonly, retain, nonatomic) NSAttributedString* contents; |
| 47 @property(readonly, retain, nonatomic) NSAttributedString* description; | 47 @property(readonly, retain, nonatomic) NSAttributedString* description; |
| 48 @property(readonly, retain, nonatomic) NSAttributedString* prefix; | 48 @property(readonly, retain, nonatomic) NSAttributedString* prefix; |
| 49 @property(readonly, retain, nonatomic) NSImage* image; | 49 @property(readonly, retain, nonatomic) NSImage* image; |
| 50 @property(retain, nonatomic) NSImage* incognitoImage; | 50 @property(retain, nonatomic) NSImage* incognitoImage; |
| 51 @property(readonly, retain, nonatomic) NSImage* answerImage; | 51 @property(readonly, retain, nonatomic) NSImage* answerImage; |
| 52 @property(readonly, nonatomic) CGFloat contentsOffset; | 52 @property(readonly, nonatomic) CGFloat contentsOffset; |
| 53 @property(readonly, nonatomic) BOOL isContentsRTL; | 53 @property(readonly, nonatomic) BOOL isContentsRTL; |
| 54 @property(readonly, nonatomic) bool isAnswer; | 54 @property(readonly, nonatomic) bool isAnswer; |
| 55 @property(readonly, nonatomic) AutocompleteMatch::Type matchType; | 55 @property(readonly, nonatomic) AutocompleteMatch::Type matchType; |
| 56 @property(readonly, nonatomic) int max_lines; | 56 @property(readonly, nonatomic) int maxLines; |
| 57 | 57 |
| 58 - (instancetype)initWithMatch:(const AutocompleteMatch&)match | 58 - (instancetype)initWithMatch:(const AutocompleteMatch&)match |
| 59 contentsOffset:(CGFloat)contentsOffset | 59 contentsOffset:(CGFloat)contentsOffset |
| 60 image:(NSImage*)image | 60 image:(NSImage*)image |
| 61 answerImage:(NSImage*)answerImage | 61 answerImage:(NSImage*)answerImage |
| 62 forDarkTheme:(BOOL)isDarkTheme; | 62 forDarkTheme:(BOOL)isDarkTheme; |
| 63 | 63 |
| 64 // Returns the width of the match contents. | 64 // Returns the width of the match contents. |
| 65 - (CGFloat)getMatchContentsWidth; | 65 - (CGFloat)getMatchContentsWidth; |
| 66 | 66 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 79 | 79 |
| 80 + (NSAttributedString*)createSeparatorStringForDarkTheme:(BOOL)isDarkTheme; | 80 + (NSAttributedString*)createSeparatorStringForDarkTheme:(BOOL)isDarkTheme; |
| 81 | 81 |
| 82 + (CGFloat)getContentAreaWidth:(NSRect)cellFrame; | 82 + (CGFloat)getContentAreaWidth:(NSRect)cellFrame; |
| 83 | 83 |
| 84 @end | 84 @end |
| 85 | 85 |
| 86 const CGFloat kContentLineHeight = 25.0; | 86 const CGFloat kContentLineHeight = 25.0; |
| 87 | 87 |
| 88 #endif // CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_POPUP_CELL_H_ | 88 #endif // CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_POPUP_CELL_H_ |
| OLD | NEW |