| OLD | NEW |
| 1 // Copyright (c) 2010 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 "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| 11 #include "chrome/browser/automation/automation_provider.h" | 11 #include "chrome/browser/automation/automation_provider.h" |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 void RemoveBookmark(int handle, | 289 void RemoveBookmark(int handle, |
| 290 int64 id, | 290 int64 id, |
| 291 bool* success); | 291 bool* success); |
| 292 | 292 |
| 293 // Retrieves the number of info-bars currently showing in |count|. | 293 // Retrieves the number of info-bars currently showing in |count|. |
| 294 void GetInfoBarCount(int handle, int* count); | 294 void GetInfoBarCount(int handle, int* count); |
| 295 | 295 |
| 296 // Causes a click on the "accept" button of the info-bar at |info_bar_index|. | 296 // Causes a click on the "accept" button of the info-bar at |info_bar_index|. |
| 297 // If |wait_for_navigation| is true, it sends the reply after a navigation has | 297 // If |wait_for_navigation| is true, it sends the reply after a navigation has |
| 298 // occurred. | 298 // occurred. |
| 299 void ClickInfoBarAccept(int handle, int info_bar_index, | 299 void ClickInfoBarAccept(int handle, |
| 300 int info_bar_index, |
| 300 bool wait_for_navigation, | 301 bool wait_for_navigation, |
| 301 IPC::Message* reply_message); | 302 IPC::Message* reply_message); |
| 302 | 303 |
| 303 // Retrieves the last time a navigation occurred for the tab. | 304 // Retrieves the last time a navigation occurred for the tab. |
| 304 void GetLastNavigationTime(int handle, int64* last_navigation_time); | 305 void GetLastNavigationTime(int handle, int64* last_navigation_time); |
| 305 | 306 |
| 306 // Waits for a new navigation in the tab if none has happened since | 307 // Waits for a new navigation in the tab if none has happened since |
| 307 // |last_navigation_time|. | 308 // |last_navigation_time|. |
| 308 void WaitForNavigation(int handle, | 309 void WaitForNavigation(int handle, |
| 309 int64 last_navigation_time, | 310 int64 last_navigation_time, |
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 806 // Used to import settings from browser profiles. | 807 // Used to import settings from browser profiles. |
| 807 scoped_refptr<ImporterHost> importer_host_; | 808 scoped_refptr<ImporterHost> importer_host_; |
| 808 | 809 |
| 809 // The stored data for the ImportSettings operation. | 810 // The stored data for the ImportSettings operation. |
| 810 ImportSettingsData import_settings_data_; | 811 ImportSettingsData import_settings_data_; |
| 811 | 812 |
| 812 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); | 813 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); |
| 813 }; | 814 }; |
| 814 | 815 |
| 815 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 816 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
| OLD | NEW |