| 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 } |
| 390 default: | 397 default: |
| 391 NOTREACHED(); | 398 NOTREACHED(); |
| 392 } | 399 } |
| 393 return RespondNow(NoArguments()); | 400 return RespondNow(NoArguments()); |
| 394 } | 401 } |
| 395 | 402 |
| 396 ExtensionFunction::ResponseAction | 403 ExtensionFunction::ResponseAction |
| 397 AutomationInternalEnableDesktopFunction::Run() { | 404 AutomationInternalEnableDesktopFunction::Run() { |
| 398 #if defined(USE_AURA) | 405 #if defined(USE_AURA) |
| 399 const AutomationInfo* automation_info = AutomationInfo::Get(extension()); | 406 const AutomationInfo* automation_info = AutomationInfo::Get(extension()); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 if (!error.empty()) { | 465 if (!error.empty()) { |
| 459 Respond(Error(error)); | 466 Respond(Error(error)); |
| 460 return; | 467 return; |
| 461 } | 468 } |
| 462 | 469 |
| 463 Respond( | 470 Respond( |
| 464 OneArgument(base::MakeUnique<base::FundamentalValue>(result_acc_obj_id))); | 471 OneArgument(base::MakeUnique<base::FundamentalValue>(result_acc_obj_id))); |
| 465 } | 472 } |
| 466 | 473 |
| 467 } // namespace extensions | 474 } // namespace extensions |
| OLD | NEW |