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

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

Issue 10917042: Revert 154453 - Remove the translate pyauto test to chrome tests and all the supporting automation … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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
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 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 void PerformActionOnDownload(Browser* browser, 325 void PerformActionOnDownload(Browser* browser,
326 base::DictionaryValue* args, 326 base::DictionaryValue* args,
327 IPC::Message* reply_message); 327 IPC::Message* reply_message);
328 328
329 // Get info about history. 329 // Get info about history.
330 // Uses the JSON interface for input/output. 330 // Uses the JSON interface for input/output.
331 void GetHistoryInfo(Browser* browser, 331 void GetHistoryInfo(Browser* browser,
332 base::DictionaryValue* args, 332 base::DictionaryValue* args,
333 IPC::Message* reply_message); 333 IPC::Message* reply_message);
334 334
335 // Add an item to the history service.
336 // Uses the JSON interface for input/output.
337 void AddHistoryItem(Browser* browser,
338 base::DictionaryValue* args,
339 IPC::Message* reply_message);
340
335 // Invoke loading of template url model. 341 // Invoke loading of template url model.
336 // Uses the JSON interface for input/output. 342 // Uses the JSON interface for input/output.
337 void LoadSearchEngineInfo(Browser* browser, 343 void LoadSearchEngineInfo(Browser* browser,
338 base::DictionaryValue* args, 344 base::DictionaryValue* args,
339 IPC::Message* reply_message); 345 IPC::Message* reply_message);
340 346
341 // Sets the visibility of the download shelf. Uses the JSON interface. 347 // Sets the visibility of the download shelf. Uses the JSON interface.
342 // Example: 348 // Example:
343 // input: { "is_visible": true, 349 // input: { "is_visible": true,
344 // "windex": 1, 350 // "windex": 1,
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 void OpenFindInPage(base::DictionaryValue* args, 607 void OpenFindInPage(base::DictionaryValue* args,
602 IPC::Message* reply_message); 608 IPC::Message* reply_message);
603 609
604 // Returns whether the find request dialogue is visible in the given browser. 610 // Returns whether the find request dialogue is visible in the given browser.
605 // Example: 611 // Example:
606 // input: { "windex": 1 } 612 // input: { "windex": 1 }
607 // output: { "is_visible": true } 613 // output: { "is_visible": true }
608 void IsFindInPageVisible(base::DictionaryValue* args, 614 void IsFindInPageVisible(base::DictionaryValue* args,
609 IPC::Message* reply_message); 615 IPC::Message* reply_message);
610 616
617 // Returns information about translation for a given tab. Includes
618 // information about the translate bar if it is showing.
619 void GetTranslateInfo(Browser* browser,
620 base::DictionaryValue* args,
621 IPC::Message* reply_message);
622
623 // Takes the specified action on the translate bar.
624 // Uses the JSON interface for input/output.
625 void SelectTranslateOption(Browser* browser,
626 base::DictionaryValue* args,
627 IPC::Message* reply_message);
628
611 // Signs in to sync using the given username and password. 629 // Signs in to sync using the given username and password.
612 // Uses the JSON interface for input/output. 630 // Uses the JSON interface for input/output.
613 void SignInToSync(Browser* browser, 631 void SignInToSync(Browser* browser,
614 base::DictionaryValue* args, 632 base::DictionaryValue* args,
615 IPC::Message* reply_message); 633 IPC::Message* reply_message);
616 634
617 // Returns info about sync. 635 // Returns info about sync.
618 // Uses the JSON interface for input/output. 636 // Uses the JSON interface for input/output.
619 void GetSyncInfo(Browser* browser, 637 void GetSyncInfo(Browser* browser,
620 base::DictionaryValue* args, 638 base::DictionaryValue* args,
(...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after
1640 scoped_ptr<AutomationEventQueue> automation_event_queue_; 1658 scoped_ptr<AutomationEventQueue> automation_event_queue_;
1641 1659
1642 // List of commands which just finish synchronously and don't require 1660 // List of commands which just finish synchronously and don't require
1643 // setting up an observer. 1661 // setting up an observer.
1644 static const int kSynchronousCommands[]; 1662 static const int kSynchronousCommands[];
1645 1663
1646 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); 1664 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider);
1647 }; 1665 };
1648 1666
1649 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 1667 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_provider_observers.cc ('k') | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698