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

Issue 265693009: Makes permission bubble properly handle browser-type keyboard events. (Closed)

Created:
6 years, 7 months ago by leng
Modified:
6 years, 7 months ago
Reviewers:
groby-ooo-7-16
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Makes permission bubble properly handle browser-type keyboard events. Specifically, subclasses InfoBubbleWindow with the sole purpose of catching calls to -performKeyEquivalent: and forward them to the parent window. Longer explanation: The base implementation of -performKeyEquivalent:, found in ChromeEventProcessingWindow, attempts to hand browser key events off to the window’s responder or delegate. The InfoBubbleWindow's responder and delegate do not implement the correct protocols to handle the events, and so the events are not completed. This subclasses -performKeyEquivalent: to send the events to the parent window, which, if it is a browser window, will have the correct responder and thus handle the events. BUG=367206 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267996

Patch Set 1 #

Total comments: 2

Patch Set 2 : using browser event utils #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -5 lines) Patch
M chrome/browser/ui/cocoa/website_settings/permission_bubble_controller.mm View 1 4 chunks +25 lines, -5 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
leng
6 years, 7 months ago (2014-05-02 00:45:53 UTC) #1
groby-ooo-7-16
https://codereview.chromium.org/265693009/diff/1/chrome/browser/ui/cocoa/website_settings/permission_bubble_controller.mm File chrome/browser/ui/cocoa/website_settings/permission_bubble_controller.mm (right): https://codereview.chromium.org/265693009/diff/1/chrome/browser/ui/cocoa/website_settings/permission_bubble_controller.mm#newcode132 chrome/browser/ui/cocoa/website_settings/permission_bubble_controller.mm:132: // permission bubble to its parent window, which is ...
6 years, 7 months ago (2014-05-02 01:43:25 UTC) #2
leng
https://codereview.chromium.org/265693009/diff/1/chrome/browser/ui/cocoa/website_settings/permission_bubble_controller.mm File chrome/browser/ui/cocoa/website_settings/permission_bubble_controller.mm (right): https://codereview.chromium.org/265693009/diff/1/chrome/browser/ui/cocoa/website_settings/permission_bubble_controller.mm#newcode132 chrome/browser/ui/cocoa/website_settings/permission_bubble_controller.mm:132: // permission bubble to its parent window, which is ...
6 years, 7 months ago (2014-05-02 16:24:58 UTC) #3
groby-ooo-7-16
lgtm
6 years, 7 months ago (2014-05-02 22:14:39 UTC) #4
leng
The CQ bit was checked by leng@chromium.org
6 years, 7 months ago (2014-05-02 22:21:37 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leng@chromium.org/265693009/20001
6 years, 7 months ago (2014-05-02 22:22:13 UTC) #6
commit-bot: I haz the power
6 years, 7 months ago (2014-05-03 01:06:08 UTC) #7
Message was sent while issue was closed.
Change committed as 267996

Powered by Google App Engine
This is Rietveld 408576698