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

Unified Diff: ui/views/controls/slider.cc

Issue 1870573003: Full Keyboard Access: Second Approach (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « ui/views/controls/separator.cc ('k') | ui/views/controls/tabbed_pane/tabbed_pane.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/slider.cc
diff --git a/ui/views/controls/slider.cc b/ui/views/controls/slider.cc
index e063456aaaf4bd716d44002a1dbe136fa029118b..f415c69d22ba13bd1ff1fab7f7f1ea2ce878ef92 100644
--- a/ui/views/controls/slider.cc
+++ b/ui/views/controls/slider.cc
@@ -22,6 +22,7 @@
#include "ui/gfx/geometry/rect.h"
#include "ui/resources/grit/ui_resources.h"
#include "ui/views/resources/grit/views_resources.h"
+#include "ui/views/style/platform_style.h"
#include "ui/views/widget/widget.h"
namespace {
@@ -67,7 +68,7 @@ Slider::Slider(SliderListener* listener, Orientation orientation)
bar_active_images_(kBarImagesActive),
bar_disabled_images_(kBarImagesDisabled) {
EnableCanvasFlippingForRTLUI(true);
- SetFocusable(true);
+ PlatformStyle::ConfigureFocus(PlatformStyle::CONTROL::SLIDER, this);
UpdateState(true);
}
« no previous file with comments | « ui/views/controls/separator.cc ('k') | ui/views/controls/tabbed_pane/tabbed_pane.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698