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

Issue 10446076: Handle Escape key on constrained window. (Closed)

Created:
8 years, 6 months ago by yoshiki
Modified:
8 years, 6 months ago
Reviewers:
sky, kochi, Evan Stade
CC:
chromium-reviews, arv (Not doing code reviews)
Visibility:
Public.

Description

Handle Escape key on constrained window. Escape key is used to be handled by JS-side in each dialog implementation. This CL removes JS code and change to handle Escape key by C++-side in constrained window implementation globally. This CL is based with based on http://crrev.com/127012 (reverted). BUG=119684 TEST=manual, trybots pass on win and linux_chromeos Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=143560

Patch Set 1 #

Total comments: 8

Patch Set 2 : review fix #

Total comments: 4

Patch Set 3 : sync #

Patch Set 4 : review fix #

Total comments: 6

Patch Set 5 : Review fix #

Patch Set 6 : Review fix and Make sure to work on Windows. #

Patch Set 7 : sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -9 lines) Patch
M chrome/browser/resources/certificate_viewer.js View 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview.js View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/constrained_web_dialog_delegate_views.cc View 1 2 3 4 5 6 5 chunks +31 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
yoshiki
kochi: could you take a look? estade: could you approve this?
8 years, 6 months ago (2012-05-30 06:15:41 UTC) #1
kochi
Thanks for working on this, Yoshiki! I commented some, but someone familiar with Aura code ...
8 years, 6 months ago (2012-05-30 07:17:31 UTC) #2
yoshiki
+sky: Could you take a look at constrained_web_dialog_delegate_views.cc? https://chromiumcodereview.appspot.com/10446076/diff/1/chrome/browser/ui/views/constrained_web_dialog_delegate_views.cc File chrome/browser/ui/views/constrained_web_dialog_delegate_views.cc (right): https://chromiumcodereview.appspot.com/10446076/diff/1/chrome/browser/ui/views/constrained_web_dialog_delegate_views.cc#newcode130 chrome/browser/ui/views/constrained_web_dialog_delegate_views.cc:130: AcceleratorPressed(const ...
8 years, 6 months ago (2012-05-30 08:43:15 UTC) #3
yoshiki
+sky: Could you take a look at constrained_web_dialog_delegate_views.cc?
8 years, 6 months ago (2012-05-30 08:43:48 UTC) #4
sky
https://chromiumcodereview.appspot.com/10446076/diff/6001/chrome/browser/ui/views/constrained_web_dialog_delegate_views.cc File chrome/browser/ui/views/constrained_web_dialog_delegate_views.cc (right): https://chromiumcodereview.appspot.com/10446076/diff/6001/chrome/browser/ui/views/constrained_web_dialog_delegate_views.cc#newcode15 chrome/browser/ui/views/constrained_web_dialog_delegate_views.cc:15: #include "ui/aura/event.h" Only include aura if aura is defined. ...
8 years, 6 months ago (2012-05-30 14:59:48 UTC) #5
Evan Stade
1) doesn't this break mac and linux? 2) am I correct in assuming that this ...
8 years, 6 months ago (2012-05-30 21:05:47 UTC) #6
yoshiki
sky: PTAL? estade: Comments inline. > 1) doesn't this break mac and linux? You're right. ...
8 years, 6 months ago (2012-05-31 18:50:40 UTC) #7
Evan Stade
lgtm if you want, you can use grit to platform ifdef the escape handling in ...
8 years, 6 months ago (2012-05-31 19:12:56 UTC) #8
sky
You'll need to verify this doesn't cause duplicating handling with print preview on windows. https://chromiumcodereview.appspot.com/10446076/diff/3004/chrome/browser/ui/views/constrained_web_dialog_delegate_views.cc ...
8 years, 6 months ago (2012-05-31 21:38:23 UTC) #9
yoshiki
sky: Sorry for late response. I confirmed Print Preview Dialog on Windows. PTAL http://codereview.chromium.org/10446076/diff/3004/chrome/browser/ui/views/constrained_web_dialog_delegate_views.cc File ...
8 years, 6 months ago (2012-06-18 15:45:32 UTC) #10
sky
LGTM
8 years, 6 months ago (2012-06-18 16:58:14 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoshiki@chromium.org/10446076/31001
8 years, 6 months ago (2012-06-22 06:04:28 UTC) #12
commit-bot: I haz the power
8 years, 6 months ago (2012-06-22 08:08:40 UTC) #13
Change committed as 143560

Powered by Google App Engine
This is Rietveld 408576698