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

Issue 2869303003: Adding hooks to add the keyboard on screen and be able to dismiss it. (Closed)

Created:
3 years, 7 months ago by nicholss
Modified:
3 years, 7 months ago
Reviewers:
Yuwei
CC:
chromium-reviews, ios-reviews_chromium.org, chromoting-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Adding hooks to add the keyboard on screen and be able to dismiss it. This CL does not add keyboard support yet. Just keyboard support in the UI. Adding keyboard maping file and connected to host popup menu. Review-Url: https://codereview.chromium.org/2869303003 Cr-Commit-Position: refs/heads/master@{#471509} Committed: https://chromium.googlesource.com/chromium/src/+/bec93af7a19f8e40834ce58c953090a1ab951d3d

Patch Set 1 #

Patch Set 2 : Moving keyboard to new location for iOS. #

Patch Set 3 : Resize the view on keyboard show. #

Patch Set 4 : Minor cleanup. Ready for review. #

Patch Set 5 : Watch the size of the incoming keyboard and react correctly. #

Total comments: 4

Patch Set 6 : Adding kKeyboardAnimationTime. #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+415 lines, -10 lines) Patch
M remoting/client/BUILD.gn View 1 chunk +4 lines, -0 lines 0 comments Download
A remoting/client/native_device_keymap_ios.cc View 1 2 3 1 chunk +217 lines, -0 lines 0 comments Download
M remoting/ios/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M remoting/ios/app/host_view_controller.mm View 1 2 3 4 5 4 chunks +103 lines, -6 lines 6 comments Download
M remoting/ios/client_gestures.h View 2 chunks +0 lines, -4 lines 0 comments Download
M remoting/ios/client_gestures.mm View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
A remoting/ios/client_keyboard.h View 1 2 3 4 1 chunk +21 lines, -0 lines 0 comments Download
A remoting/ios/client_keyboard.mm View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
M remoting/ios/session/remoting_client.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M remoting/ios/session/remoting_client.mm View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 22 (7 generated)
Yuwei
Here are few things, I'm still thinking about solutions for some of them: * keyboardWillShow/keyboardWillHide ...
3 years, 7 months ago (2017-05-11 20:53:02 UTC) #2
Yuwei
On 2017/05/11 20:53:02, Yuwei wrote: > Here are few things, I'm still thinking about solutions ...
3 years, 7 months ago (2017-05-11 21:08:49 UTC) #3
nicholss
On 2017/05/11 20:53:02, Yuwei wrote: > Here are few things, I'm still thinking about solutions ...
3 years, 7 months ago (2017-05-12 15:00:04 UTC) #4
nicholss
On 2017/05/12 15:00:04, nicholss wrote: > On 2017/05/11 20:53:02, Yuwei wrote: > > Here are ...
3 years, 7 months ago (2017-05-12 17:51:56 UTC) #5
chromium-reviews
Or when it's third party keyboard, like GBoard. <nicholss@chromium.org>于2017年5月12日 周五上午10:51写道: > On 2017/05/12 15:00:04, nicholss ...
3 years, 7 months ago (2017-05-12 18:02:50 UTC) #6
nicholss
On 2017/05/12 18:02:50, chromium-reviews wrote: > Or when it's third party keyboard, like GBoard. GBoard ...
3 years, 7 months ago (2017-05-12 18:37:54 UTC) #7
Yuwei
LGTM with nits https://codereview.chromium.org/2869303003/diff/70001/remoting/ios/app/host_view_controller.mm File remoting/ios/app/host_view_controller.mm (right): https://codereview.chromium.org/2869303003/diff/70001/remoting/ios/app/host_view_controller.mm#newcode154 remoting/ios/app/host_view_controller.mm:154: [UIView animateWithDuration:0.3 Define the magic number ...
3 years, 7 months ago (2017-05-12 19:36:36 UTC) #8
nicholss
Thanks! https://codereview.chromium.org/2869303003/diff/70001/remoting/ios/app/host_view_controller.mm File remoting/ios/app/host_view_controller.mm (right): https://codereview.chromium.org/2869303003/diff/70001/remoting/ios/app/host_view_controller.mm#newcode154 remoting/ios/app/host_view_controller.mm:154: [UIView animateWithDuration:0.3 On 2017/05/12 19:36:36, Yuwei wrote: > ...
3 years, 7 months ago (2017-05-12 21:46:43 UTC) #9
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/2869303003/90001
3 years, 7 months ago (2017-05-12 21:47:54 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/452649)
3 years, 7 months ago (2017-05-12 22:57:53 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/2869303003/90001
3 years, 7 months ago (2017-05-12 23:04:32 UTC) #16
commit-bot: I haz the power
Committed patchset #6 (id:90001) as https://chromium.googlesource.com/chromium/src/+/bec93af7a19f8e40834ce58c953090a1ab951d3d
3 years, 7 months ago (2017-05-13 00:37:18 UTC) #19
Yuwei
Spotted bugs after you checked it in :P Should be trivial to fix though https://codereview.chromium.org/2869303003/diff/90001/remoting/ios/app/host_view_controller.mm ...
3 years, 7 months ago (2017-05-13 01:58:57 UTC) #20
nicholss
will update the next cl with these changes. https://codereview.chromium.org/2869303003/diff/90001/remoting/ios/app/host_view_controller.mm File remoting/ios/app/host_view_controller.mm (right): https://codereview.chromium.org/2869303003/diff/90001/remoting/ios/app/host_view_controller.mm#newcode155 remoting/ios/app/host_view_controller.mm:155: [UIView ...
3 years, 7 months ago (2017-05-15 15:34:14 UTC) #21
Yuwei
3 years, 7 months ago (2017-05-15 18:20:53 UTC) #22
Message was sent while issue was closed.
https://codereview.chromium.org/2869303003/diff/90001/remoting/ios/app/host_v...
File remoting/ios/app/host_view_controller.mm (right):

https://codereview.chromium.org/2869303003/diff/90001/remoting/ios/app/host_v...
remoting/ios/app/host_view_controller.mm:158: f.size.height += deltaHeight;
On 2017/05/15 15:34:13, nicholss wrote:
> On 2017/05/13 01:58:57, Yuwei wrote:
> > Should be -=
> 
> Delta can be negative. So I think the math works out.

I think the problem here is this is the delta of the keyboard size rather than
the delta of the view size.

Powered by Google App Engine
This is Rietveld 408576698