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

Issue 2027133002: Modify ui::TextInputClient to use ui::TextEditCommand enum in place of resource ids. (Closed)

Created:
4 years, 6 months ago by karandeepb
Modified:
4 years, 6 months ago
CC:
anandc+watch-blimp_chromium.org, chrome-apps-syd-reviews_chromium.org, chromium-reviews, danakj+watch_chromium.org, darin-cc_chromium.org, dtrainor+watch-blimp_chromium.org, elijahtaylor+arcwatch_chromium.org, hidehiko+watch_chromium.org, jam, jbauman+watch_chromium.org, jessicag+watch-blimp_chromium.org, kalyank, khushalsagar+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, lethalantidote+watch-blimp_chromium.org, lhchavez+watch_chromium.org, maniscalco+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, nona+watch_chromium.org, nyquist+watch-blimp_chromium.org, piman+watch_chromium.org, sadrul, shaktisahu+watch-blimp_chromium.org, shuchen+watch_chromium.org, sievers+watch_chromium.org, sriramsr+watch-blimp_chromium.org, James Su, tdresser+watch_chromium.org, tfarina, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@refactor4_up_down_mac
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Modify ui::TextInputClient to use ui::TextEditCommand enum in place of resource ids. Currently Views::Textfield represent text editing commands using resource ids, even though these do not appear anywhere in the UI. This CL adds a new ui::TextEditCommand enum for use by ui::TextInputClient. Unused resource ids are removed from ui_strings.grd and the allocation of resource ids for the file is reduced from 500 to 200. TextInputClient methods IsEditCommandEnabled and SetEditCommandForNextKeyEvent are renamed to IsTextEditCommandEnabled and SetTextEditCommandForNextKeyEvent respectively. Textfield::ExecuteEditCommand is renamed to Textfield::ExecuteTextEditCommand. This is a follow-up to crrev.com/2031433002 and is second in series of CLs to replace resource ids with a ui::TextEditCommand enum for text editing commands in views::Textfield. Link to complete patch - http://crrev.com/2029733003 BUG=586985 Committed: https://crrev.com/9f4772321729e25fa0ce1fe4248228be52bd28d3 Cr-Commit-Position: refs/heads/master@{#400921}

Patch Set 1 : #

Total comments: 6

Patch Set 2 : Rebase. #

Patch Set 3 : Address review comments. #

Patch Set 4 : Remove reduntant header includes. #

Patch Set 5 : Rebase. #

Patch Set 6 : #

Total comments: 10

Patch Set 7 : Address review comments. #

Patch Set 8 : Fix include guard. #

Total comments: 4

Patch Set 9 : Address review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+483 lines, -436 lines) Patch
M chrome/browser/ui/views/omnibox/omnibox_view_views.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views.cc View 1 2 3 4 5 6 7 8 5 chunks +26 lines, -22 lines 0 comments Download
M components/arc/ime/arc_ime_service.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -2 lines 0 comments Download
M components/arc/ime/arc_ime_service.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -3 lines 0 comments Download
M tools/gritsettings/resource_ids View 1 2 3 4 5 6 1 chunk +74 lines, -74 lines 0 comments Download
M ui/base/ime/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ui/base/ime/dummy_text_input_client.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M ui/base/ime/dummy_text_input_client.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -3 lines 0 comments Download
A ui/base/ime/text_edit_commands.h View 1 2 3 4 5 6 7 1 chunk +44 lines, -0 lines 0 comments Download
M ui/base/ime/text_input_client.h View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -8 lines 0 comments Download
M ui/base/ime/ui_base_ime.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 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 1 2 3 4 5 6 7 8 15 chunks +88 lines, -72 lines 0 comments Download
M ui/views/controls/prefix_selector.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/controls/prefix_selector.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -3 lines 0 comments Download
M ui/views/controls/textfield/textfield.h View 1 2 3 4 5 6 7 8 3 chunks +10 lines, -9 lines 0 comments Download
M ui/views/controls/textfield/textfield.cc View 1 2 3 4 5 6 7 8 16 chunks +205 lines, -165 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 51 (27 generated)
tapted
https://codereview.chromium.org/2027133002/diff/120001/ui/base/ime/text_input_client.h File ui/base/ime/text_input_client.h (right): https://codereview.chromium.org/2027133002/diff/120001/ui/base/ime/text_input_client.h#newcode17 ui/base/ime/text_input_client.h:17: #include "ui/events/text_edit_commands.h" nit: forward declare https://codereview.chromium.org/2027133002/diff/120001/ui/events/text_edit_commands.h File ui/events/text_edit_commands.h (right): ...
4 years, 6 months ago (2016-06-06 07:48:02 UTC) #9
karandeepb
PTAL Thanks. https://codereview.chromium.org/2027133002/diff/120001/ui/base/ime/text_input_client.h File ui/base/ime/text_input_client.h (right): https://codereview.chromium.org/2027133002/diff/120001/ui/base/ime/text_input_client.h#newcode17 ui/base/ime/text_input_client.h:17: #include "ui/events/text_edit_commands.h" On 2016/06/06 07:48:02, tapted wrote: ...
4 years, 6 months ago (2016-06-08 03:11:58 UTC) #12
karandeepb
PTAL msw@. Thanks.
4 years, 6 months ago (2016-06-09 10:53:53 UTC) #16
karandeepb
PTAL msw@. Thanks.
4 years, 6 months ago (2016-06-09 10:54:14 UTC) #18
msw
https://codereview.chromium.org/2027133002/diff/320001/ui/events/text_edit_commands.h File ui/events/text_edit_commands.h (right): https://codereview.chromium.org/2027133002/diff/320001/ui/events/text_edit_commands.h#newcode5 ui/events/text_edit_commands.h:5: #ifndef UI_EVENTS_TEXT_EDITING_COMMANDS_H_ Move this to ui/base/ime, ui/base/text, or ui/base, ...
4 years, 6 months ago (2016-06-10 00:48:51 UTC) #20
karandeepb
PTAL msw@. Thanks. https://codereview.chromium.org/2027133002/diff/320001/ui/events/text_edit_commands.h File ui/events/text_edit_commands.h (right): https://codereview.chromium.org/2027133002/diff/320001/ui/events/text_edit_commands.h#newcode5 ui/events/text_edit_commands.h:5: #ifndef UI_EVENTS_TEXT_EDITING_COMMANDS_H_ On 2016/06/10 00:48:51, msw ...
4 years, 6 months ago (2016-06-10 08:20:47 UTC) #22
karandeepb
So, ui/base/ime depends on ui/base which depends on ui/events. ui/events contains text_edit_command_aura_linux.cc which needs TextEditCommand ...
4 years, 6 months ago (2016-06-10 09:22:27 UTC) #24
msw
On 2016/06/10 09:22:27, karandeepb wrote: > So, ui/base/ime depends on ui/base which depends on ui/events. ...
4 years, 6 months ago (2016-06-10 16:36:03 UTC) #25
Elliot Glaysher
On 2016/06/10 16:36:03, msw wrote: > On 2016/06/10 09:22:27, karandeepb wrote: > > So, ui/base/ime ...
4 years, 6 months ago (2016-06-10 19:12:34 UTC) #26
msw
On 2016/06/10 19:12:34, Elliot Glaysher wrote: > I would say that it is unfortunate that ...
4 years, 6 months ago (2016-06-10 19:27:26 UTC) #27
karandeepb
On 2016/06/10 16:36:03, msw wrote: > On 2016/06/10 09:22:27, karandeepb wrote: > > So, ui/base/ime ...
4 years, 6 months ago (2016-06-15 06:21:59 UTC) #28
msw
lgtm, thanks!
4 years, 6 months ago (2016-06-15 17:11:21 UTC) #30
karandeepb
+sky for ui/base/ and ui/views/controls/prefix_selector.* review. +flackr for tools/gritsettings/resource_ids review. +jochen for components/ and content/ ...
4 years, 6 months ago (2016-06-15 23:55:42 UTC) #32
flackr
tools/gritsettings/resource_ids lgtm
4 years, 6 months ago (2016-06-16 08:23:09 UTC) #33
sky
https://codereview.chromium.org/2027133002/diff/380001/ui/views/controls/prefix_selector.h File ui/views/controls/prefix_selector.h (right): https://codereview.chromium.org/2027133002/diff/380001/ui/views/controls/prefix_selector.h#newcode58 ui/views/controls/prefix_selector.h:58: bool IsEditCommandEnabled(ui::TextEditCommand command) const override; Can you rename these? ...
4 years, 6 months ago (2016-06-16 17:00:37 UTC) #34
karandeepb
PTAL sky@. Thanks. https://codereview.chromium.org/2027133002/diff/380001/ui/views/controls/prefix_selector.h File ui/views/controls/prefix_selector.h (right): https://codereview.chromium.org/2027133002/diff/380001/ui/views/controls/prefix_selector.h#newcode58 ui/views/controls/prefix_selector.h:58: bool IsEditCommandEnabled(ui::TextEditCommand command) const override; On ...
4 years, 6 months ago (2016-06-17 02:39:03 UTC) #37
sky
LGTM
4 years, 6 months ago (2016-06-17 15:03:03 UTC) #38
karandeepb
ping jochen@ for components/ and content/ review.
4 years, 6 months ago (2016-06-20 00:06:28 UTC) #39
jochen (gone - plz use gerrit)
lgtm
4 years, 6 months ago (2016-06-20 11:34:49 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2027133002/420001
4 years, 6 months ago (2016-06-21 06:36:39 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/232625)
4 years, 6 months ago (2016-06-21 07:40:30 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2027133002/420001
4 years, 6 months ago (2016-06-21 07:43:10 UTC) #47
commit-bot: I haz the power
Committed patchset #9 (id:420001)
4 years, 6 months ago (2016-06-21 08:32:55 UTC) #49
commit-bot: I haz the power
4 years, 6 months ago (2016-06-21 08:34:46 UTC) #51
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/9f4772321729e25fa0ce1fe4248228be52bd28d3
Cr-Commit-Position: refs/heads/master@{#400921}

Powered by Google App Engine
This is Rietveld 408576698