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

Unified Diff: ash/common/system/chromeos/network/network_state_list_detailed_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/chromeos/network/network_state_list_detailed_view.cc
diff --git a/ash/common/system/chromeos/network/network_state_list_detailed_view.cc b/ash/common/system/chromeos/network/network_state_list_detailed_view.cc
index b87f56b16a343533cbe98c462dfb2984d34f8ab6..525fc10bfeaf78a04ff7cda676c3a360068bf600 100644
--- a/ash/common/system/chromeos/network/network_state_list_detailed_view.cc
+++ b/ash/common/system/chromeos/network/network_state_list_detailed_view.cc
@@ -55,6 +55,7 @@
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/compositor/layer.h"
+#include "ui/compositor/layer_type.h"
#include "ui/compositor/scoped_layer_animation_settings.h"
#include "ui/gfx/text_constants.h"
#include "ui/views/bubble/bubble_dialog_delegate.h"
@@ -195,7 +196,7 @@ const int kFadeIconMs = 500;
class ScanningThrobber : public ThrobberView {
public:
ScanningThrobber() {
- SetPaintToLayer(true);
+ SetPaintToLayer(ui::LAYER_TEXTURED);
layer()->SetFillsBoundsOpaquely(false);
layer()->SetOpacity(1.0);
accessible_name_ =
@@ -241,7 +242,7 @@ class InfoIcon : public views::ImageButton {
SetImageAlignment(ALIGN_CENTER, ALIGN_MIDDLE);
SetAccessibleName(
bundle.GetLocalizedString(IDS_ASH_STATUS_TRAY_NETWORK_INFO));
- SetPaintToLayer(true);
+ SetPaintToLayer(ui::LAYER_TEXTURED);
layer()->SetFillsBoundsOpaquely(false);
layer()->SetOpacity(1.0);
}

Powered by Google App Engine
This is Rietveld 408576698