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

Unified Diff: ui/message_center/views/notifier_settings_view.cc

Issue 2639203007: Update SetPaintToLayer to accept LayerType (Closed)
Patch Set: Refactor Created 3 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
Index: ui/message_center/views/notifier_settings_view.cc
diff --git a/ui/message_center/views/notifier_settings_view.cc b/ui/message_center/views/notifier_settings_view.cc
index f5794c9d4c9652a1e9d1b262ff045fd266176ebe..c76ff6ad2b052af1bac9955a62c887db2d5808c2 100644
--- a/ui/message_center/views/notifier_settings_view.cc
+++ b/ui/message_center/views/notifier_settings_view.cc
@@ -18,6 +18,7 @@
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/models/combobox_model.h"
#include "ui/base/resource/resource_bundle.h"
+#include "ui/compositor/layer_type.h"
#include "ui/events/event_utils.h"
#include "ui/events/keycodes/keyboard_codes.h"
#include "ui/gfx/canvas.h"
@@ -426,7 +427,7 @@ NotifierSettingsView::NotifierSettingsView(NotifierSettingsProvider* provider)
SetFocusBehavior(FocusBehavior::ALWAYS);
set_background(
views::Background::CreateSolidBackground(kMessageCenterBackgroundColor));
- SetPaintToLayer(true);
+ SetPaintToLayer(ui::LAYER_TEXTURED);
title_label_ = new views::Label(
l10n_util::GetStringUTF16(IDS_MESSAGE_CENTER_SETTINGS_BUTTON_LABEL),

Powered by Google App Engine
This is Rietveld 408576698