Description[MacViews] Use ChromeCommandDispatcherDelegate to handle keyboard shortcuts.
This ensures that global keyboard shortcuts (e.g. Cmd+1) work when
no WebContents has focus.
Also add shortcuts defined in global_keyboard_shortcuts_mac.h into
c/b/ui/views/accelerator_table.cc so that global shortcuts work while
the WebContents does have focus.
At this point, all keyboard shortcuts should work with the exception
that many are not yet enabled in the main menu because MacViews
lacks NSUserInterfaceValidations.
BUG=508438
Committed: https://crrev.com/347ce6ba6128466a34f742f35d37df8a12aea2eb
Cr-Commit-Position: refs/heads/master@{#346825}
Patch Set 1 #Patch Set 2 : Sync and rebase. #Patch Set 3 : Only use command delegate if it's set. #Patch Set 4 : Sync. #
Total comments: 9
Patch Set 5 : Address comments. #Patch Set 6 : Address comments. #
Total comments: 2
Patch Set 7 : Address comments. Sync #Patch Set 8 : Update NativeWidgetMacTest #
Total comments: 2
Patch Set 9 : Address comments. #Depends on Patchset: Messages
Total messages: 17 (4 generated)
|