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

Side by Side 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: ... 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 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 "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 void CloseNotification(Browser* browser, 685 void CloseNotification(Browser* browser,
686 DictionaryValue* args, 686 DictionaryValue* args,
687 IPC::Message* reply_message); 687 IPC::Message* reply_message);
688 688
689 // Waits for the number of active HTML5 notifications to reach a given count. 689 // Waits for the number of active HTML5 notifications to reach a given count.
690 // Uses the JSON interface for input/output. 690 // Uses the JSON interface for input/output.
691 void WaitForNotificationCount(Browser* browser, 691 void WaitForNotificationCount(Browser* browser,
692 DictionaryValue* args, 692 DictionaryValue* args,
693 IPC::Message* reply_message); 693 IPC::Message* reply_message);
694 694
695 // Gets info about the elements in the NTP.
696 // Uses the JSON interface for input/output.
697 void GetNTPInfo(Browser* browser,
698 DictionaryValue* args,
699 IPC::Message* reply_message);
700
701 // Moves a thumbnail in the NTP's Most Visited sites section to a different
702 // index.
703 // Uses the JSON interface for input/output.
704 void MoveNTPMostVisitedThumbnail(Browser* browser,
705 DictionaryValue* args,
706 IPC::Message* reply_message);
707
708 // Removes a thumbnail from the NTP's Most Visited sites section.
709 // Uses the JSON interface for input/output.
710 void RemoveNTPMostVisitedThumbnail(Browser* browser,
711 DictionaryValue* args,
712 IPC::Message* reply_message);
713
714 // Unpins a thumbnail in the NTP's Most Visited sites section.
715 // Uses the JSON interface for input/output.
716 void UnpinNTPMostVisitedThumbnail(Browser* browser,
717 DictionaryValue* args,
718 IPC::Message* reply_message);
719
720 // Restores all thumbnails that have been removed (i.e., blacklisted) from the
721 // NTP's Most Visited sites section.
722 // Uses the JSON interface for input/output.
723 void RestoreAllNTPMostVisitedThumbnails(Browser* browser,
724 DictionaryValue* args,
725 IPC::Message* reply_message);
726
695 void WaitForTabCountToBecome(int browser_handle, 727 void WaitForTabCountToBecome(int browser_handle,
696 int target_tab_count, 728 int target_tab_count,
697 IPC::Message* reply_message); 729 IPC::Message* reply_message);
698 730
699 void WaitForInfoBarCount(int tab_handle, 731 void WaitForInfoBarCount(int tab_handle,
700 int target_count, 732 int target_count,
701 IPC::Message* reply_message); 733 IPC::Message* reply_message);
702 734
703 // Gets the current used encoding name of the page in the specified tab. 735 // Gets the current used encoding name of the page in the specified tab.
704 void GetPageCurrentEncoding(int tab_handle, std::string* current_encoding); 736 void GetPageCurrentEncoding(int tab_handle, std::string* current_encoding);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 // for the results) so there is only one handle. When non-0, indicates a 779 // for the results) so there is only one handle. When non-0, indicates a
748 // query in progress. 780 // query in progress.
749 HistoryService::Handle redirect_query_; 781 HistoryService::Handle redirect_query_;
750 782
751 NotificationRegistrar registrar_; 783 NotificationRegistrar registrar_;
752 784
753 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); 785 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider);
754 }; 786 };
755 787
756 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 788 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698