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

Unified Diff: ui/events/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: 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
Index: ui/events/text_edit_commands.h
diff --git a/ui/events/text_edit_commands.h b/ui/events/text_edit_commands.h
new file mode 100644
index 0000000000000000000000000000000000000000..63101eaff0466db792bdb9cbdc9fd8fc8fef28ca
--- /dev/null
+++ b/ui/events/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_EVENTS_TEXT_EDITING_COMMANDS_H_
msw 2016/06/10 00:48:51 Move this to ui/base/ime, ui/base/text, or ui/base
karandeepb 2016/06/10 08:20:46 Moved to ui/base/ime.
+#define UI_EVENTS_TEXT_EDITING_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_EVENTS_TEXT_EDITING_COMMANDS_H_
« no previous file with comments | « ui/events/events.gyp ('k') | ui/strings/ui_strings.grd » ('j') | ui/strings/ui_strings.grd » ('J')

Powered by Google App Engine
This is Rietveld 408576698