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

Unified Diff: ui/base/ime/text_edit_commands.h

Issue 2027133002: Modify ui::TextInputClient to use ui::TextEditCommand enum in place of resource ids. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor4_up_down_mac
Patch Set: Address review comments. 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/dummy_text_input_client.cc ('k') | ui/base/ime/text_input_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/text_edit_commands.h
diff --git a/ui/base/ime/text_edit_commands.h b/ui/base/ime/text_edit_commands.h
new file mode 100644
index 0000000000000000000000000000000000000000..70249bc9dde66946950a673c6b1537396de431f3
--- /dev/null
+++ b/ui/base/ime/text_edit_commands.h
@@ -0,0 +1,44 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_BASE_IME_TEXT_EDIT_COMMANDS_H_
+#define UI_BASE_IME_TEXT_EDIT_COMMANDS_H_
+
+namespace ui {
+
+// Text editing commands for use by ui::TextInputClient.
+enum class TextEditCommand {
+ INVALID_COMMAND,
+ UNDO,
+ REDO,
+ CUT,
+ COPY,
+ PASTE,
+ DELETE_SELECTION,
+ SELECT_ALL,
+ DELETE_FORWARD,
+ DELETE_BACKWARD,
+ DELETE_TO_BEGINNING_OF_LINE,
+ DELETE_TO_END_OF_LINE,
+ DELETE_WORD_BACKWARD,
+ DELETE_WORD_FORWARD,
+ MOVE_LEFT,
+ MOVE_LEFT_AND_MODIFY_SELECTION,
+ MOVE_RIGHT,
+ MOVE_RIGHT_AND_MODIFY_SELECTION,
+ MOVE_WORD_LEFT,
+ MOVE_WORD_LEFT_AND_MODIFY_SELECTION,
+ MOVE_WORD_RIGHT,
+ MOVE_WORD_RIGHT_AND_MODIFY_SELECTION,
+ MOVE_TO_BEGINNING_OF_LINE,
+ MOVE_TO_BEGINNING_OF_LINE_AND_MODIFY_SELECTION,
+ MOVE_TO_END_OF_LINE,
+ MOVE_TO_END_OF_LINE_AND_MODIFY_SELECTION,
+ MOVE_UP,
+ MOVE_DOWN,
+};
+
+} // namespace ui
+
+#endif // UI_BASE_IME_TEXT_EDIT_COMMANDS_H_
« no previous file with comments | « ui/base/ime/dummy_text_input_client.cc ('k') | ui/base/ime/text_input_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698