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

Side by Side Diff: chrome/browser/extensions/api/automation_internal/automation_internal_api.cc

Issue 2474363002: MacViews/a11y: Accessibility actions use AXActionData in AXPlatformNodeDelegate. (Closed)
Patch Set: Review comments. Created 4 years, 1 month 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 | « no previous file | chrome/browser/ui/aura/accessibility/automation_manager_aura.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "chrome/browser/extensions/api/automation_internal/automation_internal_ api.h" 5 #include "chrome/browser/extensions/api/automation_internal/automation_internal_ api.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 api::automation_internal::PerformAction::Params* params, 350 api::automation_internal::PerformAction::Params* params,
351 AutomationActionAdapter* adapter) { 351 AutomationActionAdapter* adapter) {
352 ui::AXActionData action; 352 ui::AXActionData action;
353 action.target_node_id = params->args.automation_node_id; 353 action.target_node_id = params->args.automation_node_id;
354 switch (params->args.action_type) { 354 switch (params->args.action_type) {
355 case api::automation_internal::ACTION_TYPE_DODEFAULT: 355 case api::automation_internal::ACTION_TYPE_DODEFAULT:
356 action.action = ui::AX_ACTION_DO_DEFAULT; 356 action.action = ui::AX_ACTION_DO_DEFAULT;
357 adapter->PerformAction(action); 357 adapter->PerformAction(action);
358 break; 358 break;
359 case api::automation_internal::ACTION_TYPE_FOCUS: 359 case api::automation_internal::ACTION_TYPE_FOCUS:
360 action.action = ui::AX_ACTION_SET_FOCUS; 360 action.action = ui::AX_ACTION_FOCUS;
361 adapter->PerformAction(action); 361 adapter->PerformAction(action);
362 break; 362 break;
363 case api::automation_internal::ACTION_TYPE_MAKEVISIBLE: 363 case api::automation_internal::ACTION_TYPE_MAKEVISIBLE:
364 action.action = ui::AX_ACTION_SCROLL_TO_MAKE_VISIBLE; 364 action.action = ui::AX_ACTION_SCROLL_TO_MAKE_VISIBLE;
365 adapter->PerformAction(action); 365 adapter->PerformAction(action);
366 break; 366 break;
367 case api::automation_internal::ACTION_TYPE_SETSELECTION: { 367 case api::automation_internal::ACTION_TYPE_SETSELECTION: {
368 api::automation_internal::SetSelectionParams selection_params; 368 api::automation_internal::SetSelectionParams selection_params;
369 EXTENSION_FUNCTION_VALIDATE( 369 EXTENSION_FUNCTION_VALIDATE(
370 api::automation_internal::SetSelectionParams::Populate( 370 api::automation_internal::SetSelectionParams::Populate(
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 if (!error.empty()) { 465 if (!error.empty()) {
466 Respond(Error(error)); 466 Respond(Error(error));
467 return; 467 return;
468 } 468 }
469 469
470 Respond( 470 Respond(
471 OneArgument(base::MakeUnique<base::FundamentalValue>(result_acc_obj_id))); 471 OneArgument(base::MakeUnique<base::FundamentalValue>(result_acc_obj_id)));
472 } 472 }
473 473
474 } // namespace extensions 474 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/aura/accessibility/automation_manager_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698