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

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

Issue 8587004: Add PyAuto tests for triggering browser/page action. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Ken's comments Created 9 years, 1 month 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) 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 <string> 9 #include <string>
10 10
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 IPC::Message* reply_message); 645 IPC::Message* reply_message);
646 646
647 // Set extension states: 647 // Set extension states:
648 // Enable/disable extension. 648 // Enable/disable extension.
649 // Allow/disallow extension in incognito mode. 649 // Allow/disallow extension in incognito mode.
650 // Uses the JSON interface for input/output. 650 // Uses the JSON interface for input/output.
651 void SetExtensionStateById(Browser* browser, 651 void SetExtensionStateById(Browser* browser,
652 base::DictionaryValue* args, 652 base::DictionaryValue* args,
653 IPC::Message* reply_message); 653 IPC::Message* reply_message);
654 654
655 // Trigger page action asynchronously in the active tab.
656 // Uses the JSON interface for input/output.
657 void TriggerPageActionById(base::DictionaryValue* args,
658 IPC::Message* reply_message);
659
660 // Trigger browser action asynchronously in the active tab.
661 // Uses the JSON interface for input/output.
662 void TriggerBrowserActionById(base::DictionaryValue* args,
663 IPC::Message* reply_message);
664
655 // Responds to the Find request and returns the match count. 665 // Responds to the Find request and returns the match count.
656 void FindInPage(Browser* browser, 666 void FindInPage(Browser* browser,
657 base::DictionaryValue* args, 667 base::DictionaryValue* args,
658 IPC::Message* reply_message); 668 IPC::Message* reply_message);
659 669
660 // Returns information about translation for a given tab. Includes 670 // Returns information about translation for a given tab. Includes
661 // information about the translate bar if it is showing. 671 // information about the translate bar if it is showing.
662 void GetTranslateInfo(Browser* browser, 672 void GetTranslateInfo(Browser* browser,
663 base::DictionaryValue* args, 673 base::DictionaryValue* args,
664 IPC::Message* reply_message); 674 IPC::Message* reply_message);
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
1398 // Used to enumerate browser profiles. 1408 // Used to enumerate browser profiles.
1399 scoped_refptr<ImporterList> importer_list_; 1409 scoped_refptr<ImporterList> importer_list_;
1400 1410
1401 // The stored data for the ImportSettings operation. 1411 // The stored data for the ImportSettings operation.
1402 ImportSettingsData import_settings_data_; 1412 ImportSettingsData import_settings_data_;
1403 1413
1404 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); 1414 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider);
1405 }; 1415 };
1406 1416
1407 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 1417 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698