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

Issue 1908006: [Mac]Refactor input method related code. (Closed)

Created:
10 years, 7 months ago by James Su
Modified:
9 years, 7 months ago
CC:
chromium-reviews, jam+cc_chromium.org, ben+cc_chromium.org, John Grabowski, darin-cc_chromium.org, brettw-cc_chromium.org, pam+watch_chromium.org
Visibility:
Public.

Description

[Mac]Refactor input method related code. BUG=30670 Cannot input any characters after typing CTRL+H on IME BUG=33824 Shortcut key Ctrl+K in Japanese IME reset cursor position to end of the string BUG=42690 first ime keydown has the wrong keycode on Mac BUG=43087 1st time type CJK character with IME in any text input field of websites,1st character is always deleted. BUG=43454 When converting a Hangul to Chinese character, a new line is inserted before the character to convert. TEST=See bug reports. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=46856

Patch Set 1 #

Patch Set 2 : Remove unnecessary lines. #

Patch Set 3 : Fix -selectedRange: and -markedRange: #

Total comments: 25

Patch Set 4 : Update CL according to review comments. #

Total comments: 11

Patch Set 5 : Update CL according to review feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -184 lines) Patch
M chrome/browser/renderer_host/render_widget_host_view_mac.h View 1 2 3 4 4 chunks +49 lines, -53 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 19 chunks +151 lines, -131 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
James Su
10 years, 7 months ago (2010-05-05 05:23:24 UTC) #1
James Su
Hi all, Please kindly help review this CL. It'll be best if it can be ...
10 years, 7 months ago (2010-05-05 18:01:19 UTC) #2
Peter Kasting
I'm not really capable of reviewing this -- ObjC, IMEs, and the RenderWidgetHostView are all ...
10 years, 7 months ago (2010-05-05 18:03:05 UTC) #3
Avi (use Gerrit)
On 2010/05/05 18:03:05, Peter Kasting wrote: > I'm not really capable of reviewing this -- ...
10 years, 7 months ago (2010-05-05 18:09:10 UTC) #4
Avi (use Gerrit)
The only thing that jumped out at me was a typo. I'm really not sure ...
10 years, 7 months ago (2010-05-05 18:12:25 UTC) #5
James Su
On 2010/05/05 18:09:10, Avi wrote: > On 2010/05/05 18:03:05, Peter Kasting wrote: > > I'm ...
10 years, 7 months ago (2010-05-05 18:13:55 UTC) #6
James Su
Let me explain the motivation of this fix: According to http://www.w3.org/TR/DOM-Level-3-Events/#keyset, when using an input ...
10 years, 7 months ago (2010-05-05 18:27:23 UTC) #7
Scott Hess - ex-Googler
Just a bunch of nits, I'm still trying to wrap my head around what's going ...
10 years, 7 months ago (2010-05-05 19:48:27 UTC) #8
James Su
http://codereview.chromium.org/1908006/diff/6001/1003 File chrome/browser/renderer_host/render_widget_host_view_mac.h (left): http://codereview.chromium.org/1908006/diff/6001/1003#oldcode240 chrome/browser/renderer_host/render_widget_host_view_mac.h:240: int im_modifiers_; On 2010/05/05 19:48:28, shess wrote: > Where ...
10 years, 7 months ago (2010-05-05 21:27:38 UTC) #9
Hironori Bono
Unfortunately, I cannot evaluate this change anytime soon because I cannot get access to my ...
10 years, 7 months ago (2010-05-06 00:43:45 UTC) #10
James Su
NSTextInputClient protocol is only available after 10.5. I'm wondering if we still support older system? ...
10 years, 7 months ago (2010-05-06 01:01:08 UTC) #11
Avi (use Gerrit)
On 2010/05/06 01:01:08, James Su wrote: > NSTextInputClient protocol is only available after 10.5. I'm ...
10 years, 7 months ago (2010-05-06 14:16:12 UTC) #12
James Su
Seems that this CL can fix more issues than I expected. Regards James Su
10 years, 7 months ago (2010-05-06 23:05:51 UTC) #13
Scott Hess - ex-Googler
I remain incapable of giving you a confident LGTM, I just do not understand what ...
10 years, 7 months ago (2010-05-07 00:13:04 UTC) #14
James Su
http://codereview.chromium.org/1908006/diff/15001/16001 File chrome/browser/renderer_host/render_widget_host_view_mac.h (right): http://codereview.chromium.org/1908006/diff/15001/16001#newcode120 chrome/browser/renderer_host/render_widget_host_view_mac.h:120: // Cancel onging composition (abandon the marked text). On ...
10 years, 7 months ago (2010-05-07 17:02:36 UTC) #15
Scott Hess - ex-Googler
http://codereview.chromium.org/1908006/diff/15001/16002 File chrome/browser/renderer_host/render_widget_host_view_mac.mm (right): http://codereview.chromium.org/1908006/diff/15001/16002#newcode1181 chrome/browser/renderer_host/render_widget_host_view_mac.mm:1181: renderWidgetHostView_->render_widget_host_->ImeSetInputMode(true); On 2010/05/07 17:02:37, James Su wrote: > On ...
10 years, 7 months ago (2010-05-07 17:09:31 UTC) #16
James Su
On 2010/05/07 17:09:31, shess wrote: > http://codereview.chromium.org/1908006/diff/15001/16002 > File chrome/browser/renderer_host/render_widget_host_view_mac.mm (right): > > http://codereview.chromium.org/1908006/diff/15001/16002#newcode1181 > ...
10 years, 7 months ago (2010-05-07 21:14:05 UTC) #17
Scott Hess - ex-Googler
I'm not entirely sure that answers my point, because it would probably be easier on ...
10 years, 7 months ago (2010-05-07 21:18:30 UTC) #18
James Su
On 2010/05/07 21:18:30, shess wrote: > I'm not entirely sure that answers my point, because ...
10 years, 7 months ago (2010-05-07 22:02:42 UTC) #19
James Su
10 years, 7 months ago (2010-05-10 20:56:47 UTC) #20
In order to catch up with the release schedule of M5. I landed this CL on trunk
today, so that it can be included in this week's dev channel release and baked
for enough time.

Please continue to review this CL and I'll fix upcoming issues in new CLs.

Thanks
James Su

Powered by Google App Engine
This is Rietveld 408576698