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

Issue 1531213002: Mac: Implement firstRectForCharacterRange:actualRange in BridgedContentView. (Closed)

Created:
5 years ago by karandeepb
Modified:
4 years, 11 months ago
Reviewers:
tapted, Shu Chen
CC:
chromium-reviews, tfarina, 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

Mac: Implement firstRectForCharacterRange:actualRange in BridgedContentView. This CL implements firstRectForCharacterRange:actualRange in BridgedContentView. This fixes bugs related to IME positioning when MacViews is enabled. BUG=462478 TEST=Enable chrome://flags/#mac-views-dialogs. Click on the Add bookmark(Star) icon on browser address bar. Use an IME to write text in the "Name" textfield. Verify that the IME candidate list is positioned correctly. Committed: https://crrev.com/c302121e33acc8115774892a65b82b41e89600cc Cr-Commit-Position: refs/heads/master@{#368843}

Patch Set 1 #

Patch Set 2 : Removed reduntant statement. #

Total comments: 36

Patch Set 3 : Handled review comments. #

Patch Set 4 : Corrected comment formatting #

Total comments: 48

Patch Set 5 : Addressed review comments and made tests concise. #

Total comments: 34

Patch Set 6 : Addressed review comments. #

Total comments: 9

Patch Set 7 : Addressed review comments #

Total comments: 11

Patch Set 8 : Handled review comments #

Patch Set 9 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+236 lines, -3 lines) Patch
M ui/views/cocoa/bridged_content_view.mm View 1 2 3 4 5 6 7 8 3 chunks +94 lines, -3 lines 0 comments Download
M ui/views/cocoa/bridged_native_widget_unittest.mm View 1 2 3 4 5 6 7 8 5 chunks +142 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (8 generated)
karandeepb
PTAL Trent. Thanks!
5 years ago (2015-12-17 06:16:01 UTC) #3
tapted
first pass (I've only had a quick look at the tests) https://codereview.chromium.org/1531213002/diff/20001/ui/views/cocoa/bridged_content_view.mm File ui/views/cocoa/bridged_content_view.mm (right): ...
5 years ago (2015-12-17 08:42:20 UTC) #4
karandeepb
PTAL Trent. Thanks. https://codereview.chromium.org/1531213002/diff/20001/ui/views/cocoa/bridged_content_view.mm File ui/views/cocoa/bridged_content_view.mm (right): https://codereview.chromium.org/1531213002/diff/20001/ui/views/cocoa/bridged_content_view.mm#newcode60 ui/views/cocoa/bridged_content_view.mm:60: const ui::TextInputClient* textInputClient_, On 2015/12/17 08:42:20, ...
5 years ago (2015-12-18 09:15:06 UTC) #5
tapted
Yeah this IME/composition range stuff is still pretty unfamiliar to me. We should get one ...
5 years ago (2015-12-22 02:33:58 UTC) #6
karandeepb
PTAL Trent. I have updated the tests to make them more concise and clearer. Have ...
4 years, 12 months ago (2015-12-29 07:21:16 UTC) #7
karandeepb
shuchen@ - Can you please look at this CL since we are not that familiar ...
4 years, 12 months ago (2015-12-29 07:23:44 UTC) #9
tapted
https://codereview.chromium.org/1531213002/diff/80001/ui/views/cocoa/bridged_content_view.mm File ui/views/cocoa/bridged_content_view.mm (right): https://codereview.chromium.org/1531213002/diff/80001/ui/views/cocoa/bridged_content_view.mm#newcode60 ui/views/cocoa/bridged_content_view.mm:60: // Helper function for firstRectForCharacterRange:actualRange defined below. This comment ...
4 years, 11 months ago (2015-12-30 06:48:53 UTC) #10
karandeepb
PTAL Trent. Thanks. Also, let me know if I should test this change with any ...
4 years, 11 months ago (2015-12-31 02:42:44 UTC) #11
tapted
lgtm % nits. However, we should wait for an IME expert to weigh in before ...
4 years, 11 months ago (2016-01-04 02:28:10 UTC) #12
karandeepb
https://codereview.chromium.org/1531213002/diff/80001/ui/views/cocoa/bridged_native_widget_unittest.mm File ui/views/cocoa/bridged_native_widget_unittest.mm (right): https://codereview.chromium.org/1531213002/diff/80001/ui/views/cocoa/bridged_native_widget_unittest.mm#newcode561 ui/views/cocoa/bridged_native_widget_unittest.mm:561: const base::string16 kTestString = base::ASCIIToUTF16("test_str"); On 2016/01/04 02:28:10, tapted ...
4 years, 11 months ago (2016-01-04 04:33:56 UTC) #14
Shu Chen
Sorry for late review. I just came back from vacation and swamped by high priority ...
4 years, 11 months ago (2016-01-06 08:55:41 UTC) #15
karandeepb
On 2016/01/06 08:55:41, Shu Chen wrote: > Sorry for late review. I just came back ...
4 years, 11 months ago (2016-01-06 11:43:27 UTC) #16
Shu Chen
https://codereview.chromium.org/1531213002/diff/140001/ui/views/cocoa/bridged_content_view.mm File ui/views/cocoa/bridged_content_view.mm (right): https://codereview.chromium.org/1531213002/diff/140001/ui/views/cocoa/bridged_content_view.mm#newcode80 ui/views/cocoa/bridged_content_view.mm:80: default_rect.set_width(0); Why zero? https://codereview.chromium.org/1531213002/diff/140001/ui/views/cocoa/bridged_content_view.mm#newcode90 ui/views/cocoa/bridged_content_view.mm:90: return default_rect; Should return ...
4 years, 11 months ago (2016-01-08 04:18:53 UTC) #17
karandeepb
PTAL Shu Chen. Thanks. https://codereview.chromium.org/1531213002/diff/140001/ui/views/cocoa/bridged_content_view.mm File ui/views/cocoa/bridged_content_view.mm (right): https://codereview.chromium.org/1531213002/diff/140001/ui/views/cocoa/bridged_content_view.mm#newcode80 ui/views/cocoa/bridged_content_view.mm:80: default_rect.set_width(0); On 2016/01/08 04:18:53, Shu ...
4 years, 11 months ago (2016-01-12 05:43:52 UTC) #18
Shu Chen
https://codereview.chromium.org/1531213002/diff/140001/ui/views/cocoa/bridged_content_view.mm File ui/views/cocoa/bridged_content_view.mm (right): https://codereview.chromium.org/1531213002/diff/140001/ui/views/cocoa/bridged_content_view.mm#newcode80 ui/views/cocoa/bridged_content_view.mm:80: default_rect.set_width(0); On 2016/01/12 05:43:52, karandeepb wrote: > On 2016/01/08 ...
4 years, 11 months ago (2016-01-12 05:54:35 UTC) #19
Shu Chen
lgtm
4 years, 11 months ago (2016-01-12 05:54:48 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1531213002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1531213002/180001
4 years, 11 months ago (2016-01-12 10:01:34 UTC) #23
commit-bot: I haz the power
Committed patchset #9 (id:180001)
4 years, 11 months ago (2016-01-12 10:06:10 UTC) #25
commit-bot: I haz the power
4 years, 11 months ago (2016-01-12 10:07:02 UTC) #27
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/c302121e33acc8115774892a65b82b41e89600cc
Cr-Commit-Position: refs/heads/master@{#368843}

Powered by Google App Engine
This is Rietveld 408576698