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

Issue 2909703002: [CRD iOS] Preserve viewport state when toggling the soft keyboard (Closed)

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

Description

[CRD iOS] Preserve viewport state when toggling the soft keyboard Previously toggling the soft keyboard will always reset the viewport state. This should only be done when the view frame is undergoing significant changes, e.g. screen rotated. For now I just define "significant change" as the change of both of the surface dimensions, by doing so the viewport will not be reset when it's scrolled up to show temporary elements like software keyboard. BUG=714193 Review-Url: https://codereview.chromium.org/2909703002 Cr-Commit-Position: refs/heads/master@{#475656} Committed: https://chromium.googlesource.com/chromium/src/+/61bed118775724243545580086dc1186e6f66949

Patch Set 1 #

Patch Set 2 : Merge ToT #

Total comments: 4

Patch Set 3 : fix feedback #

Patch Set 4 : Merge ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -3 lines) Patch
M remoting/client/ui/desktop_viewport.h View 1 chunk +3 lines, -2 lines 0 comments Download
M remoting/client/ui/desktop_viewport.cc View 1 2 1 chunk +19 lines, -1 line 0 comments Download

Messages

Total messages: 25 (16 generated)
Yuwei
PTAL thanks!
3 years, 6 months ago (2017-05-26 18:59:20 UTC) #2
nicholss
https://codereview.chromium.org/2909703002/diff/20001/remoting/client/ui/desktop_viewport.cc File remoting/client/ui/desktop_viewport.cc (right): https://codereview.chromium.org/2909703002/diff/20001/remoting/client/ui/desktop_viewport.cc#newcode39 remoting/client/ui/desktop_viewport.cc:39: // preserve the viewport state in case the surface ...
3 years, 6 months ago (2017-05-26 20:12:50 UTC) #11
Yuwei
https://codereview.chromium.org/2909703002/diff/20001/remoting/client/ui/desktop_viewport.h File remoting/client/ui/desktop_viewport.h (right): https://codereview.chromium.org/2909703002/diff/20001/remoting/client/ui/desktop_viewport.h#newcode41 remoting/client/ui/desktop_viewport.h:41: // Sets the |surface_size_| and (re)initializes the viewport if ...
3 years, 6 months ago (2017-05-26 21:38:21 UTC) #12
nicholss
lgtm, I do think this is overfit for the problem but it works for now ...
3 years, 6 months ago (2017-05-30 16:38:43 UTC) #13
Yuwei
Thanks! https://codereview.chromium.org/2909703002/diff/20001/remoting/client/ui/desktop_viewport.cc File remoting/client/ui/desktop_viewport.cc (right): https://codereview.chromium.org/2909703002/diff/20001/remoting/client/ui/desktop_viewport.cc#newcode39 remoting/client/ui/desktop_viewport.cc:39: // preserve the viewport state in case the ...
3 years, 6 months ago (2017-05-30 19:27:09 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/2909703002/40001
3 years, 6 months ago (2017-05-30 19:27:57 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/279776) android_cronet on master.tryserver.chromium.android (JOB_FAILED, ...
3 years, 6 months ago (2017-05-30 19:48:07 UTC) #19
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/2909703002/60001
3 years, 6 months ago (2017-05-30 19:53:17 UTC) #22
commit-bot: I haz the power
3 years, 6 months ago (2017-05-30 20:26:11 UTC) #25
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/61bed118775724243545580086dc...

Powered by Google App Engine
This is Rietveld 408576698