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

Issue 2251843002: Add window property for restore bounds when virtual keyboard is enabled.

Created:
4 years, 4 months ago by hariank
Modified:
4 years, 4 months ago
Reviewers:
oshima, sky
CC:
chromium-reviews, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add window property for restore bounds when virtual keyboard is enabled. Added the kVirtualKeyboardNewBoundsKey aura::Window property which stores the restore bounds of the window when it is moved by the virtual keyboard. Required for future changes to virtual keyboard behavior. Also added a method to access Rect window properties from WmWindow through WmWindowAura. BUG=624521

Patch Set 1 #

Total comments: 9

Patch Set 2 : Add window properties for changed bounds when virtual keyboard is enabled. #

Total comments: 1

Patch Set 3 : Remove WM property #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -0 lines) Patch
M ash/aura/wm_window_aura.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ash/aura/wm_window_aura.cc View 1 2 1 chunk +4 lines, -0 lines 1 comment Download
M ash/common/wm_window.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ash/mus/bridge/wm_window_mus.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/mus/bridge/wm_window_mus.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M ui/aura/client/aura_constants.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M ui/aura/client/aura_constants.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (18 generated)
hariank
Please review my CL. Note that this is a precursor CL for new virtual keyboard ...
4 years, 4 months ago (2016-08-16 21:08:58 UTC) #3
oshima
https://codereview.chromium.org/2251843002/diff/1/ui/aura/client/aura_constants.h File ui/aura/client/aura_constants.h (right): https://codereview.chromium.org/2251843002/diff/1/ui/aura/client/aura_constants.h#newcode60 ui/aura/client/aura_constants.h:60: AURA_EXPORT extern const WindowProperty<gfx::Rect*>* const kVKNewBoundsKey; We need some ...
4 years, 4 months ago (2016-08-16 22:58:11 UTC) #6
oshima
https://codereview.chromium.org/2251843002/diff/1/ash/common/wm_window.h File ash/common/wm_window.h (right): https://codereview.chromium.org/2251843002/diff/1/ash/common/wm_window.h#newcode16 ash/common/wm_window.h:16: #include "ui/gfx/geometry/rect.h" use forward declaration. https://codereview.chromium.org/2251843002/diff/1/ash/mus/bridge/wm_window_mus.cc File ash/mus/bridge/wm_window_mus.cc (right): ...
4 years, 4 months ago (2016-08-16 23:14:02 UTC) #9
hariank
https://codereview.chromium.org/2251843002/diff/1/ash/common/wm_window.h File ash/common/wm_window.h (right): https://codereview.chromium.org/2251843002/diff/1/ash/common/wm_window.h#newcode16 ash/common/wm_window.h:16: #include "ui/gfx/geometry/rect.h" On 2016/08/16 23:14:02, oshima wrote: > use ...
4 years, 4 months ago (2016-08-16 23:35:06 UTC) #10
sky
https://codereview.chromium.org/2251843002/diff/1/ui/aura/client/aura_constants.h File ui/aura/client/aura_constants.h (right): https://codereview.chromium.org/2251843002/diff/1/ui/aura/client/aura_constants.h#newcode60 ui/aura/client/aura_constants.h:60: AURA_EXPORT extern const WindowProperty<gfx::Rect*>* const kVKNewBoundsKey; On 2016/08/16 22:58:11, ...
4 years, 4 months ago (2016-08-16 23:37:19 UTC) #13
oshima
https://codereview.chromium.org/2251843002/diff/1/ui/aura/client/aura_constants.h File ui/aura/client/aura_constants.h (right): https://codereview.chromium.org/2251843002/diff/1/ui/aura/client/aura_constants.h#newcode60 ui/aura/client/aura_constants.h:60: AURA_EXPORT extern const WindowProperty<gfx::Rect*>* const kVKNewBoundsKey; On 2016/08/16 23:37:19, ...
4 years, 4 months ago (2016-08-17 00:57:05 UTC) #16
sky
https://codereview.chromium.org/2251843002/diff/20001/ash/aura/wm_window_aura.cc File ash/aura/wm_window_aura.cc (right): https://codereview.chromium.org/2251843002/diff/20001/ash/aura/wm_window_aura.cc#newcode311 ash/aura/wm_window_aura.cc:311: return new gfx::Rect(); This leaks. Can you return null?
4 years, 4 months ago (2016-08-17 15:11:50 UTC) #17
sky
On Tue, Aug 16, 2016 at 5:57 PM, <oshima@chromium.org> wrote: > > https://codereview.chromium.org/2251843002/diff/1/ui/aura/client/aura_constants.h > File ...
4 years, 4 months ago (2016-08-17 15:14:05 UTC) #18
hariank
On 2016/08/17 15:14:05, sky wrote: > On Tue, Aug 16, 2016 at 5:57 PM, <mailto:oshima@chromium.org> ...
4 years, 4 months ago (2016-08-17 17:55:15 UTC) #19
sky
Where is the override for EnsureCaretInRect that does the move? -Scott On Wed, Aug 17, ...
4 years, 4 months ago (2016-08-17 19:34:48 UTC) #20
hariank
On 2016/08/17 19:34:48, sky wrote: > Where is the override for EnsureCaretInRect that does the ...
4 years, 4 months ago (2016-08-17 22:53:46 UTC) #21
sky
I briefly looked at https://codereview.chromium.org/2240353002 . AFAICT WindowState doesn't really do anything with the vkbounds. ...
4 years, 4 months ago (2016-08-17 23:38:19 UTC) #22
sky
4 years, 4 months ago (2016-08-18 22:52:17 UTC) #31
https://codereview.chromium.org/2251843002/diff/40001/ash/aura/wm_window_aura.cc
File ash/aura/wm_window_aura.cc (right):

https://codereview.chromium.org/2251843002/diff/40001/ash/aura/wm_window_aura...
ash/aura/wm_window_aura.cc:307: return new gfx::Rect();
How come you're not getting the property from the window?

Powered by Google App Engine
This is Rietveld 408576698