Chromium Code Reviews| Index: ui/message_center/cocoa/opaque_views.h |
| diff --git a/ui/message_center/cocoa/opaque_views.h b/ui/message_center/cocoa/opaque_views.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..46762a3114b3cf59467f4256b81a78829a9ff656 |
| --- /dev/null |
| +++ b/ui/message_center/cocoa/opaque_views.h |
| @@ -0,0 +1,36 @@ |
| +// Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef UI_MESSAGE_CENTER_COCOA_OPAQUE_VIEWS_H_ |
| +#define UI_MESSAGE_CENTER_COCOA_OPAQUE_VIEWS_H_ |
| + |
| +#import <Cocoa/Cocoa.h> |
| + |
| +#include "base/mac/scoped_nsobject.h" |
| + |
| +// MCDropDown is the same as an NSPopupButton except that it fills its |
| +// background with a settable color. |
| +@interface MCDropDown : NSPopUpButton { |
| + @private |
| + base::scoped_nsobject<NSColor> backgroundColor_; |
| +} |
| + |
| +// Gets and sets the bubble's background color. |
| +- (NSColor*)backgroundColor; |
| +- (void)setBackgroundColor:(NSColor*)backgroundColor; |
| +@end |
| + |
| +// MCTextField fills its background with an opaque color. It also configures |
| +// the view to have a plan appearance, without bezel, border, editing, etc. |
| +@interface MCTextField : NSTextField { |
| + @private |
| + base::scoped_nsobject<NSColor> backgroundColor_; |
| +} |
| + |
| +// Use this method to create the text field. The color is required so it |
| +// can correctly subpixel antialias. |
| +- (id)initWithFrame:(NSRect)frameRect andColor:(NSColor*)color; |
|
Robert Sesek
2014/04/17 13:31:51
andColor: -> backgroundColor:
dewittj
2014/04/17 16:58:57
Done.
|
| +@end |
| + |
| +#endif // UI_MESSAGE_CENTER_COCOA_OPAQUE_VIEWS_H_ |