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

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

Issue 2210763002: MacViews a11y: Sync VoiceOver cursor with keyboard focus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Delete view.* changes, other review comments. Created 4 years, 2 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/bridged_content_view.mm
diff --git a/ui/views/cocoa/bridged_content_view.mm b/ui/views/cocoa/bridged_content_view.mm
index 1623e32b8ede82ff2b578ad5500010dca09f991c..cb0c0f65becb80339882f1b38356c79728ed462d 100644
--- a/ui/views/cocoa/bridged_content_view.mm
+++ b/ui/views/cocoa/bridged_content_view.mm
@@ -25,6 +25,7 @@
#include "ui/gfx/path.h"
#import "ui/gfx/path_mac.h"
#include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h"
+#include "ui/views/accessibility/native_view_accessibility.h"
tapted 2016/10/04 08:17:39 nit: this might not be required now
Patti Lor 2016/10/05 05:47:23 Done.
#import "ui/views/cocoa/bridged_native_widget.h"
#import "ui/views/cocoa/drag_drop_client_mac.h"
#include "ui/views/controls/menu/menu_config.h"
@@ -1362,4 +1363,10 @@ ui::KeyEvent GetCharacterEventFromNSEvent(NSEvent* event) {
return [hostedView_->GetNativeViewAccessible() accessibilityHitTest:point];
}
+- (id)accessibilityFocusedUIElement {
+ if (!hostedView_)
+ return nil;
+ return [hostedView_->GetNativeViewAccessible() accessibilityFocusedUIElement];
+}
+
@end

Powered by Google App Engine
This is Rietveld 408576698