| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 IPC::Message* reply_message); | 237 IPC::Message* reply_message); |
| 238 | 238 |
| 239 // Brings the browser window to the front and activates it. | 239 // Brings the browser window to the front and activates it. |
| 240 void BringBrowserToFront(int browser_handle, bool* success); | 240 void BringBrowserToFront(int browser_handle, bool* success); |
| 241 | 241 |
| 242 // Checks to see if a command on the browser's CommandController is enabled. | 242 // Checks to see if a command on the browser's CommandController is enabled. |
| 243 void IsMenuCommandEnabled(int browser_handle, | 243 void IsMenuCommandEnabled(int browser_handle, |
| 244 int message_num, | 244 int message_num, |
| 245 bool* menu_item_enabled); | 245 bool* menu_item_enabled); |
| 246 | 246 |
| 247 // Prints the current tab immediately. | |
| 248 void PrintNow(int tab_handle, IPC::Message* reply_message); | |
| 249 | |
| 250 // Save the current web page. | 247 // Save the current web page. |
| 251 void SavePage(int tab_handle, | 248 void SavePage(int tab_handle, |
| 252 const FilePath& file_name, | 249 const FilePath& file_name, |
| 253 const FilePath& dir_path, | 250 const FilePath& dir_path, |
| 254 int type, | 251 int type, |
| 255 bool* success); | 252 bool* success); |
| 256 | 253 |
| 257 // Responds to requests to open the FindInPage window. | 254 // Responds to requests to open the FindInPage window. |
| 258 void HandleOpenFindInPageRequest(const IPC::Message& message, | 255 void HandleOpenFindInPageRequest(const IPC::Message& message, |
| 259 int handle); | 256 int handle); |
| (...skipping 1338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1598 ImportSettingsData import_settings_data_; | 1595 ImportSettingsData import_settings_data_; |
| 1599 | 1596 |
| 1600 // The automation event observer queue. It is lazily created when an observer | 1597 // The automation event observer queue. It is lazily created when an observer |
| 1601 // is added to avoid overhead when not needed. | 1598 // is added to avoid overhead when not needed. |
| 1602 scoped_ptr<AutomationEventQueue> automation_event_queue_; | 1599 scoped_ptr<AutomationEventQueue> automation_event_queue_; |
| 1603 | 1600 |
| 1604 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); | 1601 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); |
| 1605 }; | 1602 }; |
| 1606 | 1603 |
| 1607 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 1604 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
| OLD | NEW |