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

Issue 14161009: WebUIHandler for chrome://keyboard (Closed)

Created:
7 years, 8 months ago by bryeung
Modified:
7 years, 8 months ago
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

WebUIHandler for chrome://keyboard This also moves processing of the KeyEvent JSON structure into ui/keyboard/ from chrome/browser/extensions/api/input/input.cc. The JS is setup with a separate implementation of send_key_event.js (send_key_event_webui.js) that is mapped to the send_key_event.js resource by the WebUIController. This allows the WebUI and extension code to be entirely shared. BUG=222801 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195218

Patch Set 1 #

Total comments: 4

Patch Set 2 : review comments #

Total comments: 2

Patch Set 3 : review comments #

Total comments: 8

Patch Set 4 : review comments #

Patch Set 5 : fix license headers #

Unified diffs Side-by-side diffs Delta from patch set Stats (+296 lines, -132 lines) Patch
M chrome/browser/extensions/api/input/input.cc View 1 chunk +17 lines, -101 lines 0 comments Download
M chrome/browser/extensions/image_loader.cc View 1 1 chunk +6 lines, -5 lines 0 comments Download
M ui/keyboard/keyboard.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/keyboard/keyboard_resources.grd View 2 chunks +9 lines, -7 lines 0 comments Download
M ui/keyboard/keyboard_ui_controller.cc View 1 2 3 chunks +8 lines, -5 lines 0 comments Download
A ui/keyboard/keyboard_ui_handler.h View 1 2 3 1 chunk +33 lines, -0 lines 0 comments Download
A ui/keyboard/keyboard_ui_handler.cc View 1 2 1 chunk +47 lines, -0 lines 0 comments Download
M ui/keyboard/keyboard_util.h View 1 chunk +19 lines, -0 lines 0 comments Download
M ui/keyboard/keyboard_util.cc View 1 2 chunks +125 lines, -0 lines 0 comments Download
M ui/keyboard/resources/common.js View 1 chunk +1 line, -14 lines 0 comments Download
M ui/keyboard/resources/index.html View 1 chunk +1 line, -0 lines 0 comments Download
A ui/keyboard/resources/send_key_event.js View 1 2 3 4 1 chunk +18 lines, -0 lines 0 comments Download
A ui/keyboard/resources/send_key_event_webui.js View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
bryeung
Here's the dual webui/extension implementation. If it looks okay, I'll go hunting for OWNERS.
7 years, 8 months ago (2013-04-17 18:11:33 UTC) #1
sadrul
LGTM https://codereview.chromium.org/14161009/diff/1/ui/keyboard/keyboard_ui_handler.h File ui/keyboard/keyboard_ui_handler.h (right): https://codereview.chromium.org/14161009/diff/1/ui/keyboard/keyboard_ui_handler.h#newcode23 ui/keyboard/keyboard_ui_handler.h:23: KeyboardUIHandler(); Is having this useful? https://codereview.chromium.org/14161009/diff/1/ui/keyboard/keyboard_util.cc File ui/keyboard/keyboard_util.cc ...
7 years, 8 months ago (2013-04-17 19:04:34 UTC) #2
bryeung
+ben: ui/ OWNERS +asargent: c/b/extensions OWNERS Thanks Sadrul! https://codereview.chromium.org/14161009/diff/1/ui/keyboard/keyboard_ui_handler.h File ui/keyboard/keyboard_ui_handler.h (right): https://codereview.chromium.org/14161009/diff/1/ui/keyboard/keyboard_ui_handler.h#newcode23 ui/keyboard/keyboard_ui_handler.h:23: KeyboardUIHandler(); ...
7 years, 8 months ago (2013-04-17 19:31:46 UTC) #3
asargent_no_longer_on_chrome
extension parts lgtm
7 years, 8 months ago (2013-04-17 20:41:49 UTC) #4
sadrul
https://codereview.chromium.org/14161009/diff/3002/ui/keyboard/keyboard_ui_handler.cc File ui/keyboard/keyboard_ui_handler.cc (right): https://codereview.chromium.org/14161009/diff/3002/ui/keyboard/keyboard_ui_handler.cc#newcode42 ui/keyboard/keyboard_ui_handler.cc:42: root_window_->AsRootWindowHostDelegate()->OnHostKeyEvent(event.get()); Does it make sense to use web_ui()->GetWebContents()->GetView()->GetNativeView()->GetRootWindow() here ...
7 years, 8 months ago (2013-04-18 02:58:28 UTC) #5
bryeung
https://codereview.chromium.org/14161009/diff/3002/ui/keyboard/keyboard_ui_handler.cc File ui/keyboard/keyboard_ui_handler.cc (right): https://codereview.chromium.org/14161009/diff/3002/ui/keyboard/keyboard_ui_handler.cc#newcode42 ui/keyboard/keyboard_ui_handler.cc:42: root_window_->AsRootWindowHostDelegate()->OnHostKeyEvent(event.get()); On 2013/04/18 02:58:28, sadrul wrote: > Does it ...
7 years, 8 months ago (2013-04-18 14:42:36 UTC) #6
sadrul
Nice. Thanks! SLGTM
7 years, 8 months ago (2013-04-18 14:54:19 UTC) #7
Ben Goodger (Google)
lgtm https://codereview.chromium.org/14161009/diff/10001/ui/keyboard/keyboard_ui_controller.h File ui/keyboard/keyboard_ui_controller.h (right): https://codereview.chromium.org/14161009/diff/10001/ui/keyboard/keyboard_ui_controller.h#newcode20 ui/keyboard/keyboard_ui_controller.h:20: // Creates a WebUIController for chrome://keyboard. seems unnecessary ...
7 years, 8 months ago (2013-04-18 19:50:38 UTC) #8
bryeung
Thanks all! https://codereview.chromium.org/14161009/diff/10001/ui/keyboard/keyboard_ui_controller.h File ui/keyboard/keyboard_ui_controller.h (right): https://codereview.chromium.org/14161009/diff/10001/ui/keyboard/keyboard_ui_controller.h#newcode20 ui/keyboard/keyboard_ui_controller.h:20: // Creates a WebUIController for chrome://keyboard. On ...
7 years, 8 months ago (2013-04-18 20:05:07 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bryeung@chromium.org/14161009/20001
7 years, 8 months ago (2013-04-18 21:36:50 UTC) #10
commit-bot: I haz the power
Presubmit check for 14161009-20001 failed and returned exit status 1. INFO:root:Found 13 file(s). Running presubmit ...
7 years, 8 months ago (2013-04-18 21:36:58 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bryeung@chromium.org/14161009/20001
7 years, 8 months ago (2013-04-18 21:43:28 UTC) #12
commit-bot: I haz the power
Presubmit check for 14161009-20001 failed and returned exit status 1. INFO:root:Found 13 file(s). Running presubmit ...
7 years, 8 months ago (2013-04-18 21:43:38 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bryeung@chromium.org/14161009/20001
7 years, 8 months ago (2013-04-19 14:43:32 UTC) #14
commit-bot: I haz the power
Presubmit check for 14161009-20001 failed and returned exit status 1. INFO:root:Found 13 file(s). Running presubmit ...
7 years, 8 months ago (2013-04-19 14:43:37 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bryeung@chromium.org/14161009/27001
7 years, 8 months ago (2013-04-19 14:45:41 UTC) #16
commit-bot: I haz the power
7 years, 8 months ago (2013-04-19 17:28:39 UTC) #17
Message was sent while issue was closed.
Change committed as 195218

Powered by Google App Engine
This is Rietveld 408576698