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 2871073002: cros: Bind hangup red button on remote controller to close web dialog (Closed)

Created:
3 years, 7 months ago by Qiang(Joe) Xu
Modified:
3 years, 7 months ago
Reviewers:
xiyuan, sky
CC:
chromium-reviews, tfarina, alemate+watch_chromium.org, achuith+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cros: Bind hangup red button on remote controller to close web dialog Changes: The hangup red button on remote controller is mapped to 'Shift + Browser Back (F1)'. Add this accelerator to allow closing web dialog. BUG=700128 TEST=tested with hotrod remote controller and added test coverage Review-Url: https://codereview.chromium.org/2871073002 Cr-Commit-Position: refs/heads/master@{#471864} Committed: https://chromium.googlesource.com/chromium/src/+/9e608edc70f96a0d9ce6aef52d88928d851a7fe8

Patch Set 1 #

Patch Set 2 : just add another accelerator #

Patch Set 3 : for discussion #

Total comments: 1

Patch Set 4 : feedback from xiyuan #

Total comments: 12

Patch Set 5 : address comments #

Patch Set 6 : added test coverage #

Total comments: 6

Patch Set 7 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -39 lines) Patch
M chrome/browser/chromeos/login/ui/login_web_dialog.h View 1 2 3 4 5 2 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/ui/login_web_dialog.cc View 1 2 3 4 5 6 5 chunks +28 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/login/ui/login_web_dialog_browsertest.cc View 1 2 3 4 5 6 1 chunk +20 lines, -8 lines 0 comments Download
M chrome/browser/ui/browser_dialogs.h View 1 2 3 4 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/chrome_web_dialog_view.cc View 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M ui/views/controls/webview/web_dialog_view.h View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M ui/views/controls/webview/web_dialog_view.cc View 1 2 3 4 chunks +15 lines, -12 lines 0 comments Download
M ui/views/test/widget_test.h View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M ui/views/test/widget_test.cc View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M ui/web_dialogs/web_dialog_delegate.h View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M ui/web_dialogs/web_dialog_delegate.cc View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (19 generated)
Qiang(Joe) Xu
Hi xiyuan, please take a look first, thanks!
3 years, 7 months ago (2017-05-10 02:32:52 UTC) #3
xiyuan
Can we extend WebDialogDelegate interface to - provide additional accelerators to WebDialogView; - have a ...
3 years, 7 months ago (2017-05-10 16:48:56 UTC) #8
Qiang(Joe) Xu
On 2017/05/10 16:48:56, xiyuan wrote: > Can we extend WebDialogDelegate interface to > - provide ...
3 years, 7 months ago (2017-05-10 19:26:10 UTC) #10
xiyuan
On 2017/05/10 19:26:10, Qiang(Joe) Xu wrote: > On 2017/05/10 16:48:56, xiyuan wrote: > > Can ...
3 years, 7 months ago (2017-05-10 19:43:00 UTC) #11
Qiang(Joe) Xu
On 2017/05/10 19:43:00, xiyuan wrote: > On 2017/05/10 19:26:10, Qiang(Joe) Xu wrote: > > On ...
3 years, 7 months ago (2017-05-10 21:00:27 UTC) #12
xiyuan
https://codereview.chromium.org/2871073002/diff/40001/ui/web_dialogs/web_dialog_delegate.h File ui/web_dialogs/web_dialog_delegate.h (right): https://codereview.chromium.org/2871073002/diff/40001/ui/web_dialogs/web_dialog_delegate.h#newcode143 ui/web_dialogs/web_dialog_delegate.h:143: virtual bool AdditionalAccelerator(const ui::Accelerator& accelerator) const { I am ...
3 years, 7 months ago (2017-05-10 21:14:56 UTC) #13
Qiang(Joe) Xu
On 2017/05/10 21:14:56, xiyuan wrote: > https://codereview.chromium.org/2871073002/diff/40001/ui/web_dialogs/web_dialog_delegate.h > File ui/web_dialogs/web_dialog_delegate.h (right): > > https://codereview.chromium.org/2871073002/diff/40001/ui/web_dialogs/web_dialog_delegate.h#newcode143 > ...
3 years, 7 months ago (2017-05-10 21:18:36 UTC) #14
Qiang(Joe) Xu
Hi xiyuan, PTAL thanks +sky for c/b/u and ui/ owner review After https://codereview.chromium.org/2875513003/ is landed, ...
3 years, 7 months ago (2017-05-10 22:40:21 UTC) #15
xiyuan
Mostly good. Let me know when I should take another look. https://codereview.chromium.org/2871073002/diff/60001/chrome/browser/chromeos/login/ui/login_web_dialog.cc File chrome/browser/chromeos/login/ui/login_web_dialog.cc (right): ...
3 years, 7 months ago (2017-05-11 04:48:27 UTC) #17
sky
https://codereview.chromium.org/2871073002/diff/60001/chrome/browser/chromeos/login/ui/login_web_dialog.cc File chrome/browser/chromeos/login/ui/login_web_dialog.cc (right): https://codereview.chromium.org/2871073002/diff/60001/chrome/browser/chromeos/login/ui/login_web_dialog.cc#newcode74 chrome/browser/chromeos/login/ui/login_web_dialog.cc:74: dialog_window_ = chrome::ShowWebDialogInContainer( Initialize dialog_window_ to null. https://codereview.chromium.org/2871073002/diff/60001/chrome/browser/chromeos/login/ui/login_web_dialog.cc#newcode185 chrome/browser/chromeos/login/ui/login_web_dialog.cc:185: ...
3 years, 7 months ago (2017-05-11 15:04:11 UTC) #18
Qiang(Joe) Xu
Hi all, comments addressed and test coverage added, PTAL, thanks https://codereview.chromium.org/2871073002/diff/60001/chrome/browser/chromeos/login/ui/login_web_dialog.cc File chrome/browser/chromeos/login/ui/login_web_dialog.cc (right): https://codereview.chromium.org/2871073002/diff/60001/chrome/browser/chromeos/login/ui/login_web_dialog.cc#newcode64 ...
3 years, 7 months ago (2017-05-12 21:50:45 UTC) #21
xiyuan
lgtm https://codereview.chromium.org/2871073002/diff/120001/chrome/browser/chromeos/login/ui/login_web_dialog.cc File chrome/browser/chromeos/login/ui/login_web_dialog.cc (right): https://codereview.chromium.org/2871073002/diff/120001/chrome/browser/chromeos/login/ui/login_web_dialog.cc#newcode182 chrome/browser/chromeos/login/ui/login_web_dialog.cc:182: return accelerators; nit: return {GetCloseAccelerator()}; https://codereview.chromium.org/2871073002/diff/120001/chrome/browser/chromeos/login/ui/login_web_dialog_browsertest.cc File chrome/browser/chromeos/login/ui/login_web_dialog_browsertest.cc ...
3 years, 7 months ago (2017-05-12 22:29:57 UTC) #24
Qiang(Joe) Xu
Updated, sky@ PTAL https://codereview.chromium.org/2871073002/diff/120001/chrome/browser/chromeos/login/ui/login_web_dialog.cc File chrome/browser/chromeos/login/ui/login_web_dialog.cc (right): https://codereview.chromium.org/2871073002/diff/120001/chrome/browser/chromeos/login/ui/login_web_dialog.cc#newcode182 chrome/browser/chromeos/login/ui/login_web_dialog.cc:182: return accelerators; On 2017/05/12 22:29:57, xiyuan ...
3 years, 7 months ago (2017-05-12 22:39:33 UTC) #25
sky
LGTM
3 years, 7 months ago (2017-05-14 16:05:12 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2871073002/160001
3 years, 7 months ago (2017-05-15 17:06:47 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/453677)
3 years, 7 months ago (2017-05-15 17:55:06 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2871073002/160001
3 years, 7 months ago (2017-05-15 17:59:29 UTC) #34
commit-bot: I haz the power
3 years, 7 months ago (2017-05-15 19:31:18 UTC) #37
Message was sent while issue was closed.
Committed patchset #7 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/9e608edc70f96a0d9ce6aef52d88...

Powered by Google App Engine
This is Rietveld 408576698