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 1321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1332 | 1332 |
1333 #if defined(OS_CHROMEOS) | 1333 #if defined(OS_CHROMEOS) |
1334 // Login / Logout. | 1334 // Login / Logout. |
1335 void GetLoginInfo(base::DictionaryValue* args, IPC::Message* reply_message); | 1335 void GetLoginInfo(base::DictionaryValue* args, IPC::Message* reply_message); |
1336 | 1336 |
1337 void ShowCreateAccountUI(base::DictionaryValue* args, | 1337 void ShowCreateAccountUI(base::DictionaryValue* args, |
1338 IPC::Message* reply_message); | 1338 IPC::Message* reply_message); |
1339 | 1339 |
1340 void LoginAsGuest(base::DictionaryValue* args, IPC::Message* reply_message); | 1340 void LoginAsGuest(base::DictionaryValue* args, IPC::Message* reply_message); |
1341 | 1341 |
1342 void StartLogin(base::DictionaryValue* args, IPC::Message* reply_message); | |
Nirnimesh
2012/06/07 19:17:04
It's not obvious what StartLogin does. Please docu
craigdh
2012/06/07 23:16:52
Done. Renamed and added documentation.
| |
1343 | |
1342 void AddLoginEventObserver(DictionaryValue* args, | 1344 void AddLoginEventObserver(DictionaryValue* args, |
1343 IPC::Message* reply_message); | 1345 IPC::Message* reply_message); |
1344 | 1346 |
1345 // Executes javascript in the specified frame in the OOBE WebUI on chromeos. | 1347 // Executes javascript in the specified frame in the OOBE WebUI on chromeos. |
1346 // Waits for a result from the |DOMAutomationController|. The javascript must | 1348 // Waits for a result from the |DOMAutomationController|. The javascript must |
1347 // send a string. Must be run before a user has logged in. | 1349 // send a string. Must be run before a user has logged in. |
1348 // Example: | 1350 // Example: |
1349 // input: { "frame_xpath": "//frames[1]", | 1351 // input: { "frame_xpath": "//frames[1]", |
1350 // "javascript": | 1352 // "javascript": |
1351 // "window.domAutomationController.send(window.name)", | 1353 // "window.domAutomationController.send(window.name)", |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1500 ImportSettingsData import_settings_data_; | 1502 ImportSettingsData import_settings_data_; |
1501 | 1503 |
1502 // The automation event observer queue. It is lazily created when an observer | 1504 // The automation event observer queue. It is lazily created when an observer |
1503 // is added to avoid overhead when not needed. | 1505 // is added to avoid overhead when not needed. |
1504 scoped_ptr<AutomationEventQueue> automation_event_queue_; | 1506 scoped_ptr<AutomationEventQueue> automation_event_queue_; |
1505 | 1507 |
1506 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); | 1508 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); |
1507 }; | 1509 }; |
1508 | 1510 |
1509 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 1511 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
OLD | NEW |