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

Side by Side Diff: chrome/browser/automation/testing_automation_provider.h

Issue 10533038: Switch back to the old method of launching the login flow while keeping some of the benefits of the… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Nirnimesh's comments and fixed chromeos_login.py to work with these changes. Created 8 years, 6 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/automation/testing_automation_provider.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 (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
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 // Submits the Chrome OS login form. Watch for the login to complete using
1343 // the AddLoginObserver and GetNextEvent commands.
1344 // Example:
1345 // input: { "username": "user@gmail.com",
1346 // "password": "fakepassword",
1347 // }
1348 void SubmitLoginForm(base::DictionaryValue* args,
1349 IPC::Message* reply_message);
1350
1342 void AddLoginEventObserver(DictionaryValue* args, 1351 void AddLoginEventObserver(DictionaryValue* args,
1343 IPC::Message* reply_message); 1352 IPC::Message* reply_message);
1344 1353
1345 // Executes javascript in the specified frame in the OOBE WebUI on chromeos. 1354 // Executes javascript in the specified frame in the OOBE WebUI on chromeos.
1346 // Waits for a result from the |DOMAutomationController|. The javascript must 1355 // Waits for a result from the |DOMAutomationController|. The javascript must
1347 // send a string. Must be run before a user has logged in. 1356 // send a string. Must be run before a user has logged in.
1348 // Example: 1357 // Example:
1349 // input: { "frame_xpath": "//frames[1]", 1358 // input: { "frame_xpath": "//frames[1]",
1350 // "javascript": 1359 // "javascript":
1351 // "window.domAutomationController.send(window.name)", 1360 // "window.domAutomationController.send(window.name)",
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
1500 ImportSettingsData import_settings_data_; 1509 ImportSettingsData import_settings_data_;
1501 1510
1502 // The automation event observer queue. It is lazily created when an observer 1511 // The automation event observer queue. It is lazily created when an observer
1503 // is added to avoid overhead when not needed. 1512 // is added to avoid overhead when not needed.
1504 scoped_ptr<AutomationEventQueue> automation_event_queue_; 1513 scoped_ptr<AutomationEventQueue> automation_event_queue_;
1505 1514
1506 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); 1515 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider);
1507 }; 1516 };
1508 1517
1509 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 1518 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698