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

Issue 7058046: Adjust virtual keyboard size base on input method candidates. (Closed)

Created:
9 years, 6 months ago by Peng
Modified:
9 years, 5 months ago
CC:
chromium-reviews, Erik does not do reviews, jam, joi+watch-content_chromium.org, Aaron Boodman, arv (Not doing code reviews), pam+watch_chromium.org, Rick Byers, anicolao
Visibility:
Public.

Description

Adjust virtual keyboard size base on input method candidates. Known issue: Because we use javascript to show/hide candidates and re-size the virtual keyboard container, so it is difficult to make them happen at same time. When we hide the candidates and shrink the keyboard container, you may see two steps: 1. Candidates are hidden and keyboard jumps up. 2. The container is shrank. Solution: We plan to make virtual keyboard as a toplevel window instead of a child view. It will overlay the browser. And we will make candidates always visible in html and use SetBounds (0, -height_of_candidates, w, h) to hide it. BUG=None TEST=Manually Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=88605

Patch Set 1 : Update #

Total comments: 12

Patch Set 2 : Update #

Patch Set 3 : Update #

Total comments: 4

Patch Set 4 : review fix #

Total comments: 4

Patch Set 5 : review fix #

Patch Set 6 : Fix a typo #

Patch Set 7 : Rebase on trunk #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -22 lines) Patch
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/extension_input_api.h View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_input_api.cc View 1 2 3 2 chunks +20 lines, -0 lines 0 comments Download
M chrome/browser/resources/keyboard/ime.js View 1 2 3 4 5 6 3 chunks +22 lines, -5 lines 0 comments Download
M chrome/browser/resources/keyboard/main.css View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/keyboard/main.js View 1 2 3 4 5 6 5 chunks +20 lines, -10 lines 0 comments Download
M chrome/browser/ui/touch/frame/touch_browser_frame_view.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/touch/frame/touch_browser_frame_view.cc View 1 2 3 4 5 6 8 chunks +22 lines, -7 lines 0 comments Download
M chrome/common/extensions/api/extension_api.json View 1 2 3 4 5 6 1 chunk +19 lines, -0 lines 0 comments Download
M content/common/notification_type.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Peng
9 years, 6 months ago (2011-06-03 17:17:36 UTC) #1
bryeung
http://codereview.chromium.org/7058046/diff/13/chrome/browser/resources/keyboard/ime.js File chrome/browser/resources/keyboard/ime.js (right): http://codereview.chromium.org/7058046/diff/13/chrome/browser/resources/keyboard/ime.js#newcode183 chrome/browser/resources/keyboard/ime.js:183: var should_visible = maybe just visible or visible_now? http://codereview.chromium.org/7058046/diff/13/chrome/browser/resources/keyboard/ime.js#newcode194 ...
9 years, 6 months ago (2011-06-03 19:14:52 UTC) #2
Peng
http://codereview.chromium.org/7058046/diff/13/chrome/browser/resources/keyboard/ime.js File chrome/browser/resources/keyboard/ime.js (right): http://codereview.chromium.org/7058046/diff/13/chrome/browser/resources/keyboard/ime.js#newcode183 chrome/browser/resources/keyboard/ime.js:183: var should_visible = On 2011/06/03 19:14:52, bryeung wrote: > ...
9 years, 6 months ago (2011-06-03 22:22:09 UTC) #3
asargent_no_longer_on_chrome
extensions parts LGTM One high level comment for you to consider for this and several ...
9 years, 6 months ago (2011-06-04 00:26:07 UTC) #4
bryeung
I agree with asargent@: we should find a way to avoid using notifications, but that ...
9 years, 6 months ago (2011-06-07 22:45:03 UTC) #5
Peng
http://codereview.chromium.org/7058046/diff/7001/chrome/browser/resources/keyboard/main.js File chrome/browser/resources/keyboard/main.js (right): http://codereview.chromium.org/7058046/diff/7001/chrome/browser/resources/keyboard/main.js#newcode660 chrome/browser/resources/keyboard/main.js:660: if (newX != oldX || height != oldHeight) { ...
9 years, 6 months ago (2011-06-08 14:59:57 UTC) #6
bryeung
LGTM Just two typos/nits. http://codereview.chromium.org/7058046/diff/8012/chrome/browser/ui/touch/frame/touch_browser_frame_view.cc File chrome/browser/ui/touch/frame/touch_browser_frame_view.cc (right): http://codereview.chromium.org/7058046/diff/8012/chrome/browser/ui/touch/frame/touch_browser_frame_view.cc#newcode298 chrome/browser/ui/touch/frame/touch_browser_frame_view.cc:298: DCHECK_GE(height, 0) << "Height of ...
9 years, 6 months ago (2011-06-08 15:06:57 UTC) #7
Peng
http://codereview.chromium.org/7058046/diff/8012/chrome/browser/ui/touch/frame/touch_browser_frame_view.cc File chrome/browser/ui/touch/frame/touch_browser_frame_view.cc (right): http://codereview.chromium.org/7058046/diff/8012/chrome/browser/ui/touch/frame/touch_browser_frame_view.cc#newcode298 chrome/browser/ui/touch/frame/touch_browser_frame_view.cc:298: DCHECK_GE(height, 0) << "Height of the keyboar is less ...
9 years, 6 months ago (2011-06-08 15:13:11 UTC) #8
bryeung
LGTM On Wed, Jun 8, 2011 at 11:13 AM, <penghuang@chromium.org> wrote: > > http://codereview.chromium.org/7058046/diff/8012/chrome/browser/ui/touch/frame/touch_browser_frame_view.cc > ...
9 years, 6 months ago (2011-06-08 15:16:18 UTC) #9
commit-bot: I haz the power
Presubmit check for 7058046-9003 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 6 months ago (2011-06-09 19:40:02 UTC) #10
Peng
Hi John
9 years, 6 months ago (2011-06-09 19:46:48 UTC) #11
Peng
Hi John, Could you please review the change in notification_type.h? Thanks.
9 years, 6 months ago (2011-06-09 19:48:22 UTC) #12
jam
content lgtm
9 years, 6 months ago (2011-06-09 21:48:05 UTC) #13
commit-bot: I haz the power
9 years, 6 months ago (2011-06-09 22:56:53 UTC) #14
Change committed as 88605

Powered by Google App Engine
This is Rietveld 408576698