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

Issue 303002: Make window cycling work even if you change it to something else than cmd-` in sysprefs. (Closed)

Created:
11 years, 2 months ago by Nico
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Make window cycling work even if you change it to something else than cmd-` in sysprefs. Instead of just dispatching to the menu after a key comes back from the renderer, do a complete re-dispatch to NSApp (so that the event gets to the menu and cmd-` handlers) but then ignore it when it comes back to the web (because we already sent this event to the renderer once). BUG=24817 TEST=Open sysprefs, change keyboard shortcut for "Move focus to next window in active application" to e.g. cmd-\. Open two chrome windows, focus the web, hit cmd-\. It should switch windows. All other keyboard shortcuts should still work (test that ctrl-tab works when web has focus, test backspace when text field is focussed in web, when background is focussed in web, when IME is active, test hitting cmd-1/2 when omnibox or web have focus, hit cmd-left when omnibox, textbox in web, background in web has focus, test that cmd-f in docs still opens doc's find interface) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29458

Patch Set 1 #

Patch Set 2 : rwhv and app only communicate through the window, not directly #

Patch Set 3 : add some comments #

Total comments: 4

Patch Set 4 : Fix spelling. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -49 lines) Patch
M chrome/browser/chrome_application_mac.mm View 1 2 chunks +5 lines, -13 lines 0 comments Download
M chrome/browser/cocoa/chrome_event_processing_window.h View 1 2 1 chunk +14 lines, -1 line 0 comments Download
M chrome/browser/cocoa/chrome_event_processing_window.mm View 1 2 chunks +35 lines, -3 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_mac.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_view_mac.mm View 1 2 3 2 chunks +13 lines, -32 lines 2 comments Download

Messages

Total messages: 10 (0 generated)
Nico
11 years, 2 months ago (2009-10-19 20:05:41 UTC) #1
Avi (use Gerrit)
The growing complexity of this code makes me sadder and sadder. Overall LG with comments. ...
11 years, 2 months ago (2009-10-19 20:12:10 UTC) #2
Nico
I'm sad about the complexity, too. We tried the less complex way first, but Cocoa ...
11 years, 2 months ago (2009-10-19 20:22:57 UTC) #3
Nico
I'm going to submit this with Avi's LG. Jeremy & James, feel free to leave ...
11 years, 2 months ago (2009-10-19 21:15:49 UTC) #4
James Su
LGTM. Thanks for your great work. James Su On 2009/10/19 21:15:49, Nico wrote: > I'm ...
11 years, 2 months ago (2009-10-20 00:40:19 UTC) #5
pink (ping after 24hrs)
http://codereview.chromium.org/303002/diff/5002/6008 File chrome/browser/tab_contents/tab_contents_view_mac.mm (right): http://codereview.chromium.org/303002/diff/5002/6008#newcode12 Line 12: #import "chrome/browser/chrome_application_mac.h" i don't see why this include ...
11 years, 2 months ago (2009-10-20 16:14:43 UTC) #6
Nico
http://codereview.chromium.org/303002/diff/5002/6008 File chrome/browser/tab_contents/tab_contents_view_mac.mm (right): http://codereview.chromium.org/303002/diff/5002/6008#newcode12 Line 12: #import "chrome/browser/chrome_application_mac.h" On 2009/10/20 16:14:44, pink wrote: > ...
11 years, 2 months ago (2009-10-20 16:32:24 UTC) #7
jeremy
Nico: Thanks for fixing this! Regarding Avi's comment, I think we're to the point where ...
11 years, 2 months ago (2009-10-21 12:36:14 UTC) #8
Avi (use Gerrit)
On 2009/10/21 12:36:14, jeremy wrote: > we absolutely need a wiki article Or a block ...
11 years, 2 months ago (2009-10-21 15:05:19 UTC) #9
Nico
11 years, 2 months ago (2009-10-21 15:09:31 UTC) #10
Ok, I'll write a wiki page (and tests). Where would I put it? On the
"design documents" section at dev.chromium.org?

On Wed, Oct 21, 2009 at 8:05 AM,  <avi@chromium.org> wrote:
> On 2009/10/21 12:36:14, jeremy wrote:
>>
>> we absolutely need a wiki article
>
> Or a block comment in the code (that's my style; see what I've done in the
> mouse
> event file). Either way, but get it down in words before it falls away from
> your
> mind.
>
> http://codereview.chromium.org/303002
>

Powered by Google App Engine
This is Rietveld 408576698