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

Unified Diff: ash/common/system/tray/tray_item_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: ash/common/system/tray/tray_item_view.cc
diff --git a/ash/common/system/tray/tray_item_view.cc b/ash/common/system/tray/tray_item_view.cc
index a2cb5e7738484565a109fec87cd407555dbdcfd8..8e8ab62a0a01ade589e037b04b0fc6a383a09353 100644
--- a/ash/common/system/tray/tray_item_view.cc
+++ b/ash/common/system/tray/tray_item_view.cc
@@ -11,6 +11,7 @@
#include "ash/common/system/tray/tray_constants.h"
#include "ash/public/cpp/shelf_types.h"
#include "ui/compositor/layer.h"
+#include "ui/compositor/layer_type.h"
#include "ui/gfx/animation/slide_animation.h"
#include "ui/views/controls/image_view.h"
#include "ui/views/controls/label.h"
@@ -30,7 +31,7 @@ namespace ash {
TrayItemView::TrayItemView(SystemTrayItem* owner)
: owner_(owner), label_(NULL), image_view_(NULL) {
- SetPaintToLayer(true);
+ SetPaintToLayer(ui::LAYER_TEXTURED);
layer()->SetFillsBoundsOpaquely(false);
SetLayoutManager(new views::FillLayout());
}

Powered by Google App Engine
This is Rietveld 408576698