| 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 #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 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 case api::automation_internal::ACTION_TYPE_SHOWCONTEXTMENU: { | 380 case api::automation_internal::ACTION_TYPE_SHOWCONTEXTMENU: { |
| 381 action.action = ui::AX_ACTION_SHOW_CONTEXT_MENU; | 381 action.action = ui::AX_ACTION_SHOW_CONTEXT_MENU; |
| 382 adapter->PerformAction(action); | 382 adapter->PerformAction(action); |
| 383 break; | 383 break; |
| 384 } | 384 } |
| 385 case api::automation_internal::ACTION_TYPE_SETACCESSIBILITYFOCUS: { | 385 case api::automation_internal::ACTION_TYPE_SETACCESSIBILITYFOCUS: { |
| 386 action.action = ui::AX_ACTION_SET_ACCESSIBILITY_FOCUS; | 386 action.action = ui::AX_ACTION_SET_ACCESSIBILITY_FOCUS; |
| 387 adapter->PerformAction(action); | 387 adapter->PerformAction(action); |
| 388 break; | 388 break; |
| 389 } | 389 } |
| 390 case api::automation_internal:: | |
| 391 ACTION_TYPE_SETSEQUENTIALFOCUSNAVIGATIONSTARTINGPOINT: { | |
| 392 action.action = | |
| 393 ui::AX_ACTION_SET_SEQUENTIAL_FOCUS_NAVIGATION_STARTING_POINT; | |
| 394 adapter->PerformAction(action); | |
| 395 break; | |
| 396 } | |
| 397 default: | 390 default: |
| 398 NOTREACHED(); | 391 NOTREACHED(); |
| 399 } | 392 } |
| 400 return RespondNow(NoArguments()); | 393 return RespondNow(NoArguments()); |
| 401 } | 394 } |
| 402 | 395 |
| 403 ExtensionFunction::ResponseAction | 396 ExtensionFunction::ResponseAction |
| 404 AutomationInternalEnableDesktopFunction::Run() { | 397 AutomationInternalEnableDesktopFunction::Run() { |
| 405 #if defined(USE_AURA) | 398 #if defined(USE_AURA) |
| 406 const AutomationInfo* automation_info = AutomationInfo::Get(extension()); | 399 const AutomationInfo* automation_info = AutomationInfo::Get(extension()); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 if (!error.empty()) { | 458 if (!error.empty()) { |
| 466 Respond(Error(error)); | 459 Respond(Error(error)); |
| 467 return; | 460 return; |
| 468 } | 461 } |
| 469 | 462 |
| 470 Respond( | 463 Respond( |
| 471 OneArgument(base::MakeUnique<base::FundamentalValue>(result_acc_obj_id))); | 464 OneArgument(base::MakeUnique<base::FundamentalValue>(result_acc_obj_id))); |
| 472 } | 465 } |
| 473 | 466 |
| 474 } // namespace extensions | 467 } // namespace extensions |
| OLD | NEW |