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

Side by Side Diff: ui/views/cocoa/bridged_content_view.mm

Issue 420653003: MacViews: Accessibility bridge (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix double delete. Add NativeViewAccessibilityTest. Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "ui/views/cocoa/bridged_content_view.h" 5 #import "ui/views/cocoa/bridged_content_view.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/strings/sys_string_conversions.h" 8 #include "base/strings/sys_string_conversions.h"
9 #include "grit/ui_strings.h" 9 #include "grit/ui_strings.h"
10 #include "ui/base/ime/text_input_client.h" 10 #include "ui/base/ime/text_input_client.h"
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 286
287 - (void)unmarkText { 287 - (void)unmarkText {
288 if (textInputClient_) 288 if (textInputClient_)
289 textInputClient_->ConfirmCompositionText(); 289 textInputClient_->ConfirmCompositionText();
290 } 290 }
291 291
292 - (NSArray*)validAttributesForMarkedText { 292 - (NSArray*)validAttributesForMarkedText {
293 return @[]; 293 return @[];
294 } 294 }
295 295
296 // NSAccessibility
tapted 2014/07/29 23:58:21 nit: // NSAccessibility informal protocol implemen
Andre 2014/07/30 00:18:00 Done.
297
298 - (id)accessibilityAttributeValue:(NSString*)attribute {
299 if ([attribute isEqualToString:NSAccessibilityChildrenAttribute]) {
300 return @[ hostedView_->GetNativeViewAccessible() ];
301 }
302
303 return [super accessibilityAttributeValue:attribute];
304 }
305
306 - (id)accessibilityHitTest:(NSPoint)point {
307 return [hostedView_->GetNativeViewAccessible() accessibilityHitTest:point];
308 }
309
296 @end 310 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698