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

Unified Diff: ui/message_center/quiet_mode_bubble.cc

Issue 11836003: Allow message center and related bubbles to render on Windows. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Move comment and early return instead of big blocks. Created 7 years, 11 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
« no previous file with comments | « ui/message_center/message_popup_bubble.cc ('k') | ui/views/bubble/tray_bubble_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/quiet_mode_bubble.cc
diff --git a/ui/message_center/quiet_mode_bubble.cc b/ui/message_center/quiet_mode_bubble.cc
index 8c18abf68ae8532ae6eae35ae89ad6000c110a6e..2f5e987c58c7352d2f1faff9628a6cbfcd372346 100644
--- a/ui/message_center/quiet_mode_bubble.cc
+++ b/ui/message_center/quiet_mode_bubble.cc
@@ -55,8 +55,12 @@ QuietModeBubble::QuietModeBubble(views::View* anchor_view,
bubble_ = new views::BubbleDelegateView(
anchor_view, views::BubbleBorder::BOTTOM_RIGHT);
bubble_->set_notify_enter_exit_on_child(true);
- bubble_->SetPaintToLayer(true);
- bubble_->SetFillsBoundsOpaquely(true);
+
+ if (views::View::get_use_acceleration_when_possible()) {
+ bubble_->SetPaintToLayer(true);
+ bubble_->SetFillsBoundsOpaquely(true);
+ }
+
bubble_->set_parent_window(parent_window);
bubble_->set_margins(gfx::Insets());
InitializeBubbleContents();
« no previous file with comments | « ui/message_center/message_popup_bubble.cc ('k') | ui/views/bubble/tray_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698