|
Views: Replace resource ids with ui::TextEditCommand enum for text editing commands in Textfield.
This CL replaces resource ids with a newly added ui::TextEditCommand enum for
text editing commands in views::Textfield. The TextInputClient API is modified
to accept TextEditCommand enum in place of command ids. In Textfield and
OmniboxViewViews, menu action commands and text editing commands are decoupled
to ensure that all menu action commands are handled using ExecuteCommand(..) and
IsCommandIdEnabled(..) functions. To handle text editing commands,
IsEditCommandEnabled() is used along with a newly added ExecuteEditCommand
protected virtual method.
Other changes-
- Added protected accessors for Textfield::scheduled_edit_command
to fix crbug.com/613948.
- Made TextInputClient::IsEditCommandEnabled() const.
- BridgedContentView now uses MOVE_UP, MOVE_DOWN, MOVE_PAGE_UP, MOVE_PAGE_DOWN
commands instead of directly using the corresponding
MOVE_TO_BEGINNING/END_OF_LINE command.
- Removed the now reduntant resource ids from ui_strings.grd.
BUG= 586985, 613948
Total comments: 11
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+637 lines, -485 lines) |
Patch |
 |
M |
blimp/engine/feature/engine_render_widget_feature_unittest.cc
|
View
|
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/omnibox/omnibox_view_views.h
|
View
|
|
3 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/omnibox/omnibox_view_views.cc
|
View
|
|
8 chunks |
+93 lines, -43 lines |
2 comments
|
Download
|
 |
M |
components/arc/ime/arc_ime_service.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/arc/ime/arc_ime_service.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_aura.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_aura.cc
|
View
|
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/base/ime/dummy_text_input_client.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/base/ime/dummy_text_input_client.cc
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/base/ime/text_input_client.h
|
View
|
|
2 chunks |
+9 lines, -8 lines |
0 comments
|
Download
|
 |
M |
ui/events/BUILD.gn
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ui/events/events.gyp
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
A |
ui/events/text_edit_commands.h
|
View
|
1
|
1 chunk |
+52 lines, -0 lines |
3 comments
|
Download
|
 |
M |
ui/strings/ui_strings.grd
|
View
|
|
1 chunk |
+0 lines, -66 lines |
0 comments
|
Download
|
 |
M |
ui/views/cocoa/bridged_content_view.mm
|
View
|
|
16 chunks |
+87 lines, -76 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/prefix_selector.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/prefix_selector.cc
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/textfield/textfield.h
|
View
|
|
4 chunks |
+19 lines, -10 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/textfield/textfield.cc
|
View
|
|
15 chunks |
+333 lines, -252 lines |
6 comments
|
Download
|
 |
M |
ui/views/view_unittest.cc
|
View
|
|
3 chunks |
+10 lines, -10 lines |
0 comments
|
Download
|
Total messages: 25 (21 generated)
|