OLD | NEW |
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 Loading... |
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 informal protocol implementation. |
| 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 |
OLD | NEW |