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

Unified Diff: chrome/browser/automation/testing_automation_provider.h

Issue 5088001: Add pyauto hook for getting and manipulating the data underneath the NTP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/test/functional
Patch Set: Clean up Created 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/automation/testing_automation_provider.h
diff --git a/chrome/browser/automation/testing_automation_provider.h b/chrome/browser/automation/testing_automation_provider.h
index 3bc01011c8bc1efb084cf2dcd7b07682394c8b41..ac3ad58eef36d4bfce0709d9888ae4c172a93fd6 100644
--- a/chrome/browser/automation/testing_automation_provider.h
+++ b/chrome/browser/automation/testing_automation_provider.h
@@ -692,6 +692,38 @@ class TestingAutomationProvider : public AutomationProvider,
DictionaryValue* args,
IPC::Message* reply_message);
+ // Gets info about the elements in the NTP.
+ // Uses the JSON interface for input/output.
+ void GetNTPInfo(Browser* browser,
+ DictionaryValue* args,
+ IPC::Message* reply_message);
+
+ // Moves a thumbnail in the NTP's Most Visited sites section to a different
+ // index.
+ // Uses the JSON interface for input/output.
+ void MoveNTPMostVisitedThumbnail(Browser* browser,
+ DictionaryValue* args,
+ IPC::Message* reply_message);
+
+ // Removes a thumbnail from the NTP's Most Visited sites section.
+ // Uses the JSON interface for input/output.
+ void RemoveNTPMostVisitedThumbnail(Browser* browser,
+ DictionaryValue* args,
+ IPC::Message* reply_message);
+
+ // Unpins a thumbnail in the NTP's Most Visited sites section.
+ // Uses the JSON interface for input/output.
+ void UnpinNTPMostVisitedThumbnail(Browser* browser,
+ DictionaryValue* args,
+ IPC::Message* reply_message);
+
+ // Restores all thumbnails that have been removed (i.e., blacklisted) from the
+ // NTP's Most Visited sites section.
+ // Uses the JSON interface for input/output.
+ void RestoreAllNTPMostVisitedThumbnails(Browser* browser,
+ DictionaryValue* args,
+ IPC::Message* reply_message);
+
void WaitForTabCountToBecome(int browser_handle,
int target_tab_count,
IPC::Message* reply_message);

Powered by Google App Engine
This is Rietveld 408576698