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

Issue 329463002: MacViews: Implement text input. (Closed)

Created:
6 years, 6 months ago by Andre
Modified:
3 years, 5 months ago
Reviewers:
tapted, sky
CC:
chromium-reviews, tfarina, ben+views_chromium.org, tdanderson+views_chromium.org, mac-views-reviews_chromium.org
Visibility:
Public.

Description

MacViews: Implement text input. Implement text input for MacViews by making BridgedContentView conform to NSTextInputClient protocol. Keyboard events are sent to the system input method to be interpreted, and the resulting NSTextInputClient calls are translated and forwarded to the ui::TextInputClient of the widget's focused View. BUG=374077 TEST=BridgedNativeWidgetTest Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=279806

Patch Set 1 #

Total comments: 66

Patch Set 2 : Fixes for tapted #

Total comments: 13

Patch Set 3 : More changes for tapted. #

Total comments: 7

Patch Set 4 #

Patch Set 5 : Rebase. Fix FocusChangeListener #

Total comments: 1

Patch Set 6 : Rebase to master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+395 lines, -9 lines) Patch
M ui/views/cocoa/bridged_content_view.h View 1 2 2 chunks +10 lines, -1 line 0 comments Download
M ui/views/cocoa/bridged_content_view.mm View 1 2 3 4 5 3 chunks +134 lines, -0 lines 0 comments Download
M ui/views/cocoa/bridged_native_widget.h View 1 2 3 4 4 chunks +14 lines, -1 line 0 comments Download
M ui/views/cocoa/bridged_native_widget.mm View 1 2 3 4 4 chunks +31 lines, -5 lines 0 comments Download
M ui/views/cocoa/bridged_native_widget_unittest.mm View 1 2 3 4 7 chunks +204 lines, -2 lines 0 comments Download
M ui/views/widget/native_widget_mac.mm View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
tapted
https://codereview.chromium.org/329463002/diff/1/ui/views/cocoa/bridged_content_view.h File ui/views/cocoa/bridged_content_view.h (right): https://codereview.chromium.org/329463002/diff/1/ui/views/cocoa/bridged_content_view.h#newcode25 ui/views/cocoa/bridged_content_view.h:25: ui::TextInputClient* textInputClient_; This needs a comment, along with something ...
6 years, 6 months ago (2014-06-17 13:23:57 UTC) #1
Andre
https://codereview.chromium.org/329463002/diff/1/ui/views/cocoa/bridged_content_view.h File ui/views/cocoa/bridged_content_view.h (right): https://codereview.chromium.org/329463002/diff/1/ui/views/cocoa/bridged_content_view.h#newcode25 ui/views/cocoa/bridged_content_view.h:25: ui::TextInputClient* textInputClient_; On 2014/06/17 13:23:56, tapted wrote: > This ...
6 years, 6 months ago (2014-06-18 21:48:36 UTC) #2
tapted
lgtm with some nits. Some questions too, but I think it's ok as-is - at ...
6 years, 6 months ago (2014-06-19 01:29:16 UTC) #3
Andre
https://codereview.chromium.org/329463002/diff/1/ui/views/cocoa/bridged_content_view.mm File ui/views/cocoa/bridged_content_view.mm (right): https://codereview.chromium.org/329463002/diff/1/ui/views/cocoa/bridged_content_view.mm#newcode177 ui/views/cocoa/bridged_content_view.mm:177: if ([text isKindOfClass:[NSAttributedString class]]) On 2014/06/19 01:29:15, tapted wrote: ...
6 years, 6 months ago (2014-06-19 23:20:26 UTC) #4
Andre
https://codereview.chromium.org/329463002/diff/80001/ui/views/widget/native_widget_mac.h File ui/views/widget/native_widget_mac.h (left): https://codereview.chromium.org/329463002/diff/80001/ui/views/widget/native_widget_mac.h#oldcode20 ui/views/widget/native_widget_mac.h:20: protected: This looks to be unnecessarily protected. It matches ...
6 years, 6 months ago (2014-06-19 23:22:26 UTC) #5
tapted
lgtm - don't forget to expand the CL description https://codereview.chromium.org/329463002/diff/80001/ui/views/cocoa/bridged_content_view.mm File ui/views/cocoa/bridged_content_view.mm (right): https://codereview.chromium.org/329463002/diff/80001/ui/views/cocoa/bridged_content_view.mm#newcode24 ui/views/cocoa/bridged_content_view.mm:24: ...
6 years, 6 months ago (2014-06-20 00:40:59 UTC) #6
Andre
https://codereview.chromium.org/329463002/diff/80001/ui/views/cocoa/bridged_content_view.mm File ui/views/cocoa/bridged_content_view.mm (right): https://codereview.chromium.org/329463002/diff/80001/ui/views/cocoa/bridged_content_view.mm#newcode24 ui/views/cocoa/bridged_content_view.mm:24: @interface BridgedContentView () On 2014/06/20 00:40:59, tapted wrote: > ...
6 years, 6 months ago (2014-06-20 01:00:39 UTC) #7
Andre
+sky for OWNERS
6 years, 6 months ago (2014-06-20 01:01:03 UTC) #8
sky
LGTM
6 years, 6 months ago (2014-06-20 14:52:34 UTC) #9
Andre
Uploaded patch #5 with a fix for focus change listener registration. The focus manager is ...
6 years, 6 months ago (2014-06-24 23:15:55 UTC) #10
tapted
slgtm https://codereview.chromium.org/329463002/diff/120001/ui/views/cocoa/bridged_content_view.mm File ui/views/cocoa/bridged_content_view.mm (right): https://codereview.chromium.org/329463002/diff/120001/ui/views/cocoa/bridged_content_view.mm#newcode105 ui/views/cocoa/bridged_content_view.mm:105: - (void)keyUp:(NSEvent*)theEvent { note you'll need to rebase ...
6 years, 6 months ago (2014-06-25 10:38:08 UTC) #11
Andre
The CQ bit was checked by andresantoso@chromium.org
6 years, 6 months ago (2014-06-25 17:44:07 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/andresantoso@chromium.org/329463002/140001
6 years, 6 months ago (2014-06-25 17:44:58 UTC) #13
commit-bot: I haz the power
6 years, 6 months ago (2014-06-25 20:46:30 UTC) #14
Message was sent while issue was closed.
Change committed as 279806

Powered by Google App Engine
This is Rietveld 408576698