| 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 1346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1357 // "button": automation::kLeftButton, | 1357 // "button": automation::kLeftButton, |
| 1358 // "x": 100, | 1358 // "x": 100, |
| 1359 // "y": 200, | 1359 // "y": 200, |
| 1360 // "click_count": 1, | 1360 // "click_count": 1, |
| 1361 // "modifiers": automation::kShiftKeyMask, | 1361 // "modifiers": automation::kShiftKeyMask, |
| 1362 // } | 1362 // } |
| 1363 // output: none | 1363 // output: none |
| 1364 void ProcessWebMouseEvent(base::DictionaryValue* args, | 1364 void ProcessWebMouseEvent(base::DictionaryValue* args, |
| 1365 IPC::Message* message); | 1365 IPC::Message* message); |
| 1366 | 1366 |
| 1367 // Method used as a Task that sends a success AutomationJSONReply. | |
| 1368 void SendSuccessReply(IPC::Message* reply_message); | |
| 1369 | |
| 1370 // Gets the active JavaScript modal dialog's message. | 1367 // Gets the active JavaScript modal dialog's message. |
| 1371 // Example: | 1368 // Example: |
| 1372 // input: none | 1369 // input: none |
| 1373 // output: { "message": "This is an alert!" } | 1370 // output: { "message": "This is an alert!" } |
| 1374 void GetAppModalDialogMessage( | 1371 void GetAppModalDialogMessage( |
| 1375 base::DictionaryValue* args, IPC::Message* reply_message); | 1372 base::DictionaryValue* args, IPC::Message* reply_message); |
| 1376 | 1373 |
| 1377 // Accepts or dismisses the active JavaScript modal dialog. If optional | 1374 // Accepts or dismisses the active JavaScript modal dialog. If optional |
| 1378 // prompt text is given, it will be used as the result of the prompt dialog. | 1375 // prompt text is given, it will be used as the result of the prompt dialog. |
| 1379 // Example: | 1376 // Example: |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1627 ImportSettingsData import_settings_data_; | 1624 ImportSettingsData import_settings_data_; |
| 1628 | 1625 |
| 1629 // The automation event observer queue. It is lazily created when an observer | 1626 // The automation event observer queue. It is lazily created when an observer |
| 1630 // is added to avoid overhead when not needed. | 1627 // is added to avoid overhead when not needed. |
| 1631 scoped_ptr<AutomationEventQueue> automation_event_queue_; | 1628 scoped_ptr<AutomationEventQueue> automation_event_queue_; |
| 1632 | 1629 |
| 1633 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); | 1630 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); |
| 1634 }; | 1631 }; |
| 1635 | 1632 |
| 1636 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 1633 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
| OLD | NEW |