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

Issue 11956008: Move SetCursorLocation bypass code. (Closed)

Created:
7 years, 11 months ago by Seigo Nonaka
Modified:
7 years, 10 months ago
Reviewers:
satorux1
CC:
chromium-reviews, nkostylev+watch_chromium.org, penghuang+watch_chromium.org, oshima+watch_chromium.org, James Su, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, yusukes+watch_chromium.org
Visibility:
Public.

Description

Move SetCursorLocation bypass code. Current Chrome does not emit SetCursorLocation message to ibus-daemon because both candidate window and input context is in same process. It was achieved by injecting IBusClient into ui::InputMethodIBus, but we are now able to bypass them only in chromeos/ directory. With this refactoring, we can remove ui::internal::IBusClient, IBusChromeOSClientImpl and their injection code. The concept of this refactoring is... 1) ui::InputMethodIBus should communicate with only chromeos::IBus*. Do not bypass chromeos::IBus* even if bypassing ibus-daemon. 2) chrome/browser/chromeos/input_method should communicate with only chromeos::IBus* current code handles SetCursorLocation as special case, but I think it shouldn't consider where the event is come from. Such special logic should be in chromeos/. With this patch, we can remove IBusUiController. BUG=None TEST=Manually done on lumpy. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=179644

Patch Set 1 : #

Patch Set 2 : re-enable ui_unittests #

Patch Set 3 : fix unit tests #

Total comments: 4

Patch Set 4 : update #

Patch Set 5 : Fix unittests: add TextInputTestSupport initialzation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -195 lines) Patch
M chrome/browser/chromeos/input_method/candidate_window_controller_impl.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/input_method/candidate_window_controller_impl.cc View 1 2 3 2 chunks +12 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/input_method/ibus_ui_controller.h View 3 chunks +4 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/input_method/ibus_ui_controller.cc View 3 chunks +7 lines, -62 lines 0 comments Download
M chrome/browser/chromeos/input_method/input_method_manager_impl.cc View 4 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/input_method/input_method_manager_impl_unittest.cc View 1 2 3 4 4 chunks +5 lines, -0 lines 0 comments Download
M chromeos/dbus/ibus/ibus_panel_service.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M chromeos/dbus/ibus/ibus_panel_service.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M chromeos/dbus/ibus/mock_ibus_input_context_client.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/dbus/ibus/mock_ibus_input_context_client.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
D ui/base/ime/ibus_client.h View 1 chunk +0 lines, -46 lines 0 comments Download
D ui/base/ime/ibus_client.cc View 1 1 chunk +0 lines, -32 lines 0 comments Download
M ui/base/ime/ime.gypi View 2 chunks +0 lines, -4 lines 0 comments Download
M ui/base/ime/input_method_ibus.h View 1 3 chunks +0 lines, -10 lines 0 comments Download
M ui/base/ime/input_method_ibus.cc View 1 2 3 6 chunks +11 lines, -16 lines 0 comments Download
M ui/base/ime/input_method_ibus_unittest.cc View 1 2 3 chunks +3 lines, -6 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Seigo Nonaka
Sorry for huge patch, but could you take a look?
7 years, 11 months ago (2013-01-16 06:28:24 UTC) #1
satorux1
Can you split this patch? For instance, I guess you can create a separate patch ...
7 years, 11 months ago (2013-01-17 20:46:18 UTC) #2
Seigo Nonaka
Done(split this into two, the other part is https://codereview.chromium.org/12017010/). PTAL? On 2013/01/17 20:46:18, satorux1 wrote: ...
7 years, 11 months ago (2013-01-21 04:53:34 UTC) #3
satorux1
LGTM with nits https://codereview.chromium.org/11956008/diff/22002/chrome/browser/chromeos/input_method/candidate_window_controller_impl.cc File chrome/browser/chromeos/input_method/candidate_window_controller_impl.cc (right): https://codereview.chromium.org/11956008/diff/22002/chrome/browser/chromeos/input_method/candidate_window_controller_impl.cc#newcode146 chrome/browser/chromeos/input_method/candidate_window_controller_impl.cc:146: cursor_location.height)); Cannot we do something like: ...
7 years, 10 months ago (2013-01-29 05:16:08 UTC) #4
Seigo Nonaka
Thank you for your review https://codereview.chromium.org/11956008/diff/22002/chrome/browser/chromeos/input_method/candidate_window_controller_impl.cc File chrome/browser/chromeos/input_method/candidate_window_controller_impl.cc (right): https://codereview.chromium.org/11956008/diff/22002/chrome/browser/chromeos/input_method/candidate_window_controller_impl.cc#newcode146 chrome/browser/chromeos/input_method/candidate_window_controller_impl.cc:146: cursor_location.height)); We can't add ...
7 years, 10 months ago (2013-01-30 06:00:07 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nona@chromium.org/11956008/40031
7 years, 10 months ago (2013-01-30 06:02:21 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nona@chromium.org/11956008/32020
7 years, 10 months ago (2013-01-30 08:17:00 UTC) #7
commit-bot: I haz the power
7 years, 10 months ago (2013-01-30 16:39:15 UTC) #8
Message was sent while issue was closed.
Change committed as 179644

Powered by Google App Engine
This is Rietveld 408576698