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

Issue 1999773002: views::Textfield: Implement transpose editing command. (Closed)

Created:
4 years, 7 months ago by karandeepb
Modified:
4 years, 5 months ago
Reviewers:
tapted, sky, msw
CC:
chromium-reviews, tfarina, James Su, shuchen+watch_chromium.org, yusukes+watch_chromium.org, nona+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

views::Textfield: Implement transpose editing command. This CL implements the transpose editing command for views::Textfield. It is only enabled on MacViews. TEST=Enable MacViews. Give focus to a MacViews textfield. Verify pressing Ctrl+T transposes the text around the insertion point. BUG=586985 Committed: https://crrev.com/30f577b8cd883fbdf8c278a5534ff578e0ab8f1a Cr-Commit-Position: refs/heads/master@{#403086}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rebase on 10_9 test fix patch. #

Total comments: 23

Patch Set 3 : Address review comments. #

Total comments: 2

Patch Set 4 : Rebase. #

Total comments: 2

Patch Set 5 : Address review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -3 lines) Patch
M ui/base/ime/linux/text_edit_command_auralinux.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ui/base/ime/text_edit_commands.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/cocoa/bridged_content_view.mm View 1 chunk +9 lines, -0 lines 0 comments Download
M ui/views/cocoa/bridged_native_widget_unittest.mm View 1 3 2 chunks +7 lines, -1 line 0 comments Download
M ui/views/controls/textfield/textfield.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M ui/views/controls/textfield/textfield_model.h View 1 chunk +5 lines, -0 lines 0 comments Download
M ui/views/controls/textfield/textfield_model.cc View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
M ui/views/controls/textfield/textfield_model_unittest.cc View 1 2 3 4 1 chunk +64 lines, -0 lines 0 comments Download
M ui/views/controls/textfield/textfield_unittest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (9 generated)
karandeepb
PTAL Trent. Thanks. https://codereview.chromium.org/1999773002/diff/40001/ui/views/cocoa/bridged_content_view.mm File ui/views/cocoa/bridged_content_view.mm (right): https://codereview.chromium.org/1999773002/diff/40001/ui/views/cocoa/bridged_content_view.mm#newcode985 ui/views/cocoa/bridged_content_view.mm:985: domCode:ui::DomCode::US_T I am not sure if ...
4 years, 5 months ago (2016-06-28 03:26:27 UTC) #5
tapted
https://codereview.chromium.org/1999773002/diff/60001/ui/views/controls/textfield/textfield_model.cc File ui/views/controls/textfield/textfield_model.cc (right): https://codereview.chromium.org/1999773002/diff/60001/ui/views/controls/textfield/textfield_model.cc#newcode539 ui/views/controls/textfield/textfield_model.cc:539: // If we are at the end of the ...
4 years, 5 months ago (2016-06-28 04:52:32 UTC) #6
karandeepb
PTAL Trent. https://codereview.chromium.org/1999773002/diff/60001/ui/views/controls/textfield/textfield_model.cc File ui/views/controls/textfield/textfield_model.cc (right): https://codereview.chromium.org/1999773002/diff/60001/ui/views/controls/textfield/textfield_model.cc#newcode539 ui/views/controls/textfield/textfield_model.cc:539: // If we are at the end ...
4 years, 5 months ago (2016-06-29 05:44:38 UTC) #7
tapted
lgtm https://codereview.chromium.org/1999773002/diff/60001/ui/views/controls/textfield/textfield_model.cc File ui/views/controls/textfield/textfield_model.cc (right): https://codereview.chromium.org/1999773002/diff/60001/ui/views/controls/textfield/textfield_model.cc#newcode554 ui/views/controls/textfield/textfield_model.cc:554: text.substr(cur - prev) + text.substr(0, cur - prev); ...
4 years, 5 months ago (2016-06-29 07:06:15 UTC) #8
karandeepb
https://codereview.chromium.org/1999773002/diff/80001/ui/views/cocoa/bridged_native_widget_unittest.mm File ui/views/cocoa/bridged_native_widget_unittest.mm (right): https://codereview.chromium.org/1999773002/diff/80001/ui/views/cocoa/bridged_native_widget_unittest.mm#newcode368 ui/views/cocoa/bridged_native_widget_unittest.mm:368: [[NSTextView alloc] initWithFrame:NSMakeRect(0, 0, 100, 100)]); On 2016/06/29 07:06:14, ...
4 years, 5 months ago (2016-06-29 07:33:45 UTC) #9
karandeepb
+msw for ui/views/controls/textfield review. +sky for ui/base review. @msw: Is the transpose command needed on ...
4 years, 5 months ago (2016-06-29 07:36:12 UTC) #11
sky
LGTM
4 years, 5 months ago (2016-06-29 15:21:42 UTC) #12
msw
nice model test; lgtm with a minor nit. https://codereview.chromium.org/1999773002/diff/100001/ui/views/controls/textfield/textfield_model_unittest.cc File ui/views/controls/textfield/textfield_model_unittest.cc (right): https://codereview.chromium.org/1999773002/diff/100001/ui/views/controls/textfield/textfield_model_unittest.cc#newcode1621 ui/views/controls/textfield/textfield_model_unittest.cc:1621: std::vector<TestCase> ...
4 years, 5 months ago (2016-06-29 17:16:45 UTC) #13
karandeepb
https://codereview.chromium.org/1999773002/diff/100001/ui/views/controls/textfield/textfield_model_unittest.cc File ui/views/controls/textfield/textfield_model_unittest.cc (right): https://codereview.chromium.org/1999773002/diff/100001/ui/views/controls/textfield/textfield_model_unittest.cc#newcode1621 ui/views/controls/textfield/textfield_model_unittest.cc:1621: std::vector<TestCase> emoji_tests = { On 2016/06/29 17:16:45, msw wrote: ...
4 years, 5 months ago (2016-06-30 03:03:39 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/1999773002/120001
4 years, 5 months ago (2016-06-30 03:04:09 UTC) #17
commit-bot: I haz the power
Committed patchset #5 (id:120001)
4 years, 5 months ago (2016-06-30 04:04:49 UTC) #19
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-06-30 04:04:53 UTC) #20
commit-bot: I haz the power
4 years, 5 months ago (2016-06-30 04:06:54 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/30f577b8cd883fbdf8c278a5534ff578e0ab8f1a
Cr-Commit-Position: refs/heads/master@{#403086}

Powered by Google App Engine
This is Rietveld 408576698