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

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

Issue 8772068: Add PyAuto tests for triggering browser/page action. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 IPC::Message* reply_message); 651 IPC::Message* reply_message);
652 652
653 // Set extension states: 653 // Set extension states:
654 // Enable/disable extension. 654 // Enable/disable extension.
655 // Allow/disallow extension in incognito mode. 655 // Allow/disallow extension in incognito mode.
656 // Uses the JSON interface for input/output. 656 // Uses the JSON interface for input/output.
657 void SetExtensionStateById(Browser* browser, 657 void SetExtensionStateById(Browser* browser,
658 base::DictionaryValue* args, 658 base::DictionaryValue* args,
659 IPC::Message* reply_message); 659 IPC::Message* reply_message);
660 660
661 // Trigger page action asynchronously in the active tab.
662 // Uses the JSON interface for input/output.
663 void TriggerPageActionById(base::DictionaryValue* args,
664 IPC::Message* reply_message);
665
666 // Trigger browser action asynchronously in the active tab.
667 // Uses the JSON interface for input/output.
668 void TriggerBrowserActionById(base::DictionaryValue* args,
669 IPC::Message* reply_message);
670
661 // Responds to the Find request and returns the match count. 671 // Responds to the Find request and returns the match count.
662 void FindInPage(Browser* browser, 672 void FindInPage(Browser* browser,
663 base::DictionaryValue* args, 673 base::DictionaryValue* args,
664 IPC::Message* reply_message); 674 IPC::Message* reply_message);
665 675
666 // Returns information about translation for a given tab. Includes 676 // Returns information about translation for a given tab. Includes
667 // information about the translate bar if it is showing. 677 // information about the translate bar if it is showing.
668 void GetTranslateInfo(Browser* browser, 678 void GetTranslateInfo(Browser* browser,
669 base::DictionaryValue* args, 679 base::DictionaryValue* args,
670 IPC::Message* reply_message); 680 IPC::Message* reply_message);
(...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after
1410 // Used to enumerate browser profiles. 1420 // Used to enumerate browser profiles.
1411 scoped_refptr<ImporterList> importer_list_; 1421 scoped_refptr<ImporterList> importer_list_;
1412 1422
1413 // The stored data for the ImportSettings operation. 1423 // The stored data for the ImportSettings operation.
1414 ImportSettingsData import_settings_data_; 1424 ImportSettingsData import_settings_data_;
1415 1425
1416 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); 1426 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider);
1417 }; 1427 };
1418 1428
1419 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 1429 #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