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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_BASE_IME_TEXT_EDIT_COMMANDS_H_
6 #define UI_BASE_IME_TEXT_EDIT_COMMANDS_H_
7
8 namespace ui {
9
10 // Text editing commands for use by ui::TextInputClient.
11 enum class TextEditCommand {
12 INVALID_COMMAND,
13 UNDO,
14 REDO,
15 CUT,
16 COPY,
17 PASTE,
18 DELETE_SELECTION,
19 SELECT_ALL,
20 DELETE_FORWARD,
21 DELETE_BACKWARD,
22 DELETE_TO_BEGINNING_OF_LINE,
23 DELETE_TO_END_OF_LINE,
24 DELETE_WORD_BACKWARD,
25 DELETE_WORD_FORWARD,
26 MOVE_LEFT,
27 MOVE_LEFT_AND_MODIFY_SELECTION,
28 MOVE_RIGHT,
29 MOVE_RIGHT_AND_MODIFY_SELECTION,
30 MOVE_WORD_LEFT,
31 MOVE_WORD_LEFT_AND_MODIFY_SELECTION,
32 MOVE_WORD_RIGHT,
33 MOVE_WORD_RIGHT_AND_MODIFY_SELECTION,
34 MOVE_TO_BEGINNING_OF_LINE,
35 MOVE_TO_BEGINNING_OF_LINE_AND_MODIFY_SELECTION,
36 MOVE_TO_END_OF_LINE,
37 MOVE_TO_END_OF_LINE_AND_MODIFY_SELECTION,
38 MOVE_UP,
39 MOVE_DOWN,
40 };
41
42 } // namespace ui
43
44 #endif // UI_BASE_IME_TEXT_EDIT_COMMANDS_H_
OLDNEW
« 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