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

Unified Diff: chrome/browser/ui/views/location_bar/icon_label_bubble_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: chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc
diff --git a/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc b/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc
index 9d1ff7d07306d10813cb6f2165dd99d895bf867c..1acc60e77d648e7ac01fefcd6fd3204a03695567 100644
--- a/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc
+++ b/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc
@@ -6,6 +6,7 @@
#include "chrome/browser/ui/views/location_bar/location_bar_view.h"
#include "ui/accessibility/ax_node_data.h"
+#include "ui/compositor/layer_type.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/color_utils.h"
#include "ui/gfx/scoped_canvas.h"
@@ -143,14 +144,14 @@ void IconLabelBubbleView::OnNativeThemeChanged(
}
void IconLabelBubbleView::AddInkDropLayer(ui::Layer* ink_drop_layer) {
- image()->SetPaintToLayer(true);
+ image()->SetPaintToLayer(ui::LAYER_TEXTURED);
image()->layer()->SetFillsBoundsOpaquely(false);
InkDropHostView::AddInkDropLayer(ink_drop_layer);
}
void IconLabelBubbleView::RemoveInkDropLayer(ui::Layer* ink_drop_layer) {
InkDropHostView::RemoveInkDropLayer(ink_drop_layer);
- image()->SetPaintToLayer(false);
+ image()->SetPaintToLayer(ui::LAYER_NOT_DRAWN);
}
std::unique_ptr<views::InkDropHighlight>

Powered by Google App Engine
This is Rietveld 408576698