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

Side by Side Diff: ui/accessibility/platform/ax_platform_node_win.cc

Issue 2854553002: Forward BrowserAccessibilityWin::get_accHelp to the platform node. (Closed)
Patch Set: Use macro instead of if test Created 3 years, 7 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
« no previous file with comments | « content/browser/accessibility/browser_accessibility_win.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/browser/accessibility/browser_accessibility_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698