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

Unified Diff: ui/message_center/cocoa/opaque_views.h

Issue 240703004: Fix the remaining subpixel antialiasing bugs in the notification center. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
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_
« no previous file with comments | « no previous file | ui/message_center/cocoa/opaque_views.mm » ('j') | ui/message_center/cocoa/settings_entry_view.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698