| 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_SEPARATOR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_POPUP_SEPARATOR_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_POPUP_SEPARATOR_VIEW_H_ | 6 #define CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_POPUP_SEPARATOR_VIEW_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "chrome/browser/ui/cocoa/background_gradient_view.h" | 10 #include "chrome/browser/ui/cocoa/background_gradient_view.h" |
| 11 | 11 |
| 12 // A view used to draw a separator above omnibox popup. | 12 // A view used to draw a separator above omnibox popup. |
| 13 @interface OmniboxPopupTopSeparatorView : BackgroundGradientView { | 13 @interface OmniboxPopupTopSeparatorView : BackgroundGradientView { |
| 14 } | 14 } |
| 15 | 15 |
| 16 + (CGFloat)preferredHeight; | 16 + (CGFloat)preferredHeight; |
| 17 | 17 |
| 18 @end | 18 @end |
| 19 | 19 |
| 20 // A view used to draw a drop shadow beneath the omnibox popup. | 20 // A view used to draw a drop shadow beneath the omnibox popup. |
| 21 @interface OmniboxPopupBottomSeparatorView : NSView { | 21 @interface OmniboxPopupBottomSeparatorView : NSView { |
| 22 @private |
| 23 BOOL isDarkTheme_; |
| 22 } | 24 } |
| 23 | 25 |
| 24 + (CGFloat)preferredHeight; | 26 + (CGFloat)preferredHeight; |
| 27 - (instancetype)initWithFrame:(NSRect)frame forDarkTheme:(BOOL)isDarkTheme; |
| 25 | 28 |
| 26 @end | 29 @end |
| 27 | 30 |
| 28 #endif // CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_POPUP_SEPARATOR_VIEW_H_ | 31 #endif // CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_POPUP_SEPARATOR_VIEW_H_ |
| OLD | NEW |