OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include <atlbase.h> | 5 #include <atlbase.h> |
6 #include <atlcom.h> | 6 #include <atlcom.h> |
7 #include <limits.h> | 7 #include <limits.h> |
8 #include <oleacc.h> | 8 #include <oleacc.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 VARIANT var_id, VARIANT* state) { | 502 VARIANT var_id, VARIANT* state) { |
503 AXPlatformNodeWin* target; | 503 AXPlatformNodeWin* target; |
504 COM_OBJECT_VALIDATE_VAR_ID_1_ARG_AND_GET_TARGET(var_id, state, target); | 504 COM_OBJECT_VALIDATE_VAR_ID_1_ARG_AND_GET_TARGET(var_id, state, target); |
505 state->vt = VT_I4; | 505 state->vt = VT_I4; |
506 state->lVal = target->MSAAState(); | 506 state->lVal = target->MSAAState(); |
507 return S_OK; | 507 return S_OK; |
508 } | 508 } |
509 | 509 |
510 STDMETHODIMP AXPlatformNodeWin::get_accHelp( | 510 STDMETHODIMP AXPlatformNodeWin::get_accHelp( |
511 VARIANT var_id, BSTR* help) { | 511 VARIANT var_id, BSTR* help) { |
| 512 COM_OBJECT_VALIDATE_1_ARG(help); |
512 return S_FALSE; | 513 return S_FALSE; |
513 } | 514 } |
514 | 515 |
515 STDMETHODIMP AXPlatformNodeWin::get_accValue(VARIANT var_id, BSTR* value) { | 516 STDMETHODIMP AXPlatformNodeWin::get_accValue(VARIANT var_id, BSTR* value) { |
516 AXPlatformNodeWin* target; | 517 AXPlatformNodeWin* target; |
517 COM_OBJECT_VALIDATE_VAR_ID_1_ARG_AND_GET_TARGET(var_id, value, target); | 518 COM_OBJECT_VALIDATE_VAR_ID_1_ARG_AND_GET_TARGET(var_id, value, target); |
518 return target->GetStringAttributeAsBstr(ui::AX_ATTR_VALUE, value); | 519 return target->GetStringAttributeAsBstr(ui::AX_ATTR_VALUE, value); |
519 } | 520 } |
520 | 521 |
521 STDMETHODIMP AXPlatformNodeWin::put_accValue(VARIANT var_id, | 522 STDMETHODIMP AXPlatformNodeWin::put_accValue(VARIANT var_id, |
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1281 | 1282 |
1282 AXPlatformNodeBase* base = | 1283 AXPlatformNodeBase* base = |
1283 FromNativeViewAccessible(node->GetNativeViewAccessible()); | 1284 FromNativeViewAccessible(node->GetNativeViewAccessible()); |
1284 if (base && !IsDescendant(base)) | 1285 if (base && !IsDescendant(base)) |
1285 base = nullptr; | 1286 base = nullptr; |
1286 | 1287 |
1287 return static_cast<AXPlatformNodeWin*>(base); | 1288 return static_cast<AXPlatformNodeWin*>(base); |
1288 } | 1289 } |
1289 | 1290 |
1290 } // namespace ui | 1291 } // namespace ui |
OLD | NEW |