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

Issue 213283004: linux_aura: Port GtkKeybindingsHandler to Aura. (Closed)

Created:
6 years, 9 months ago by Elliot Glaysher
Modified:
6 years, 8 months ago
Reviewers:
msw, jam, sky, sadrul, piman
CC:
chromium-reviews, jbauman+watch_chromium.org, creis+watch_chromium.org, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, nasko+codewatch_chromium.org, jam, penghuang+watch_chromium.org, sievers+watch_chromium.org, joi+watch-content_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su, miu+watch_chromium.org
Visibility:
Public.

Description

linux_aura: Port GtkKeybindingsHandler to Aura. This is a quick hack to move the current GtkKeybindingsHandler code into aura builds. This is necessary so that Linux users who have set custom keybindings can use them in edit fields. This only works in the content area; further patches are needed for this to work in views. This redoes the interface so that instead of being hard coded into content, we have a general interface set in ui/wm/. This should allow views to also use this code in ui/views/, as well as its current usage in content/. BUG=319437, 358297 R=piman@chromium.org, sadrul@chromium.org, sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260900

Patch Set 1 #

Total comments: 2

Patch Set 2 : Manually sort gyp file. #

Total comments: 1

Patch Set 3 : A slightly different approach. Now handles C-w. #

Patch Set 4 : Redo the patch to work at the ui/wm/ layer. #

Patch Set 5 : Cleanup #

Patch Set 6 : Abort attempts to rewrite unit tests due to linking issues. #

Total comments: 6

Patch Set 7 : Move from ui/wm/ to ui/events/. #

Total comments: 8

Patch Set 8 : Fixes for sadrul #

Unified diffs Side-by-side diffs Delta from patch set Stats (+805 lines, -31 lines) Patch
M chrome/browser/ui/browser_command_controller.cc View 1 2 3 4 5 6 2 chunks +14 lines, -0 lines 0 comments Download
A + chrome/browser/ui/libgtk2ui/gtk2_key_bindings_handler.h View 1 2 3 4 5 6 5 chunks +39 lines, -19 lines 0 comments Download
A chrome/browser/ui/libgtk2ui/gtk2_key_bindings_handler.cc View 1 2 3 4 5 6 7 1 chunk +389 lines, -0 lines 0 comments Download
M chrome/browser/ui/libgtk2ui/gtk2_ui.h View 1 2 3 4 5 6 4 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/libgtk2ui/gtk2_ui.cc View 1 2 3 4 5 6 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/libgtk2ui/libgtk2ui.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/native_web_keyboard_event_aura.cc View 1 2 3 3 chunks +9 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 6 4 chunks +38 lines, -3 lines 0 comments Download
M content/public/browser/native_web_keyboard_event.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ui/events/events.gyp View 1 2 3 4 5 6 3 chunks +14 lines, -2 lines 0 comments Download
A ui/events/x/text_edit_command_x11.h View 1 2 3 4 5 6 7 1 chunk +82 lines, -0 lines 0 comments Download
A ui/events/x/text_edit_command_x11.cc View 1 2 3 4 5 6 1 chunk +125 lines, -0 lines 0 comments Download
A ui/events/x/text_edit_key_bindings_delegate_x11.h View 1 2 3 4 5 6 1 chunk +42 lines, -0 lines 0 comments Download
A ui/events/x/text_edit_key_bindings_delegate_x11.cc View 1 2 3 4 5 6 1 chunk +22 lines, -0 lines 0 comments Download
M ui/views/linux_ui/linux_ui.h View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M ui/views/linux_ui/linux_ui.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
Elliot Glaysher
I am not happy with this patch. The way the preexisting GtkKeybindingsHandler works is crazy; ...
6 years, 9 months ago (2014-03-26 21:42:41 UTC) #1
piman
https://codereview.chromium.org/213283004/diff/1/chrome/browser/ui/libgtk2ui/gtk2_key_bindings_handler.cc File chrome/browser/ui/libgtk2ui/gtk2_key_bindings_handler.cc (right): https://codereview.chromium.org/213283004/diff/1/chrome/browser/ui/libgtk2ui/gtk2_key_bindings_handler.cc#newcode105 chrome/browser/ui/libgtk2ui/gtk2_key_bindings_handler.cc:105: // point? On 2014/03/26 21:42:41, Elliot Glaysher wrote: > ...
6 years, 9 months ago (2014-03-26 23:44:25 UTC) #2
Elliot Glaysher
msw: fyi. OK, so this is now feature complete in the content area, but doesn't ...
6 years, 9 months ago (2014-03-28 22:36:25 UTC) #3
piman
LGTM for content/ and the overall approach.
6 years, 9 months ago (2014-03-28 22:40:23 UTC) #4
Elliot Glaysher
sky: views review
6 years, 8 months ago (2014-03-31 20:07:12 UTC) #5
sky
https://codereview.chromium.org/213283004/diff/100001/ui/wm/public/text_edit_command_x11.cc File ui/wm/public/text_edit_command_x11.cc (right): https://codereview.chromium.org/213283004/diff/100001/ui/wm/public/text_edit_command_x11.cc#newcode114 ui/wm/public/text_edit_command_x11.cc:114: default: Can't you remove this to get a compile ...
6 years, 8 months ago (2014-03-31 20:44:04 UTC) #6
Elliot Glaysher
Per sky@, redirecting to sadrul@ now that the interface has been moved from ui/wm/ to ...
6 years, 8 months ago (2014-03-31 21:40:09 UTC) #7
sadrul
I am not familiar with the GTK+ bindings at this level. So my review for ...
6 years, 8 months ago (2014-03-31 22:58:55 UTC) #8
Elliot Glaysher
https://codereview.chromium.org/213283004/diff/120001/chrome/browser/ui/libgtk2ui/gtk2_key_bindings_handler.cc File chrome/browser/ui/libgtk2ui/gtk2_key_bindings_handler.cc (right): https://codereview.chromium.org/213283004/diff/120001/chrome/browser/ui/libgtk2ui/gtk2_key_bindings_handler.cc#newcode53 chrome/browser/ui/libgtk2ui/gtk2_key_bindings_handler.cc:53: if (!event.IsKeyEvent()) On 2014/03/31 22:58:56, sadrul wrote: > Looks ...
6 years, 8 months ago (2014-03-31 23:16:24 UTC) #9
Elliot Glaysher
The CQ bit was checked by erg@chromium.org
6 years, 8 months ago (2014-03-31 23:16:55 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erg@chromium.org/213283004/140001
6 years, 8 months ago (2014-03-31 23:17:54 UTC) #11
piman
On Mon, Mar 31, 2014 at 4:16 PM, <erg@chromium.org> wrote: > > https://codereview.chromium.org/213283004/diff/120001/ > chrome/browser/ui/libgtk2ui/gtk2_key_bindings_handler.cc ...
6 years, 8 months ago (2014-03-31 23:29:40 UTC) #12
Elliot Glaysher
On 2014/03/31 23:29:40, piman wrote: > On Mon, Mar 31, 2014 at 4:16 PM, <mailto:erg@chromium.org> ...
6 years, 8 months ago (2014-03-31 23:31:08 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-03-31 23:55:03 UTC) #14
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=58695
6 years, 8 months ago (2014-03-31 23:55:03 UTC) #15
Elliot Glaysher
sky: requesting owners stamp for chrome/browser/ui/browser_command_controller.cc
6 years, 8 months ago (2014-04-01 00:17:06 UTC) #16
sky
Said file LGTM
6 years, 8 months ago (2014-04-01 00:24:14 UTC) #17
Elliot Glaysher
The CQ bit was checked by erg@chromium.org
6 years, 8 months ago (2014-04-01 00:26:56 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erg@chromium.org/213283004/140001
6 years, 8 months ago (2014-04-01 00:27:31 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-01 03:57:02 UTC) #20
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) net_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=291720
6 years, 8 months ago (2014-04-01 03:57:03 UTC) #21
Elliot Glaysher
6 years, 8 months ago (2014-04-01 17:32:41 UTC) #22
Message was sent while issue was closed.
Committed patchset #8 manually as r260900 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698