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

Issue 1155013005: Refactoring the ownership of ui::InputMethod. (Closed)

Created:
5 years, 7 months ago by Shu Chen
Modified:
5 years, 6 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, yzshen+watch_chromium.org, sievers+watch_chromium.org, stevenjb+watch_chromium.org, extensions-reviews_chromium.org, tdanderson+views_chromium.org, jdduke+watch_chromium.org, jam, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, mlamouri+watch-content_chromium.org, tdresser+watch_chromium.org, penghuang+watch_chromium.org, oshima+watch_chromium.org, kalyank, piman+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, jochen+watch_chromium.org, tfarina, shuchen+watch_chromium.org, danakj+watch_chromium.org, davemoore+watch_chromium.org, Yuki, yukawa
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactoring the ownership of ui::InputMethod. This is IMF refactoring according to the design: - For @google.com: https://docs.google.com/document/d/14PQN4fbbSTlJmIk6qk7RzsuNr7O22DUTfNQ6slxKWV0 - For @chromium.org: https://docs.google.com/document/d/1sDES_kuEVUjb_FwCvKsg0Ef48edq5lAx589r0qUtG4g This cl includes some fundamental changes: 1) ui::InputMethod is created & owned by aura::WindowTreeHost. Therefore, the InputMethod instance can be accessed through root_window->GetHost()->GetInputMethod, and no need to save kRootWindowInputMethodKey instance to the root window anymore. 2) Removed InputMethodEventFilter, therefore no need the flag IsTranslated()/SetTranslated() on ui::KeyEvent. 3) Makes aura::WindowTreeHost as a ui::EventSource, because all kinds of WindowTreeHost are also ui::EventSource. Therefore, WindowTreeHost can override DeliverEventToProcessor method to intercept key events for input method processing. Note: 1) The key events processing by input method happens after event rewriters and before the EventHandler's, which remains no change to original on desktop environment. For Ash, the IME key event handling is moved ahead of some other handles: - MagnifierKeyScroller (CrOS only): handles Arrow keys when magnification is enabled. - SpokenFeedbackToggler (CrOS only): handles F6 key when SpokenFeedbackToggler is enabled. - OverlayEventFilter: handles ESC/OEM_2/HELP/F14 keys to cancel the overlay UI. 2) For Ash, remains the singleton ui::InputMethod instance, owned by DisplayController. Because if let each AshWindowTreeHost own separated ui::InputMethod instances, it will break things: a) There is a test: ExtendedDesktopTest.KeyEventsOnLockScreen, which tests the text field in root window X can be inserted with text while dispatching key events to root window Y. I think this test makes no sense and will confirm with oshima@. b) For now for Ozone, DrmWindowHost::CanDispatchEvent() always returns true, so that only primary window tree host can receive the key events, which makes the "primary" InputMethod can receive the key events. c) For Virtual Keyboard on CrOS, it listens to the notification through InputMethodObserver::OnShowImeIfNeeded(), which is bound to the specific InputMethod instance. However, the Virtual Keyboard should work cross multiple root windows & InputMethod instances. BUG=474828 TEST=Verified on local builds, including linux, cros, win7 & win8.1. And all tests passed. Committed: https://crrev.com/29f3c7af2b324b9b5d9194d40fe26261577291d6 Cr-Commit-Position: refs/heads/master@{#333698}

Patch Set 1 #

Patch Set 2 : fixed bugs on Windows & CrOS. #

Patch Set 3 : fixed compiling errors. #

Patch Set 4 : fixed compiling errors. #

Patch Set 5 : . #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : fixed chromeos. #

Patch Set 9 : fixed some test failures. #

Patch Set 10 : #

Patch Set 11 : singleton input method for ash. #

Patch Set 12 : nits. #

Patch Set 13 : #

Patch Set 14 : rebased. #

Patch Set 15 : use MockInputMethod for AuraTestHelper. #

Patch Set 16 : fixed failures & remove unnecessary event.SetTranslated/IsTranslated. #

Patch Set 17 : #

Patch Set 18 : #

Patch Set 19 : pls be green! #

Total comments: 32

Patch Set 20 : addressed comments. #

Patch Set 21 : rebased. #

Total comments: 4

Patch Set 22 : nits. #

Patch Set 23 : #

Total comments: 2

Patch Set 24 : #

Patch Set 25 : let DisplayController be centrial InputMethodDelegate and call DispatchKeyEventPostIME on the activ… #

Total comments: 13

Patch Set 26 : addressed comments. #

Patch Set 27 : #

Total comments: 2

Patch Set 28 : nits. #

Total comments: 6

Patch Set 29 : comments addressed. #

Total comments: 18

Patch Set 30 : addressed comments. #

Patch Set 31 : nit & rebased. #

Patch Set 32 : #

Total comments: 11

Patch Set 33 : rebased & addressed comments. #

Patch Set 34 : fixed bot failure: cast_shell_linux #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+203 lines, -751 lines) Patch
M ash/accelerators/accelerator_controller_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -6 lines 0 comments Download
M ash/display/display_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 4 chunks +9 lines, -1 line 0 comments Download
M ash/display/display_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 4 chunks +17 lines, -0 lines 0 comments Download
M ash/host/ash_window_tree_host_unified.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 2 chunks +1 line, -5 lines 0 comments Download
M ash/host/ash_window_tree_host_unified.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +0 lines, -4 lines 0 comments Download
M ash/magnifier/magnification_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 7 chunks +14 lines, -16 lines 0 comments Download
M ash/magnifier/magnification_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +1 line, -5 lines 0 comments Download
M ash/shell.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 3 chunks +0 lines, -7 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 5 chunks +1 line, -8 lines 0 comments Download
M ash/shell/keyboard_controller_proxy_stub.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 2 chunks +6 lines, -2 lines 0 comments Download
M ash/shell/shell_delegate_impl.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ash/test/shell_test_api.h View 2 chunks +0 lines, -5 lines 0 comments Download
M ash/test/shell_test_api.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M ash/wm/overlay_event_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -7 lines 0 comments Download
M ash/wm/power_button_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -4 lines 0 comments Download
M ash/wm/window_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +0 lines, -14 lines 0 comments Download
M ash/wm/workspace/workspace_layout_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 1 chunk +1 line, -2 lines 0 comments Download
M ash/wm/workspace/workspace_layout_manager_unittest.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/extensions/virtual_keyboard_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/input_method/input_method_engine.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 3 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/input_method/textinput_test_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/ash_keyboard_controller_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 1 chunk +1 line, -1 line 0 comments Download
M content/shell/browser/shell_platform_data_aura.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/shell/browser/shell_platform_data_aura.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +0 lines, -50 lines 0 comments Download
M extensions/shell/browser/shell_desktop_controller_aura.h View 2 chunks +0 lines, -3 lines 0 comments Download
M extensions/shell/browser/shell_desktop_controller_aura.cc View 4 chunks +0 lines, -9 lines 0 comments Download
M mandoline/ui/aura/native_widget_view_manager.h View 1 chunk +0 lines, -2 lines 0 comments Download
M mandoline/ui/aura/native_widget_view_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +0 lines, -51 lines 0 comments Download
M mandoline/ui/aura/window_tree_host_mojo.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 2 chunks +0 lines, -4 lines 0 comments Download
M mandoline/ui/aura/window_tree_host_mojo.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +0 lines, -7 lines 0 comments Download
M ui/aura/client/aura_constants.h View 1 chunk +0 lines, -4 lines 0 comments Download
M ui/aura/client/aura_constants.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ui/aura/remote_window_tree_host_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 2 chunks +0 lines, -4 lines 0 comments Download
M ui/aura/remote_window_tree_host_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 3 chunks +1 line, -8 lines 0 comments Download
M ui/aura/test/aura_test_helper.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/aura/test/aura_test_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 5 chunks +3 lines, -7 lines 0 comments Download
M ui/aura/window_tree_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 6 chunks +44 lines, -2 lines 0 comments Download
M ui/aura/window_tree_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 7 chunks +57 lines, -4 lines 1 comment Download
M ui/aura/window_tree_host_ozone.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 3 chunks +0 lines, -5 lines 0 comments Download
M ui/aura/window_tree_host_ozone.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +0 lines, -4 lines 0 comments Download
M ui/aura/window_tree_host_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 3 chunks +0 lines, -5 lines 0 comments Download
M ui/aura/window_tree_host_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +0 lines, -4 lines 0 comments Download
M ui/aura/window_tree_host_x11.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 3 chunks +0 lines, -5 lines 0 comments Download
M ui/aura/window_tree_host_x11.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +0 lines, -4 lines 0 comments Download
M ui/base/accelerators/accelerator_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -4 lines 0 comments Download
M ui/base/ime/input_method_chromeos.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M ui/base/ime/input_method_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 2 chunks +4 lines, -2 lines 0 comments Download
M ui/base/ime/mock_input_method.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +2 lines, -0 lines 0 comments Download
M ui/events/event.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 3 chunks +2 lines, -12 lines 0 comments Download
M ui/events/event.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +0 lines, -31 lines 0 comments Download
M ui/events/event_constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -2 lines 0 comments Download
M ui/events/event_source.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/events/event_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -6 lines 0 comments Download
M ui/keyboard/keyboard_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 4 chunks +8 lines, -7 lines 0 comments Download
M ui/views/ime/input_method_bridge.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 2 chunks +4 lines, -2 lines 0 comments Download
M ui/views/ime/input_method_bridge_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +0 lines, -7 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_widget_aura.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 3 chunks +0 lines, -8 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_widget_aura.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 7 chunks +3 lines, -19 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 3 chunks +0 lines, -5 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 4 chunks +2 lines, -16 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 3 chunks +0 lines, -5 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 1 chunk +0 lines, -7 lines 0 comments Download
M ui/views/widget/native_widget_aura.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 3 chunks +3 lines, -5 lines 0 comments Download
M ui/views/win/hwnd_message_handler_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 chunk +0 lines, -2 lines 0 comments Download
M ui/wm/BUILD.gn View 2 chunks +0 lines, -3 lines 0 comments Download
D ui/wm/core/input_method_event_filter.h View 1 chunk +0 lines, -50 lines 0 comments Download
D ui/wm/core/input_method_event_filter.cc View 1 chunk +0 lines, -105 lines 0 comments Download
D ui/wm/core/input_method_event_filter_unittest.cc View 1 chunk +0 lines, -142 lines 0 comments Download
M ui/wm/test/wm_test_helper.h View 2 chunks +0 lines, -2 lines 0 comments Download
M ui/wm/test/wm_test_helper.cc View 1 2 3 chunks +0 lines, -7 lines 0 comments Download
M ui/wm/wm.gyp View 2 chunks +0 lines, -3 lines 0 comments Download

Messages

Total messages: 74 (5 generated)
Shu Chen
Hi Guys, can you please review this cl? To dive into such big CL quickly, ...
5 years, 6 months ago (2015-06-01 05:30:30 UTC) #2
Avi (use Gerrit)
On 2015/06/01 05:30:30, Shu Chen wrote: > Hi Guys, can you please review this cl? ...
5 years, 6 months ago (2015-06-01 15:10:50 UTC) #3
Avi (use Gerrit)
Also, random nits. (You should use nullptr rather than NULL.) https://codereview.chromium.org/1155013005/diff/360001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/1155013005/diff/360001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode2471 ...
5 years, 6 months ago (2015-06-01 15:13:40 UTC) #4
James Cook
Thank you for taking on a complex refactor to clean up the code. I'm not ...
5 years, 6 months ago (2015-06-01 22:21:01 UTC) #5
Shu Chen
https://codereview.chromium.org/1155013005/diff/360001/ash/magnifier/magnification_controller.cc File ash/magnifier/magnification_controller.cc (right): https://codereview.chromium.org/1155013005/diff/360001/ash/magnifier/magnification_controller.cc#newcode68 ash/magnifier/magnification_controller.cc:68: return NULL; On 2015/06/01 22:20:59, James Cook wrote: > ...
5 years, 6 months ago (2015-06-02 04:11:17 UTC) #6
Shu Chen
For each reviewer: sky@ please focus on overall design. avi@ please focus on aura/views stuff. ...
5 years, 6 months ago (2015-06-02 04:16:21 UTC) #7
James Su
https://codereview.chromium.org/1155013005/diff/400001/ui/aura/remote_window_tree_host_win.cc File ui/aura/remote_window_tree_host_win.cc (right): https://codereview.chromium.org/1155013005/diff/400001/ui/aura/remote_window_tree_host_win.cc#newcode431 ui/aura/remote_window_tree_host_win.cc:431: ui::InputMethod* input_method = GetAshWindow()->GetHost()->GetInputMethod(); shouldn't GetAshWindow()->GetHost() == this ? ...
5 years, 6 months ago (2015-06-02 07:05:27 UTC) #8
Shu Chen
https://codereview.chromium.org/1155013005/diff/400001/ui/aura/remote_window_tree_host_win.cc File ui/aura/remote_window_tree_host_win.cc (right): https://codereview.chromium.org/1155013005/diff/400001/ui/aura/remote_window_tree_host_win.cc#newcode431 ui/aura/remote_window_tree_host_win.cc:431: ui::InputMethod* input_method = GetAshWindow()->GetHost()->GetInputMethod(); On 2015/06/02 07:05:26, James Su ...
5 years, 6 months ago (2015-06-02 07:20:21 UTC) #9
James Su
https://codereview.chromium.org/1155013005/diff/440001/ash/shell/keyboard_controller_proxy_stub.cc File ash/shell/keyboard_controller_proxy_stub.cc (right): https://codereview.chromium.org/1155013005/diff/440001/ash/shell/keyboard_controller_proxy_stub.cc#newcode39 ash/shell/keyboard_controller_proxy_stub.cc:39: return ash::Shell::GetPrimaryRootWindow()->GetHost()->GetInputMethod(); GetTargetRootWindow ?
5 years, 6 months ago (2015-06-02 08:28:22 UTC) #10
Shu Chen
https://codereview.chromium.org/1155013005/diff/440001/ash/shell/keyboard_controller_proxy_stub.cc File ash/shell/keyboard_controller_proxy_stub.cc (right): https://codereview.chromium.org/1155013005/diff/440001/ash/shell/keyboard_controller_proxy_stub.cc#newcode39 ash/shell/keyboard_controller_proxy_stub.cc:39: return ash::Shell::GetPrimaryRootWindow()->GetHost()->GetInputMethod(); On 2015/06/02 08:28:21, James Su wrote: > ...
5 years, 6 months ago (2015-06-02 08:44:06 UTC) #11
Avi (use Gerrit)
On 2015/06/02 04:16:21, Shu Chen wrote: > avi@ please focus on aura/views stuff. No, sorry. ...
5 years, 6 months ago (2015-06-02 14:49:04 UTC) #12
Shu Chen
On 2015/06/02 14:49:04, Avi wrote: > On 2015/06/02 04:16:21, Shu Chen wrote: > > avi@ ...
5 years, 6 months ago (2015-06-02 14:56:01 UTC) #13
Avi (use Gerrit)
On 2015/06/02 14:56:01, Shu Chen wrote: > Avi, can you please focus on the changes ...
5 years, 6 months ago (2015-06-02 15:14:51 UTC) #14
James Cook
ash/ and extensions/ are looking good, just a couple questions. oshima, can you comment on ...
5 years, 6 months ago (2015-06-02 16:29:12 UTC) #16
oshima
+sadrul, the master of events. https://codereview.chromium.org/1155013005/diff/480001/ash/display/display_controller.cc File ash/display/display_controller.cc (right): https://codereview.chromium.org/1155013005/diff/480001/ash/display/display_controller.cc#newcode873 ash/display/display_controller.cc:873: event); James is correct. ...
5 years, 6 months ago (2015-06-02 17:35:56 UTC) #18
Shu Chen
https://codereview.chromium.org/1155013005/diff/480001/ash/display/display_controller.cc File ash/display/display_controller.cc (right): https://codereview.chromium.org/1155013005/diff/480001/ash/display/display_controller.cc#newcode872 ash/display/display_controller.cc:872: return Shell::GetTargetRootWindow()->GetHost()->DispatchKeyEventPostIME( On 2015/06/02 16:29:11, James Cook wrote: > ...
5 years, 6 months ago (2015-06-03 03:31:54 UTC) #19
James Su
https://codereview.chromium.org/1155013005/diff/520001/ui/aura/window_tree_host.cc File ui/aura/window_tree_host.cc (right): https://codereview.chromium.org/1155013005/diff/520001/ui/aura/window_tree_host.cc#newcode187 ui/aura/window_tree_host.cc:187: input_method_(NULL), nullptr?
5 years, 6 months ago (2015-06-03 06:41:17 UTC) #20
Shu Chen
https://codereview.chromium.org/1155013005/diff/480001/ash/shell.cc File ash/shell.cc (right): https://codereview.chromium.org/1155013005/diff/480001/ash/shell.cc#newcode754 ash/shell.cc:754: keyboard::KeyboardController::ResetInstance(nullptr); On 2015/06/03 03:31:54, Shu Chen wrote: > On ...
5 years, 6 months ago (2015-06-03 07:29:57 UTC) #21
Shu Chen
FYI. Just verified on a win8.1 VM, and this cl doesn't cause any regressions for ...
5 years, 6 months ago (2015-06-03 10:01:23 UTC) #22
oshima
On 2015/06/03 10:01:23, Shu Chen wrote: > FYI. Just verified on a win8.1 VM, and ...
5 years, 6 months ago (2015-06-03 16:18:56 UTC) #23
James Cook
On 2015/06/03 16:18:56, oshima wrote: > On 2015/06/03 10:01:23, Shu Chen wrote: > > FYI. ...
5 years, 6 months ago (2015-06-03 16:26:40 UTC) #24
James Cook
On 2015/06/03 16:26:40, James Cook wrote: > On 2015/06/03 16:18:56, oshima wrote: > > On ...
5 years, 6 months ago (2015-06-03 16:33:40 UTC) #25
James Cook
ash/ and extensions/shell/ LGTM with nit https://codereview.chromium.org/1155013005/diff/540001/ash/display/display_controller.cc File ash/display/display_controller.cc (right): https://codereview.chromium.org/1155013005/diff/540001/ash/display/display_controller.cc#newcode877 ash/display/display_controller.cc:877: root_window = Shell::GetTargetRootWindow(); ...
5 years, 6 months ago (2015-06-03 16:34:28 UTC) #26
oshima
https://codereview.chromium.org/1155013005/diff/540001/ash/display/display_controller.cc File ash/display/display_controller.cc (right): https://codereview.chromium.org/1155013005/diff/540001/ash/display/display_controller.cc#newcode877 ash/display/display_controller.cc:877: root_window = Shell::GetTargetRootWindow(); active window must have a root ...
5 years, 6 months ago (2015-06-03 16:48:01 UTC) #27
Shu Chen
https://codereview.chromium.org/1155013005/diff/540001/ash/display/display_controller.cc File ash/display/display_controller.cc (right): https://codereview.chromium.org/1155013005/diff/540001/ash/display/display_controller.cc#newcode877 ash/display/display_controller.cc:877: root_window = Shell::GetTargetRootWindow(); On 2015/06/03 16:48:00, oshima wrote: > ...
5 years, 6 months ago (2015-06-04 01:59:44 UTC) #28
oshima
my bits lgtm
5 years, 6 months ago (2015-06-04 02:14:20 UTC) #29
James Su
On 2015/06/03 16:18:56, oshima wrote: > On 2015/06/03 10:01:23, Shu Chen wrote: > > FYI. ...
5 years, 6 months ago (2015-06-04 04:10:24 UTC) #30
oshima
On 2015/06/04 04:10:24, James Su wrote: > On 2015/06/03 16:18:56, oshima wrote: > > On ...
5 years, 6 months ago (2015-06-04 04:36:49 UTC) #31
James Su
On 2015/06/04 04:36:49, oshima wrote: > On 2015/06/04 04:10:24, James Su wrote: > > On ...
5 years, 6 months ago (2015-06-04 05:15:14 UTC) #32
oshima
On 2015/06/04 05:15:14, James Su wrote: > On 2015/06/04 04:36:49, oshima wrote: > > On ...
5 years, 6 months ago (2015-06-04 05:49:27 UTC) #33
James Su
On 2015/06/04 05:49:27, oshima wrote: > On 2015/06/04 05:15:14, James Su wrote: > > On ...
5 years, 6 months ago (2015-06-04 06:05:32 UTC) #34
James Su
Anyway, this CL LGTM to me. Shu will document all of the issues raised in ...
5 years, 6 months ago (2015-06-04 06:07:20 UTC) #35
oshima
On Wed, Jun 3, 2015 at 11:05 PM, <suzhe@chromium.org> wrote: > On 2015/06/04 05:49:27, oshima ...
5 years, 6 months ago (2015-06-04 06:50:26 UTC) #36
James Su
On 2015/06/04 06:50:26, oshima wrote: > On Wed, Jun 3, 2015 at 11:05 PM, <mailto:suzhe@chromium.org> ...
5 years, 6 months ago (2015-06-04 07:25:17 UTC) #37
sky
https://codereview.chromium.org/1155013005/diff/560001/chrome/browser/chromeos/input_method/input_method_engine.cc File chrome/browser/chromeos/input_method/input_method_engine.cc (right): https://codereview.chromium.org/1155013005/diff/560001/chrome/browser/chromeos/input_method/input_method_engine.cc#newcode295 chrome/browser/chromeos/input_method/input_method_engine.cc:295: ui::InputMethod* input_method = Is there a reason you need ...
5 years, 6 months ago (2015-06-04 13:40:28 UTC) #38
Shu Chen
FYI. I've added more detailed comments for WindowTreeHost::SetInputMethod(). https://codereview.chromium.org/1155013005/diff/560001/chrome/browser/chromeos/input_method/input_method_engine.cc File chrome/browser/chromeos/input_method/input_method_engine.cc (right): https://codereview.chromium.org/1155013005/diff/560001/chrome/browser/chromeos/input_method/input_method_engine.cc#newcode295 chrome/browser/chromeos/input_method/input_method_engine.cc:295: ui::InputMethod* ...
5 years, 6 months ago (2015-06-04 15:59:26 UTC) #39
oshima
On 2015/06/04 07:25:17, James Su wrote: > On 2015/06/04 06:50:26, oshima wrote: > > On ...
5 years, 6 months ago (2015-06-04 16:20:51 UTC) #40
sky
https://codereview.chromium.org/1155013005/diff/560001/chrome/browser/chromeos/input_method/input_method_engine.cc File chrome/browser/chromeos/input_method/input_method_engine.cc (right): https://codereview.chromium.org/1155013005/diff/560001/chrome/browser/chromeos/input_method/input_method_engine.cc#newcode295 chrome/browser/chromeos/input_method/input_method_engine.cc:295: ui::InputMethod* input_method = On 2015/06/04 15:59:25, Shu Chen wrote: ...
5 years, 6 months ago (2015-06-04 19:42:52 UTC) #41
Shu Chen
On 2015/06/04 16:20:51, oshima wrote: > On 2015/06/04 07:25:17, James Su wrote: > > On ...
5 years, 6 months ago (2015-06-05 00:48:32 UTC) #42
Shu Chen
https://codereview.chromium.org/1155013005/diff/560001/ui/aura/window_tree_host.cc File ui/aura/window_tree_host.cc (right): https://codereview.chromium.org/1155013005/diff/560001/ui/aura/window_tree_host.cc#newcode195 ui/aura/window_tree_host.cc:195: // Makes sure the input method is focused by ...
5 years, 6 months ago (2015-06-05 00:52:19 UTC) #43
sky
LGTM
5 years, 6 months ago (2015-06-05 15:10:51 UTC) #44
Avi (use Gerrit)
On 2015/06/05 15:10:51, sky wrote: > LGTM Since everyone's happy here, I'll stamp the content/ ...
5 years, 6 months ago (2015-06-05 15:14:53 UTC) #45
sadrul
A couple of questions: In the CL description: > 1) The key events processing by ...
5 years, 6 months ago (2015-06-05 15:39:34 UTC) #46
Shu Chen
On 2015/06/05 15:39:34, sadrul wrote: > A couple of questions: > > In the CL ...
5 years, 6 months ago (2015-06-06 04:58:29 UTC) #47
sky
On Fri, Jun 5, 2015 at 9:58 PM, <shuchen@chromium.org> wrote: > On 2015/06/05 15:39:34, sadrul ...
5 years, 6 months ago (2015-06-06 17:50:49 UTC) #48
Shu Chen
On 2015/06/06 17:50:49, sky wrote: > On Fri, Jun 5, 2015 at 9:58 PM, <mailto:shuchen@chromium.org> ...
5 years, 6 months ago (2015-06-08 01:54:28 UTC) #49
sadrul
On 2015/06/06 04:58:29, Shu Chen wrote: > On 2015/06/05 15:39:34, sadrul wrote: > > A ...
5 years, 6 months ago (2015-06-08 02:02:59 UTC) #50
Shu Chen
On 2015/06/08 02:02:59, sadrul wrote: > On 2015/06/06 04:58:29, Shu Chen wrote: > > On ...
5 years, 6 months ago (2015-06-08 02:05:12 UTC) #51
Shu Chen
Sadrul, may I get your LGTM for this cl? Thanks
5 years, 6 months ago (2015-06-08 02:25:23 UTC) #52
Shu Chen
pinging... Sadrul, do you think it is good to commit this cl?
5 years, 6 months ago (2015-06-08 22:38:32 UTC) #53
sadrul
Hi! Sorry, I am OOO today. I have a draft comment from last night. I ...
5 years, 6 months ago (2015-06-08 22:45:12 UTC) #54
Shu Chen
https://codereview.chromium.org/1155013005/diff/610001/ui/aura/window_tree_host.cc File ui/aura/window_tree_host.cc (right): https://codereview.chromium.org/1155013005/diff/610001/ui/aura/window_tree_host.cc#newcode200 ui/aura/window_tree_host.cc:200: bool WindowTreeHost::DispatchKeyEventPostIME(const ui::KeyEvent& event) { On 2015/06/08 22:45:12, sadrul ...
5 years, 6 months ago (2015-06-09 02:28:49 UTC) #55
Shu Chen
On 2015/06/09 02:28:49, Shu Chen wrote: > https://codereview.chromium.org/1155013005/diff/610001/ui/aura/window_tree_host.cc > File ui/aura/window_tree_host.cc (right): > > https://codereview.chromium.org/1155013005/diff/610001/ui/aura/window_tree_host.cc#newcode200 ...
5 years, 6 months ago (2015-06-09 03:08:59 UTC) #56
sadrul
https://codereview.chromium.org/1155013005/diff/610001/ui/aura/window_tree_host.cc File ui/aura/window_tree_host.cc (right): https://codereview.chromium.org/1155013005/diff/610001/ui/aura/window_tree_host.cc#newcode200 ui/aura/window_tree_host.cc:200: bool WindowTreeHost::DispatchKeyEventPostIME(const ui::KeyEvent& event) { On 2015/06/09 02:28:49, Shu ...
5 years, 6 months ago (2015-06-09 15:29:33 UTC) #57
sadrul
LGTM with the comments addressed.
5 years, 6 months ago (2015-06-09 15:30:16 UTC) #58
Shu Chen
https://codereview.chromium.org/1155013005/diff/610001/ui/aura/window_tree_host.cc File ui/aura/window_tree_host.cc (right): https://codereview.chromium.org/1155013005/diff/610001/ui/aura/window_tree_host.cc#newcode200 ui/aura/window_tree_host.cc:200: bool WindowTreeHost::DispatchKeyEventPostIME(const ui::KeyEvent& event) { On 2015/06/09 15:29:32, sadrul ...
5 years, 6 months ago (2015-06-10 03:01:35 UTC) #59
Shu Chen
https://codereview.chromium.org/1155013005/diff/610001/ui/base/ime/input_method_factory.cc File ui/base/ime/input_method_factory.cc (right): https://codereview.chromium.org/1155013005/diff/610001/ui/base/ime/input_method_factory.cc#newcode17 ui/base/ime/input_method_factory.cc:17: #elif defined(USE_AURA) && defined(OS_LINUX) && defined(USE_X11) && \ On ...
5 years, 6 months ago (2015-06-10 04:11:43 UTC) #60
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1155013005/650001
5 years, 6 months ago (2015-06-10 04:13:16 UTC) #63
commit-bot: I haz the power
Committed patchset #34 (id:650001)
5 years, 6 months ago (2015-06-10 07:48:37 UTC) #64
commit-bot: I haz the power
Patchset 34 (id:??) landed as https://crrev.com/29f3c7af2b324b9b5d9194d40fe26261577291d6 Cr-Commit-Position: refs/heads/master@{#333698}
5 years, 6 months ago (2015-06-10 07:49:35 UTC) #65
oshima
https://codereview.chromium.org/1155013005/diff/650001/ui/aura/window_tree_host.cc File ui/aura/window_tree_host.cc (right): https://codereview.chromium.org/1155013005/diff/650001/ui/aura/window_tree_host.cc#newcode323 ui/aura/window_tree_host.cc:323: } Hi, we noticed that with this CL, InputMethod ...
5 years, 6 months ago (2015-06-19 00:43:40 UTC) #66
oshima
On 2015/06/19 00:43:40, oshima wrote: > https://codereview.chromium.org/1155013005/diff/650001/ui/aura/window_tree_host.cc > File ui/aura/window_tree_host.cc (right): > > https://codereview.chromium.org/1155013005/diff/650001/ui/aura/window_tree_host.cc#newcode323 > ...
5 years, 6 months ago (2015-06-19 01:50:42 UTC) #67
James Su
On 2015/06/19 00:43:40, oshima wrote: > https://codereview.chromium.org/1155013005/diff/650001/ui/aura/window_tree_host.cc > File ui/aura/window_tree_host.cc (right): > > https://codereview.chromium.org/1155013005/diff/650001/ui/aura/window_tree_host.cc#newcode323 > ...
5 years, 6 months ago (2015-06-19 02:05:07 UTC) #68
oshima
On 2015/06/19 02:05:07, James Su wrote: > On 2015/06/19 00:43:40, oshima wrote: > > > ...
5 years, 6 months ago (2015-06-19 04:07:16 UTC) #69
James Su
2015-06-19 12:07 GMT+08:00 <oshima@chromium.org>: > On 2015/06/19 02:05:07, James Su wrote: > >> On 2015/06/19 ...
5 years, 6 months ago (2015-06-19 04:24:58 UTC) #70
oshima
On Thu, Jun 18, 2015 at 9:24 PM, James Su <suzhe@chromium.org> wrote: > > > ...
5 years, 6 months ago (2015-06-19 04:50:14 UTC) #71
Shu Chen
oshima@, I understand the concern is Ash sometimes tires to touch key events before IMEs, ...
5 years, 6 months ago (2015-06-19 17:37:04 UTC) #72
oshima
On 2015/06/19 17:37:04, Shu Chen wrote: > oshima@, I understand the concern is Ash sometimes ...
5 years, 6 months ago (2015-06-19 18:19:08 UTC) #73
James Su
5 years, 6 months ago (2015-06-20 04:14:54 UTC) #74
Message was sent while issue was closed.
On 2015/06/19 18:19:08, oshima wrote:
> On 2015/06/19 17:37:04, Shu Chen wrote:
> > oshima@, I understand the concern is Ash sometimes tires to touch key events
> > before IMEs, because it tries to behave like OS.
> >
> > To better understand the key problem and adopt better design, I am
wondering:
> >  - Why the issue only affect unified mode? If changing key sequence would
mess
> > up key event handling by Ash-OS, should normal mode of Ash be affected too?
> 
> This is just an example. afark@ was affected, and I think there are other
> features affected but not just detected. see below.
> 
> >  - can you please review the CL description, Note 1)? Does my analysis sound
> > correct to you?
> 
> Note 1) wasn't correct.
> 
> Any event handlers that are added by PrependPreTargetHandler will also be
called
> before IME. By looking at the code I think following handlers are affected by
> this change.
> 
> ParticalScreenshotController
> InputEventsBlocker
> JavascriptAppModalEventBlockerX11 (this is probably less important than
others,
> but still used in testing)
> 
> This also overrides the targeter behavior, and following targeters are
affected
> 
> UnifiedEventTargeter
> NullEventTargeter
> 
> Sorry I should have read it more carefully, and that's my fault.
> 
> > 
> > Thanks!

Is there a design doc about event handling in Ash/ChromeOS? IMHO, it's extremely
complicated.

Powered by Google App Engine
This is Rietveld 408576698