OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 IPC::Message* reply_message); | 444 IPC::Message* reply_message); |
445 | 445 |
446 // Accept the current string of text in the omnibox. | 446 // Accept the current string of text in the omnibox. |
447 // This is equivalent to clicking or hiting enter on a popup selection. | 447 // This is equivalent to clicking or hiting enter on a popup selection. |
448 // Blocks until the page loads. | 448 // Blocks until the page loads. |
449 // Uses the JSON interface for input/output. | 449 // Uses the JSON interface for input/output. |
450 void OmniboxAcceptInput(Browser* browser, | 450 void OmniboxAcceptInput(Browser* browser, |
451 base::DictionaryValue* args, | 451 base::DictionaryValue* args, |
452 IPC::Message* reply_message); | 452 IPC::Message* reply_message); |
453 | 453 |
454 // Generate dictionary info about instant tab. | |
455 // Uses the JSON interface for input/output. | |
456 void GetInstantInfo(Browser* browser, | |
457 base::DictionaryValue* args, | |
458 IPC::Message* reply_message); | |
459 | |
460 // Save the contents of a tab into a file. | 454 // Save the contents of a tab into a file. |
461 // Uses the JSON interface for input/output. | 455 // Uses the JSON interface for input/output. |
462 void SaveTabContents(Browser* browser, | 456 void SaveTabContents(Browser* browser, |
463 base::DictionaryValue* args, | 457 base::DictionaryValue* args, |
464 IPC::Message* reply_message); | 458 IPC::Message* reply_message); |
465 | 459 |
466 // Import the given settings from the given browser. | 460 // Import the given settings from the given browser. |
467 // Uses the JSON interface for input/output. | 461 // Uses the JSON interface for input/output. |
468 void ImportSettings(Browser* browser, | 462 void ImportSettings(Browser* browser, |
469 base::DictionaryValue* args, | 463 base::DictionaryValue* args, |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 // Uses the JSON interface for input/output. | 527 // Uses the JSON interface for input/output. |
534 void HeapProfilerDump(base::DictionaryValue* args, | 528 void HeapProfilerDump(base::DictionaryValue* args, |
535 IPC::Message* reply_message); | 529 IPC::Message* reply_message); |
536 #endif // !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS)) | 530 #endif // !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS)) |
537 | 531 |
538 // Overrides the current geoposition. | 532 // Overrides the current geoposition. |
539 // Uses the JSON interface for input/output. | 533 // Uses the JSON interface for input/output. |
540 void OverrideGeoposition(base::DictionaryValue* args, | 534 void OverrideGeoposition(base::DictionaryValue* args, |
541 IPC::Message* reply_message); | 535 IPC::Message* reply_message); |
542 | 536 |
543 // Append a command-line switch. | |
544 // Uses the JSON interface for input/output. | |
545 void AppendSwitchASCIIToCommandLine(base::DictionaryValue* args, | |
546 IPC::Message* reply_message); | |
547 | |
548 // Responds to the Find request and returns the match count. | 537 // Responds to the Find request and returns the match count. |
549 void FindInPage(Browser* browser, | 538 void FindInPage(Browser* browser, |
550 base::DictionaryValue* args, | 539 base::DictionaryValue* args, |
551 IPC::Message* reply_message); | 540 IPC::Message* reply_message); |
552 | 541 |
553 // Opens the find request dialogue in the given browser. | 542 // Opens the find request dialogue in the given browser. |
554 // Example: | 543 // Example: |
555 // input: { "windex": 1 } | 544 // input: { "windex": 1 } |
556 // output: none | 545 // output: none |
557 void OpenFindInPage(base::DictionaryValue* args, | 546 void OpenFindInPage(base::DictionaryValue* args, |
(...skipping 968 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1526 scoped_ptr<AutomationEventQueue> automation_event_queue_; | 1515 scoped_ptr<AutomationEventQueue> automation_event_queue_; |
1527 | 1516 |
1528 // List of commands which just finish synchronously and don't require | 1517 // List of commands which just finish synchronously and don't require |
1529 // setting up an observer. | 1518 // setting up an observer. |
1530 static const int kSynchronousCommands[]; | 1519 static const int kSynchronousCommands[]; |
1531 | 1520 |
1532 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); | 1521 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); |
1533 }; | 1522 }; |
1534 | 1523 |
1535 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 1524 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
OLD | NEW |