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

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

Issue 2085873002: Add test for TextEditCommandAuraLinux::GetCommandString. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor8_unify_text_edit_commands
Patch Set: -- Created 4 years, 6 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/base/ui_base_tests.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/textfield/textfield.cc
diff --git a/ui/views/controls/textfield/textfield.cc b/ui/views/controls/textfield/textfield.cc
index a0fc7d542ece9a822c41434e07f1ed7f4b7afa07..59ed527e7aaaaa11a06f3b3e85a332c7cf1fd62b 100644
--- a/ui/views/controls/textfield/textfield.cc
+++ b/ui/views/controls/textfield/textfield.cc
@@ -1499,6 +1499,7 @@ bool Textfield::IsTextEditCommandEnabled(ui::TextEditCommand command) const {
case ui::TextEditCommand::SET_MARK:
case ui::TextEditCommand::UNSELECT:
case ui::TextEditCommand::INVALID_COMMAND:
+ case ui::TextEditCommand::NUMBER_OF_COMMANDS:
return false;
}
NOTREACHED();
@@ -1695,6 +1696,7 @@ void Textfield::ExecuteTextEditCommand(ui::TextEditCommand command) {
case ui::TextEditCommand::SET_MARK:
case ui::TextEditCommand::UNSELECT:
case ui::TextEditCommand::INVALID_COMMAND:
+ case ui::TextEditCommand::NUMBER_OF_COMMANDS:
NOTREACHED();
break;
}
« no previous file with comments | « ui/base/ui_base_tests.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698