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

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

Issue 2034623002: Unify ui::TextEditCommand and ui::TextEditCommandAuraLinux::CommandId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor7_correct_text_edit_command_aura_typo
Patch Set: Rebase. 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/ime/text_edit_commands.h ('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 08d2262403b89aea6a7b77e7add3d046fb17b624..d99a6d5de1175b8f1370c67786f2ad374bd40f01 100644
--- a/ui/views/controls/textfield/textfield.cc
+++ b/ui/views/controls/textfield/textfield.cc
@@ -169,106 +169,6 @@ ui::TextEditCommand GetCommandForKeyEvent(const ui::KeyEvent& event) {
}
}
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
-// Convert a custom text edit |command| to the equivalent views command ID.
-ui::TextEditCommand GetViewsCommand(const ui::TextEditCommandAuraLinux& command,
- bool rtl) {
- const bool select = command.extend_selection();
- switch (command.command_id()) {
- case ui::TextEditCommandAuraLinux::COPY:
- return ui::TextEditCommand::COPY;
- case ui::TextEditCommandAuraLinux::CUT:
- return ui::TextEditCommand::CUT;
- case ui::TextEditCommandAuraLinux::DELETE_BACKWARD:
- return ui::TextEditCommand::DELETE_BACKWARD;
- case ui::TextEditCommandAuraLinux::DELETE_FORWARD:
- return ui::TextEditCommand::DELETE_FORWARD;
- case ui::TextEditCommandAuraLinux::DELETE_TO_BEGINNING_OF_LINE:
- case ui::TextEditCommandAuraLinux::DELETE_TO_BEGINNING_OF_PARAGRAPH:
- return ui::TextEditCommand::DELETE_TO_BEGINNING_OF_LINE;
- case ui::TextEditCommandAuraLinux::DELETE_TO_END_OF_LINE:
- case ui::TextEditCommandAuraLinux::DELETE_TO_END_OF_PARAGRAPH:
- return ui::TextEditCommand::DELETE_TO_END_OF_LINE;
- case ui::TextEditCommandAuraLinux::DELETE_WORD_BACKWARD:
- return ui::TextEditCommand::DELETE_WORD_BACKWARD;
- case ui::TextEditCommandAuraLinux::DELETE_WORD_FORWARD:
- return ui::TextEditCommand::DELETE_WORD_FORWARD;
- case ui::TextEditCommandAuraLinux::INSERT_TEXT:
- return ui::TextEditCommand::INVALID_COMMAND;
- case ui::TextEditCommandAuraLinux::MOVE_BACKWARD:
- if (rtl) {
- return select ? ui::TextEditCommand::MOVE_RIGHT_AND_MODIFY_SELECTION
- : ui::TextEditCommand::MOVE_RIGHT;
- }
- return select ? ui::TextEditCommand::MOVE_LEFT_AND_MODIFY_SELECTION
- : ui::TextEditCommand::MOVE_LEFT;
- case ui::TextEditCommandAuraLinux::MOVE_DOWN:
- return ui::TextEditCommand::MOVE_DOWN;
- case ui::TextEditCommandAuraLinux::MOVE_FORWARD:
- if (rtl) {
- return select ? ui::TextEditCommand::MOVE_LEFT_AND_MODIFY_SELECTION
- : ui::TextEditCommand::MOVE_LEFT;
- }
- return select ? ui::TextEditCommand::MOVE_RIGHT_AND_MODIFY_SELECTION
- : ui::TextEditCommand::MOVE_RIGHT;
- case ui::TextEditCommandAuraLinux::MOVE_LEFT:
- return select ? ui::TextEditCommand::MOVE_LEFT_AND_MODIFY_SELECTION
- : ui::TextEditCommand::MOVE_LEFT;
- case ui::TextEditCommandAuraLinux::MOVE_PAGE_DOWN:
- case ui::TextEditCommandAuraLinux::MOVE_PAGE_UP:
- return ui::TextEditCommand::INVALID_COMMAND;
- case ui::TextEditCommandAuraLinux::MOVE_RIGHT:
- return select ? ui::TextEditCommand::MOVE_RIGHT_AND_MODIFY_SELECTION
- : ui::TextEditCommand::MOVE_RIGHT;
- case ui::TextEditCommandAuraLinux::MOVE_TO_BEGINNING_OF_DOCUMENT:
- case ui::TextEditCommandAuraLinux::MOVE_TO_BEGINNING_OF_LINE:
- case ui::TextEditCommandAuraLinux::MOVE_TO_BEGINNING_OF_PARAGRAPH:
- return select ? ui::TextEditCommand::
- MOVE_TO_BEGINNING_OF_LINE_AND_MODIFY_SELECTION
- : ui::TextEditCommand::MOVE_TO_BEGINNING_OF_LINE;
- case ui::TextEditCommandAuraLinux::MOVE_TO_END_OF_DOCUMENT:
- case ui::TextEditCommandAuraLinux::MOVE_TO_END_OF_LINE:
- case ui::TextEditCommandAuraLinux::MOVE_TO_END_OF_PARAGRAPH:
- return select
- ? ui::TextEditCommand::MOVE_TO_END_OF_LINE_AND_MODIFY_SELECTION
- : ui::TextEditCommand::MOVE_TO_END_OF_LINE;
- case ui::TextEditCommandAuraLinux::MOVE_UP:
- return ui::TextEditCommand::MOVE_UP;
- case ui::TextEditCommandAuraLinux::MOVE_WORD_BACKWARD:
- if (rtl) {
- return select
- ? ui::TextEditCommand::MOVE_WORD_RIGHT_AND_MODIFY_SELECTION
- : ui::TextEditCommand::MOVE_WORD_RIGHT;
- }
- return select ? ui::TextEditCommand::MOVE_WORD_LEFT_AND_MODIFY_SELECTION
- : ui::TextEditCommand::MOVE_WORD_LEFT;
- case ui::TextEditCommandAuraLinux::MOVE_WORD_FORWARD:
- if (rtl) {
- return select ? ui::TextEditCommand::MOVE_WORD_LEFT_AND_MODIFY_SELECTION
- : ui::TextEditCommand::MOVE_WORD_LEFT;
- }
- return select ? ui::TextEditCommand::MOVE_WORD_RIGHT_AND_MODIFY_SELECTION
- : ui::TextEditCommand::MOVE_WORD_RIGHT;
- case ui::TextEditCommandAuraLinux::MOVE_WORD_LEFT:
- return select ? ui::TextEditCommand::MOVE_WORD_LEFT_AND_MODIFY_SELECTION
- : ui::TextEditCommand::MOVE_WORD_LEFT;
- case ui::TextEditCommandAuraLinux::MOVE_WORD_RIGHT:
- return select ? ui::TextEditCommand::MOVE_WORD_RIGHT_AND_MODIFY_SELECTION
- : ui::TextEditCommand::MOVE_WORD_RIGHT;
- case ui::TextEditCommandAuraLinux::PASTE:
- return ui::TextEditCommand::PASTE;
- case ui::TextEditCommandAuraLinux::SELECT_ALL:
- return ui::TextEditCommand::SELECT_ALL;
- case ui::TextEditCommandAuraLinux::SET_MARK:
- case ui::TextEditCommandAuraLinux::UNSELECT:
- case ui::TextEditCommandAuraLinux::INVALID_COMMAND:
- return ui::TextEditCommand::INVALID_COMMAND;
- }
- NOTREACHED();
- return ui::TextEditCommand::INVALID_COMMAND;
-}
-#endif
-
const gfx::FontList& GetDefaultFontList() {
ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
return rb.GetFontListWithDelta(ui::kLabelFontSizeDelta);
@@ -761,11 +661,9 @@ bool Textfield::OnKeyPressed(const ui::KeyEvent& event) {
ui::GetTextEditKeyBindingsDelegate();
std::vector<ui::TextEditCommandAuraLinux> commands;
if (!handled && delegate && delegate->MatchEvent(event, &commands)) {
- const bool rtl = GetTextDirection() == base::i18n::RIGHT_TO_LEFT;
for (size_t i = 0; i < commands.size(); ++i) {
- const ui::TextEditCommand command = GetViewsCommand(commands[i], rtl);
- if (IsTextEditCommandEnabled(command)) {
- ExecuteTextEditCommand(command);
+ if (IsTextEditCommandEnabled(commands[i].command())) {
+ ExecuteTextEditCommand(commands[i].command());
handled = true;
}
}
@@ -900,9 +798,8 @@ bool Textfield::SkipDefaultKeyEventProcessing(const ui::KeyEvent& event) {
ui::GetTextEditKeyBindingsDelegate();
std::vector<ui::TextEditCommandAuraLinux> commands;
if (delegate && delegate->MatchEvent(event, &commands)) {
- const bool rtl = GetTextDirection() == base::i18n::RIGHT_TO_LEFT;
for (size_t i = 0; i < commands.size(); ++i)
- if (IsTextEditCommandEnabled(GetViewsCommand(commands[i], rtl)))
+ if (IsTextEditCommandEnabled(commands[i].command()))
return true;
}
#endif
@@ -1536,44 +1433,72 @@ bool Textfield::IsTextEditCommandEnabled(ui::TextEditCommand command) const {
bool editable = !read_only();
bool readable = text_input_type_ != ui::TEXT_INPUT_TYPE_PASSWORD;
switch (command) {
- case ui::TextEditCommand::INVALID_COMMAND:
- return false;
- case ui::TextEditCommand::UNDO:
- return editable && model_->CanUndo();
- case ui::TextEditCommand::REDO:
- return editable && model_->CanRedo();
- case ui::TextEditCommand::CUT:
- return editable && readable && model_->HasSelection();
- case ui::TextEditCommand::COPY:
- return readable && model_->HasSelection();
- case ui::TextEditCommand::PASTE:
- ui::Clipboard::GetForCurrentThread()->ReadText(
- ui::CLIPBOARD_TYPE_COPY_PASTE, &result);
- return editable && !result.empty();
- case ui::TextEditCommand::SELECT_ALL:
- return !text().empty();
- case ui::TextEditCommand::DELETE_FORWARD:
case ui::TextEditCommand::DELETE_BACKWARD:
+ case ui::TextEditCommand::DELETE_FORWARD:
case ui::TextEditCommand::DELETE_TO_BEGINNING_OF_LINE:
+ case ui::TextEditCommand::DELETE_TO_BEGINNING_OF_PARAGRAPH:
case ui::TextEditCommand::DELETE_TO_END_OF_LINE:
+ case ui::TextEditCommand::DELETE_TO_END_OF_PARAGRAPH:
case ui::TextEditCommand::DELETE_WORD_BACKWARD:
case ui::TextEditCommand::DELETE_WORD_FORWARD:
return editable;
+ case ui::TextEditCommand::MOVE_BACKWARD:
+ case ui::TextEditCommand::MOVE_BACKWARD_AND_MODIFY_SELECTION:
+ case ui::TextEditCommand::MOVE_FORWARD:
+ case ui::TextEditCommand::MOVE_FORWARD_AND_MODIFY_SELECTION:
case ui::TextEditCommand::MOVE_LEFT:
case ui::TextEditCommand::MOVE_LEFT_AND_MODIFY_SELECTION:
case ui::TextEditCommand::MOVE_RIGHT:
case ui::TextEditCommand::MOVE_RIGHT_AND_MODIFY_SELECTION:
- case ui::TextEditCommand::MOVE_WORD_LEFT:
- case ui::TextEditCommand::MOVE_WORD_LEFT_AND_MODIFY_SELECTION:
- case ui::TextEditCommand::MOVE_WORD_RIGHT:
- case ui::TextEditCommand::MOVE_WORD_RIGHT_AND_MODIFY_SELECTION:
+ case ui::TextEditCommand::MOVE_TO_BEGINNING_OF_DOCUMENT:
+ case ui::TextEditCommand::
+ MOVE_TO_BEGINNING_OF_DOCUMENT_AND_MODIFY_SELECTION:
case ui::TextEditCommand::MOVE_TO_BEGINNING_OF_LINE:
case ui::TextEditCommand::MOVE_TO_BEGINNING_OF_LINE_AND_MODIFY_SELECTION:
+ case ui::TextEditCommand::MOVE_TO_BEGINNING_OF_PARAGRAPH:
+ case ui::TextEditCommand::
+ MOVE_TO_BEGINNING_OF_PARAGRAPH_AND_MODIFY_SELECTION:
+ case ui::TextEditCommand::MOVE_TO_END_OF_DOCUMENT:
+ case ui::TextEditCommand::MOVE_TO_END_OF_DOCUMENT_AND_MODIFY_SELECTION:
case ui::TextEditCommand::MOVE_TO_END_OF_LINE:
case ui::TextEditCommand::MOVE_TO_END_OF_LINE_AND_MODIFY_SELECTION:
+ case ui::TextEditCommand::MOVE_TO_END_OF_PARAGRAPH:
+ case ui::TextEditCommand::MOVE_TO_END_OF_PARAGRAPH_AND_MODIFY_SELECTION:
+ case ui::TextEditCommand::MOVE_WORD_BACKWARD:
+ case ui::TextEditCommand::MOVE_WORD_BACKWARD_AND_MODIFY_SELECTION:
+ case ui::TextEditCommand::MOVE_WORD_FORWARD:
+ case ui::TextEditCommand::MOVE_WORD_FORWARD_AND_MODIFY_SELECTION:
+ case ui::TextEditCommand::MOVE_WORD_LEFT:
+ case ui::TextEditCommand::MOVE_WORD_LEFT_AND_MODIFY_SELECTION:
+ case ui::TextEditCommand::MOVE_WORD_RIGHT:
+ case ui::TextEditCommand::MOVE_WORD_RIGHT_AND_MODIFY_SELECTION:
return true;
- case ui::TextEditCommand::MOVE_UP:
+ case ui::TextEditCommand::UNDO:
+ return editable && model_->CanUndo();
+ case ui::TextEditCommand::REDO:
+ return editable && model_->CanRedo();
+ case ui::TextEditCommand::CUT:
+ return editable && readable && model_->HasSelection();
+ case ui::TextEditCommand::COPY:
+ return readable && model_->HasSelection();
+ case ui::TextEditCommand::PASTE:
+ ui::Clipboard::GetForCurrentThread()->ReadText(
+ ui::CLIPBOARD_TYPE_COPY_PASTE, &result);
+ return editable && !result.empty();
+ case ui::TextEditCommand::SELECT_ALL:
+ return !text().empty();
case ui::TextEditCommand::MOVE_DOWN:
+ case ui::TextEditCommand::MOVE_DOWN_AND_MODIFY_SELECTION:
+ case ui::TextEditCommand::MOVE_PAGE_DOWN:
+ case ui::TextEditCommand::MOVE_PAGE_DOWN_AND_MODIFY_SELECTION:
+ case ui::TextEditCommand::MOVE_PAGE_UP:
+ case ui::TextEditCommand::MOVE_PAGE_UP_AND_MODIFY_SELECTION:
+ case ui::TextEditCommand::MOVE_UP:
+ case ui::TextEditCommand::MOVE_UP_AND_MODIFY_SELECTION:
+ case ui::TextEditCommand::INSERT_TEXT:
+ case ui::TextEditCommand::SET_MARK:
+ case ui::TextEditCommand::UNSELECT:
+ case ui::TextEditCommand::INVALID_COMMAND:
return false;
}
NOTREACHED();
@@ -1619,12 +1544,12 @@ void Textfield::ExecuteTextEditCommand(ui::TextEditCommand command) {
// modifications of the command should happen here.
if (HasSelection()) {
switch (command) {
- case ui::TextEditCommand::DELETE_WORD_BACKWARD:
case ui::TextEditCommand::DELETE_TO_BEGINNING_OF_LINE:
- command = ui::TextEditCommand::DELETE_BACKWARD;
- break;
- case ui::TextEditCommand::DELETE_WORD_FORWARD:
+ case ui::TextEditCommand::DELETE_TO_BEGINNING_OF_PARAGRAPH:
case ui::TextEditCommand::DELETE_TO_END_OF_LINE:
+ case ui::TextEditCommand::DELETE_TO_END_OF_PARAGRAPH:
+ case ui::TextEditCommand::DELETE_WORD_BACKWARD:
+ case ui::TextEditCommand::DELETE_WORD_FORWARD:
command = ui::TextEditCommand::DELETE_FORWARD;
break;
default:
@@ -1646,38 +1571,22 @@ void Textfield::ExecuteTextEditCommand(ui::TextEditCommand command) {
OnBeforeUserAction();
switch (command) {
- case ui::TextEditCommand::UNDO:
- text_changed = cursor_changed = model_->Undo();
- break;
- case ui::TextEditCommand::REDO:
- text_changed = cursor_changed = model_->Redo();
- break;
- case ui::TextEditCommand::CUT:
- text_changed = cursor_changed = Cut();
- break;
- case ui::TextEditCommand::COPY:
- Copy();
- break;
- case ui::TextEditCommand::PASTE:
- text_changed = cursor_changed = Paste();
- break;
- case ui::TextEditCommand::SELECT_ALL:
- SelectAll(false);
- break;
case ui::TextEditCommand::DELETE_BACKWARD:
text_changed = cursor_changed = model_->Backspace();
break;
case ui::TextEditCommand::DELETE_FORWARD:
text_changed = cursor_changed = model_->Delete();
break;
- case ui::TextEditCommand::DELETE_TO_END_OF_LINE:
- model_->MoveCursor(gfx::LINE_BREAK, end, true);
- text_changed = cursor_changed = model_->Delete();
- break;
case ui::TextEditCommand::DELETE_TO_BEGINNING_OF_LINE:
+ case ui::TextEditCommand::DELETE_TO_BEGINNING_OF_PARAGRAPH:
model_->MoveCursor(gfx::LINE_BREAK, begin, true);
text_changed = cursor_changed = model_->Backspace();
break;
+ case ui::TextEditCommand::DELETE_TO_END_OF_LINE:
+ case ui::TextEditCommand::DELETE_TO_END_OF_PARAGRAPH:
+ model_->MoveCursor(gfx::LINE_BREAK, end, true);
+ text_changed = cursor_changed = model_->Delete();
+ break;
case ui::TextEditCommand::DELETE_WORD_BACKWARD:
model_->MoveCursor(gfx::WORD_BREAK, begin, true);
text_changed = cursor_changed = model_->Backspace();
@@ -1686,6 +1595,18 @@ void Textfield::ExecuteTextEditCommand(ui::TextEditCommand command) {
model_->MoveCursor(gfx::WORD_BREAK, end, true);
text_changed = cursor_changed = model_->Delete();
break;
+ case ui::TextEditCommand::MOVE_BACKWARD:
+ model_->MoveCursor(gfx::CHARACTER_BREAK, begin, false);
+ break;
+ case ui::TextEditCommand::MOVE_BACKWARD_AND_MODIFY_SELECTION:
+ model_->MoveCursor(gfx::CHARACTER_BREAK, begin, true);
+ break;
+ case ui::TextEditCommand::MOVE_FORWARD:
+ model_->MoveCursor(gfx::CHARACTER_BREAK, end, false);
+ break;
+ case ui::TextEditCommand::MOVE_FORWARD_AND_MODIFY_SELECTION:
+ model_->MoveCursor(gfx::CHARACTER_BREAK, end, true);
+ break;
case ui::TextEditCommand::MOVE_LEFT:
model_->MoveCursor(gfx::CHARACTER_BREAK, gfx::CURSOR_LEFT, false);
break;
@@ -1698,6 +1619,40 @@ void Textfield::ExecuteTextEditCommand(ui::TextEditCommand command) {
case ui::TextEditCommand::MOVE_RIGHT_AND_MODIFY_SELECTION:
model_->MoveCursor(gfx::CHARACTER_BREAK, gfx::CURSOR_RIGHT, true);
break;
+ case ui::TextEditCommand::MOVE_TO_BEGINNING_OF_DOCUMENT:
+ case ui::TextEditCommand::MOVE_TO_BEGINNING_OF_LINE:
+ case ui::TextEditCommand::MOVE_TO_BEGINNING_OF_PARAGRAPH:
+ model_->MoveCursor(gfx::LINE_BREAK, begin, false);
+ break;
+ case ui::TextEditCommand::
+ MOVE_TO_BEGINNING_OF_DOCUMENT_AND_MODIFY_SELECTION:
+ case ui::TextEditCommand::MOVE_TO_BEGINNING_OF_LINE_AND_MODIFY_SELECTION:
+ case ui::TextEditCommand::
+ MOVE_TO_BEGINNING_OF_PARAGRAPH_AND_MODIFY_SELECTION:
+ model_->MoveCursor(gfx::LINE_BREAK, begin, true);
+ break;
+ case ui::TextEditCommand::MOVE_TO_END_OF_DOCUMENT:
+ case ui::TextEditCommand::MOVE_TO_END_OF_LINE:
+ case ui::TextEditCommand::MOVE_TO_END_OF_PARAGRAPH:
+ model_->MoveCursor(gfx::LINE_BREAK, end, false);
+ break;
+ case ui::TextEditCommand::MOVE_TO_END_OF_DOCUMENT_AND_MODIFY_SELECTION:
+ case ui::TextEditCommand::MOVE_TO_END_OF_LINE_AND_MODIFY_SELECTION:
+ case ui::TextEditCommand::MOVE_TO_END_OF_PARAGRAPH_AND_MODIFY_SELECTION:
+ model_->MoveCursor(gfx::LINE_BREAK, end, true);
+ break;
+ case ui::TextEditCommand::MOVE_WORD_BACKWARD:
+ model_->MoveCursor(gfx::WORD_BREAK, begin, false);
+ break;
+ case ui::TextEditCommand::MOVE_WORD_BACKWARD_AND_MODIFY_SELECTION:
+ model_->MoveCursor(gfx::WORD_BREAK, begin, true);
+ break;
+ case ui::TextEditCommand::MOVE_WORD_FORWARD:
+ model_->MoveCursor(gfx::WORD_BREAK, end, false);
+ break;
+ case ui::TextEditCommand::MOVE_WORD_FORWARD_AND_MODIFY_SELECTION:
+ model_->MoveCursor(gfx::WORD_BREAK, end, true);
+ break;
case ui::TextEditCommand::MOVE_WORD_LEFT:
model_->MoveCursor(gfx::WORD_BREAK, gfx::CURSOR_LEFT, false);
break;
@@ -1710,20 +1665,35 @@ void Textfield::ExecuteTextEditCommand(ui::TextEditCommand command) {
case ui::TextEditCommand::MOVE_WORD_RIGHT_AND_MODIFY_SELECTION:
model_->MoveCursor(gfx::WORD_BREAK, gfx::CURSOR_RIGHT, true);
break;
- case ui::TextEditCommand::MOVE_TO_BEGINNING_OF_LINE:
- model_->MoveCursor(gfx::LINE_BREAK, begin, false);
+ case ui::TextEditCommand::UNDO:
+ text_changed = cursor_changed = model_->Undo();
break;
- case ui::TextEditCommand::MOVE_TO_BEGINNING_OF_LINE_AND_MODIFY_SELECTION:
- model_->MoveCursor(gfx::LINE_BREAK, begin, true);
+ case ui::TextEditCommand::REDO:
+ text_changed = cursor_changed = model_->Redo();
break;
- case ui::TextEditCommand::MOVE_TO_END_OF_LINE:
- model_->MoveCursor(gfx::LINE_BREAK, end, false);
+ case ui::TextEditCommand::CUT:
+ text_changed = cursor_changed = Cut();
break;
- case ui::TextEditCommand::MOVE_TO_END_OF_LINE_AND_MODIFY_SELECTION:
- model_->MoveCursor(gfx::LINE_BREAK, end, true);
+ case ui::TextEditCommand::COPY:
+ Copy();
+ break;
+ case ui::TextEditCommand::PASTE:
+ text_changed = cursor_changed = Paste();
+ break;
+ case ui::TextEditCommand::SELECT_ALL:
+ SelectAll(false);
break;
- case ui::TextEditCommand::MOVE_UP:
case ui::TextEditCommand::MOVE_DOWN:
+ case ui::TextEditCommand::MOVE_DOWN_AND_MODIFY_SELECTION:
+ case ui::TextEditCommand::MOVE_PAGE_DOWN:
+ case ui::TextEditCommand::MOVE_PAGE_DOWN_AND_MODIFY_SELECTION:
+ case ui::TextEditCommand::MOVE_PAGE_UP:
+ case ui::TextEditCommand::MOVE_PAGE_UP_AND_MODIFY_SELECTION:
+ case ui::TextEditCommand::MOVE_UP:
+ case ui::TextEditCommand::MOVE_UP_AND_MODIFY_SELECTION:
+ case ui::TextEditCommand::INSERT_TEXT:
+ case ui::TextEditCommand::SET_MARK:
+ case ui::TextEditCommand::UNSELECT:
case ui::TextEditCommand::INVALID_COMMAND:
NOTREACHED();
break;
« no previous file with comments | « ui/base/ime/text_edit_commands.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698