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

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

Issue 3477001: Add pyauto hook for getting and manipulating the data underneath the NTP.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "chrome/browser/automation/automation_provider.h" 10 #include "chrome/browser/automation/automation_provider.h"
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 static ListValue* GetListFromCreditCards( 606 static ListValue* GetListFromCreditCards(
607 std::vector<CreditCard*> credit_cards); 607 std::vector<CreditCard*> credit_cards);
608 608
609 // Return the map from the internal data representation to the string value 609 // Return the map from the internal data representation to the string value
610 // of auto fill fields and credit card fields. 610 // of auto fill fields and credit card fields.
611 static std::map<AutoFillFieldType, std::wstring> 611 static std::map<AutoFillFieldType, std::wstring>
612 GetAutoFillFieldToStringMap(); 612 GetAutoFillFieldToStringMap();
613 static std::map<AutoFillFieldType, std::wstring> 613 static std::map<AutoFillFieldType, std::wstring>
614 GetCreditCardFieldToStringMap(); 614 GetCreditCardFieldToStringMap();
615 615
616 // Gets info about the elements in the NTP.
617 // Uses the JSON interface for input/output.
618 void GetNTPInfo(Browser* browser,
619 DictionaryValue* args,
620 IPC::Message* reply_message);
621
622 // Moves a thumbnail in the NTP's Most Visited sites section to a different
623 // index.
624 // Uses the JSON interface for input/output.
625 void MoveNTPMostVisitedThumbnail(Browser* browser,
626 DictionaryValue* args,
627 IPC::Message* reply_message);
628
629 // Removes a thumbnail from the NTP's Most Visited sites section.
630 // Uses the JSON interface for input/output.
631 void RemoveNTPMostVisitedThumbnail(Browser* browser,
632 DictionaryValue* args,
633 IPC::Message* reply_message);
634
635 // Unpins a thumbnail in the NTP's Most Visited sites section.
636 // Uses the JSON interface for input/output.
637 void UnpinNTPMostVisitedThumbnail(Browser* browser,
638 DictionaryValue* args,
639 IPC::Message* reply_message);
640
641 // Restores all thumbnails that have been removed (i.e., blacklisted) from the
642 // NTP's Most Visited sites section.
643 // Uses the JSON interface for input/output.
644 void RestoreAllNTPMostVisitedThumbnails(Browser* browser,
645 DictionaryValue* args,
646 IPC::Message* reply_message);
647
616 void WaitForTabCountToBecome(int browser_handle, 648 void WaitForTabCountToBecome(int browser_handle,
617 int target_tab_count, 649 int target_tab_count,
618 IPC::Message* reply_message); 650 IPC::Message* reply_message);
619 651
620 void WaitForInfoBarCount(int tab_handle, 652 void WaitForInfoBarCount(int tab_handle,
621 int target_count, 653 int target_count,
622 IPC::Message* reply_message); 654 IPC::Message* reply_message);
623 655
624 // Gets the current used encoding name of the page in the specified tab. 656 // Gets the current used encoding name of the page in the specified tab.
625 void GetPageCurrentEncoding(int tab_handle, std::string* current_encoding); 657 void GetPageCurrentEncoding(int tab_handle, std::string* current_encoding);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 // for the results) so there is only one handle. When non-0, indicates a 694 // for the results) so there is only one handle. When non-0, indicates a
663 // query in progress. 695 // query in progress.
664 HistoryService::Handle redirect_query_; 696 HistoryService::Handle redirect_query_;
665 697
666 NotificationRegistrar registrar_; 698 NotificationRegistrar registrar_;
667 699
668 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); 700 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider);
669 }; 701 };
670 702
671 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 703 #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