OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
6 #define CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 6 #define CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1433 | 1433 |
1434 // Triggers a policy update on the platform and cloud providers, if they | 1434 // Triggers a policy update on the platform and cloud providers, if they |
1435 // exist. Returns after the update notifications are received. | 1435 // exist. Returns after the update notifications are received. |
1436 // Example: | 1436 // Example: |
1437 // input: none | 1437 // input: none |
1438 // output: none | 1438 // output: none |
1439 void RefreshPolicies(base::DictionaryValue* args, | 1439 void RefreshPolicies(base::DictionaryValue* args, |
1440 IPC::Message* reply_message); | 1440 IPC::Message* reply_message); |
1441 | 1441 |
1442 #if defined(OS_CHROMEOS) | 1442 #if defined(OS_CHROMEOS) |
1443 // Login. | 1443 // Login / Logout. |
1444 void GetLoginInfo(base::DictionaryValue* args, IPC::Message* reply_message); | 1444 void GetLoginInfo(base::DictionaryValue* args, IPC::Message* reply_message); |
1445 | 1445 |
1446 void ShowCreateAccountUI(base::DictionaryValue* args, | 1446 void ShowCreateAccountUI(base::DictionaryValue* args, |
1447 IPC::Message* reply_message); | 1447 IPC::Message* reply_message); |
1448 | 1448 |
1449 void LoginAsGuest(base::DictionaryValue* args, IPC::Message* reply_message); | 1449 void LoginAsGuest(base::DictionaryValue* args, IPC::Message* reply_message); |
1450 | 1450 |
1451 void AddLoginEventObserver(DictionaryValue* args, | 1451 void AddLoginEventObserver(DictionaryValue* args, |
1452 IPC::Message* reply_message); | 1452 IPC::Message* reply_message); |
1453 | 1453 |
1454 // Executes javascript in the specified frame in the OOBE WebUI on chromeos. | 1454 // Executes javascript in the specified frame in the OOBE WebUI on chromeos. |
1455 // Waits for a result from the |DOMAutomationController|. The javascript must | 1455 // Waits for a result from the |DOMAutomationController|. The javascript must |
1456 // send a string. Must be run before a user has logged in. | 1456 // send a string. Must be run before a user has logged in. |
1457 // Example: | 1457 // Example: |
1458 // input: { "frame_xpath": "//frames[1]", | 1458 // input: { "frame_xpath": "//frames[1]", |
1459 // "javascript": | 1459 // "javascript": |
1460 // "window.domAutomationController.send(window.name)", | 1460 // "window.domAutomationController.send(window.name)", |
1461 // } | 1461 // } |
1462 // output: { "result": "My Window Name" } | 1462 // output: { "result": "My Window Name" } |
1463 void ExecuteJavascriptInOOBEWebUI( | 1463 void ExecuteJavascriptInOOBEWebUI( |
1464 base::DictionaryValue* args, IPC::Message* reply_message); | 1464 base::DictionaryValue* args, IPC::Message* reply_message); |
1465 | 1465 |
| 1466 void SignOut(base::DictionaryValue* args, IPC::Message* reply_message); |
| 1467 |
1466 // Screen locker. | 1468 // Screen locker. |
1467 void LockScreen(base::DictionaryValue* args, IPC::Message* reply_message); | 1469 void LockScreen(base::DictionaryValue* args, IPC::Message* reply_message); |
1468 | 1470 |
1469 void UnlockScreen(base::DictionaryValue* args, IPC::Message* reply_message); | 1471 void UnlockScreen(base::DictionaryValue* args, IPC::Message* reply_message); |
1470 | 1472 |
1471 void SignoutInScreenLocker(base::DictionaryValue* args, | 1473 void SignoutInScreenLocker(base::DictionaryValue* args, |
1472 IPC::Message* reply_message); | 1474 IPC::Message* reply_message); |
1473 | 1475 |
1474 // Battery. | 1476 // Battery. |
1475 void GetBatteryInfo(base::DictionaryValue* args, IPC::Message* reply_message); | 1477 void GetBatteryInfo(base::DictionaryValue* args, IPC::Message* reply_message); |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1630 ImportSettingsData import_settings_data_; | 1632 ImportSettingsData import_settings_data_; |
1631 | 1633 |
1632 // The automation event observer queue. It is lazily created when an observer | 1634 // The automation event observer queue. It is lazily created when an observer |
1633 // is added to avoid overhead when not needed. | 1635 // is added to avoid overhead when not needed. |
1634 scoped_ptr<AutomationEventQueue> automation_event_queue_; | 1636 scoped_ptr<AutomationEventQueue> automation_event_queue_; |
1635 | 1637 |
1636 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); | 1638 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); |
1637 }; | 1639 }; |
1638 | 1640 |
1639 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 1641 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
OLD | NEW |