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

Unified Diff: ui/views/bubble/bubble_delegate.cc

Issue 8887003: Add support for high contrast mode to bubbles (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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/views/bubble/bubble_delegate.cc
diff --git a/ui/views/bubble/bubble_delegate.cc b/ui/views/bubble/bubble_delegate.cc
index 72f20b87af519a9cfe43fba2c3a0dd8fb8eaffc7..1abae30df3510bbe0c5fcf21e76d835f0ef89f67 100644
--- a/ui/views/bubble/bubble_delegate.cc
+++ b/ui/views/bubble/bubble_delegate.cc
@@ -5,6 +5,7 @@
#include "ui/views/bubble/bubble_delegate.h"
#include "ui/base/animation/slide_animation.h"
+#include "ui/gfx/color_utils.h"
#include "ui/views/bubble/bubble_frame_view.h"
#include "ui/views/widget/widget.h"
@@ -71,8 +72,13 @@ Widget* CreateBorderWidget(BubbleDelegateView* bubble, Widget* parent) {
} // namespace
-// TODO(msw): Use NativeTheme/color_helper (crbug.com/105023).
-const SkColor BubbleDelegateView::kBackgroundColor = SK_ColorWHITE;
+#if defined(OS_WIN) && !defined(USE_AURA)
msw 2011/12/08 05:46:30 The impl seems to run on Aura, any reason you're b
sail 2011/12/08 05:52:07 This was copy paste from the original implementati
+const SkColor BubbleDelegateView::kBackgroundColor =
+ color_utils::GetSysSkColor(COLOR_WINDOW);
+#else
+// TODO(beng): source from theme provider.
+const SkColor Bubble::kBackgroundColor = SK_ColorWHITE;
+#endif
BubbleDelegateView::BubbleDelegateView()
: close_on_esc_(true),

Powered by Google App Engine
This is Rietveld 408576698