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

Unified Diff: ui/views/cocoa/views_nswindow_delegate.mm

Issue 1690543004: MacViews: Implement Full Keyboard Access. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix FocusManagerTest.StoreFocusedView Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/views/cocoa/views_nswindow_delegate.mm
diff --git a/ui/views/cocoa/views_nswindow_delegate.mm b/ui/views/cocoa/views_nswindow_delegate.mm
index 75346a6a8076dadb929abc2f858e5a2cf57e6892..18a8703479ad630a998a38cf1e11dd5da4b3b396 100644
--- a/ui/views/cocoa/views_nswindow_delegate.mm
+++ b/ui/views/cocoa/views_nswindow_delegate.mm
@@ -43,6 +43,13 @@
parent_->OnVisibilityChanged();
}
+- (void)onFullKeyboardAccessModeChanged:(NSNotification*)notification {
+ parent_->native_widget_mac()
tapted 2016/02/23 03:01:19 I think nicer would be a new method on BridgedCont
karandeepb 2016/03/15 02:19:50 Done.
+ ->GetWidget()
+ ->GetFocusManager()
+ ->SetKeyboardAccessibility([NSApp isFullKeyboardAccessEnabled]);
+}
+
- (void)onWindowWillDisplay {
parent_->OnVisibilityChangedTo(true);
}

Powered by Google App Engine
This is Rietveld 408576698