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

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

Issue 10922002: Remove the translate pyauto test to chrome tests and all the supporting automation hooks. I've adde… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: take out data files so patch applies, will remove separately 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
341 // Invoke loading of template url model. 335 // Invoke loading of template url model.
342 // Uses the JSON interface for input/output. 336 // Uses the JSON interface for input/output.
343 void LoadSearchEngineInfo(Browser* browser, 337 void LoadSearchEngineInfo(Browser* browser,
344 base::DictionaryValue* args, 338 base::DictionaryValue* args,
345 IPC::Message* reply_message); 339 IPC::Message* reply_message);
346 340
347 // Sets the visibility of the download shelf. Uses the JSON interface. 341 // Sets the visibility of the download shelf. Uses the JSON interface.
348 // Example: 342 // Example:
349 // input: { "is_visible": true, 343 // input: { "is_visible": true,
350 // "windex": 1, 344 // "windex": 1,
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 void OpenFindInPage(base::DictionaryValue* args, 601 void OpenFindInPage(base::DictionaryValue* args,
608 IPC::Message* reply_message); 602 IPC::Message* reply_message);
609 603
610 // Returns whether the find request dialogue is visible in the given browser. 604 // Returns whether the find request dialogue is visible in the given browser.
611 // Example: 605 // Example:
612 // input: { "windex": 1 } 606 // input: { "windex": 1 }
613 // output: { "is_visible": true } 607 // output: { "is_visible": true }
614 void IsFindInPageVisible(base::DictionaryValue* args, 608 void IsFindInPageVisible(base::DictionaryValue* args,
615 IPC::Message* reply_message); 609 IPC::Message* reply_message);
616 610
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
629 // Signs in to sync using the given username and password. 611 // Signs in to sync using the given username and password.
630 // Uses the JSON interface for input/output. 612 // Uses the JSON interface for input/output.
631 void SignInToSync(Browser* browser, 613 void SignInToSync(Browser* browser,
632 base::DictionaryValue* args, 614 base::DictionaryValue* args,
633 IPC::Message* reply_message); 615 IPC::Message* reply_message);
634 616
635 // Returns info about sync. 617 // Returns info about sync.
636 // Uses the JSON interface for input/output. 618 // Uses the JSON interface for input/output.
637 void GetSyncInfo(Browser* browser, 619 void GetSyncInfo(Browser* browser,
638 base::DictionaryValue* args, 620 base::DictionaryValue* args,
(...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after
1658 scoped_ptr<AutomationEventQueue> automation_event_queue_; 1640 scoped_ptr<AutomationEventQueue> automation_event_queue_;
1659 1641
1660 // List of commands which just finish synchronously and don't require 1642 // List of commands which just finish synchronously and don't require
1661 // setting up an observer. 1643 // setting up an observer.
1662 static const int kSynchronousCommands[]; 1644 static const int kSynchronousCommands[];
1663 1645
1664 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); 1646 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider);
1665 }; 1647 };
1666 1648
1667 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 1649 #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