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

Unified Diff: ui/views/examples/button_sticker_sheet.cc

Issue 2383243002: Refactor MdFocusRing to make it easier to reuse on other controls. (Closed)
Patch Set: explicit onfocus Created 4 years, 2 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: ui/views/examples/button_sticker_sheet.cc
diff --git a/ui/views/examples/button_sticker_sheet.cc b/ui/views/examples/button_sticker_sheet.cc
index dc98a833cd20b66b234147ebee7cada0eebb8cd4..c560ea140061a58d2be484dea181e8ad2a0a49ab 100644
--- a/ui/views/examples/button_sticker_sheet.cc
+++ b/ui/views/examples/button_sticker_sheet.cc
@@ -116,11 +116,6 @@ void ButtonStickerSheet::CreateExampleView(View* container) {
AddLabelledRowToGridLayout(layout, "Pressed", {primary, secondary});
MakeButtonsInState(&primary, &secondary, this, Button::STATE_DISABLED);
AddLabelledRowToGridLayout(layout, "Disabled", {primary, secondary});
-
- MakeButtonsInState(&primary, &secondary, this, Button::STATE_NORMAL);
- primary->OnFocus();
- secondary->OnFocus();
- AddLabelledRowToGridLayout(layout, "Focused", {primary, secondary});
}
void ButtonStickerSheet::ButtonPressed(Button* button, const ui::Event& event) {
« ui/views/controls/textfield/textfield.cc ('K') | « ui/views/controls/textfield/textfield.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698