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

Side by Side Diff: ui/events/text_edit_commands.h

Issue 2007503002: Views: Replace resource ids with ui::TextEditCommand enum for text editing commands in Textfield. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added file deleted during rename. 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
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_EVENTS_TEXT_EDITING_COMMANDS_H_
6 #define UI_EVENTS_TEXT_EDITING_COMMANDS_H_
7
8 #include <ostream>
tapted 2016/05/31 04:18:16 remove
9
10 #include "base/logging.h"
tapted 2016/05/31 04:18:16 I think this can go too
11
12 namespace ui {
13
14 // We try to keep commands agnostic of visual direction.
15 // Todo Should this be in event_constants.h?
tapted 2016/05/31 04:18:16 here seems ok
16 // Todo change to visual direction agnostic values.
17 // Todo change to TextEditCommand.
18 enum class TextEditCommand {
19 INVALID_COMMAND,
20 UNDO,
21 REDO,
22 CUT,
23 COPY,
24 PASTE,
25 SELECT_ALL,
26 DELETE_BACKWARD,
27 DELETE_FORWARD,
28 DELETE_TO_END_OF_LINE,
29 DELETE_TO_BEGINNING_OF_LINE,
30 DELETE_WORD_BACKWARD,
31 DELETE_WORD_FORWARD,
32 MOVE_LEFT,
33 MOVE_LEFT_AND_MODIFY_SELECTION,
34 MOVE_RIGHT,
35 MOVE_RIGHT_AND_MODIFY_SELECTION,
36 MOVE_WORD_LEFT,
37 MOVE_WORD_LEFT_AND_MODIFY_SELECTION,
38 MOVE_WORD_RIGHT,
39 MOVE_WORD_RIGHT_AND_MODIFY_SELECTION,
40 MOVE_TO_BEGINNING_OF_LINE,
41 MOVE_TO_BEGINNING_OF_LINE_AND_MODIFY_SELECTION,
42 MOVE_TO_END_OF_LINE,
43 MOVE_TO_END_OF_LINE_AND_MODIFY_SELECTION,
44 MOVE_UP,
45 MOVE_DOWN,
46 MOVE_PAGE_UP,
47 MOVE_PAGE_DOWN,
48 };
49
50 } // namespace ui
51
52 #endif // UI_EVENTS_TEXT_EDITING_COMMANDS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698