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

Unified Diff: ui/views/controls/button/custom_button.cc

Issue 1948313004: Second try at making MdFocusRing not accept input. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/custom_button.cc
diff --git a/ui/views/controls/button/custom_button.cc b/ui/views/controls/button/custom_button.cc
index 7b4e3fe205c11270a3841fe28b94737b4c8d7038..770f92ff16dcf521f4af1e43de27e957f57d1202 100644
--- a/ui/views/controls/button/custom_button.cc
+++ b/ui/views/controls/button/custom_button.cc
@@ -47,12 +47,13 @@ class MdFocusRing : public views::View {
MdFocusRing() {
SetPaintToLayer(true);
layer()->SetFillsBoundsOpaquely(false);
-
- // Don't accept input events.
- SetEnabled(false);
}
~MdFocusRing() override {}
+ bool CanProcessEventsWithinSubtree() const override {
+ return false;
+ }
+
void OnPaint(gfx::Canvas* canvas) override {
CustomButton::PaintMdFocusRing(canvas, this);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698