OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ |
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ | 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 // MIDI function to control permission handling. | 485 // MIDI function to control permission handling. |
486 void SetMIDIAccessorResult(bool result); | 486 void SetMIDIAccessorResult(bool result); |
487 void SetMIDISysexPermission(bool value); | 487 void SetMIDISysexPermission(bool value); |
488 | 488 |
489 // Grants permission for desktop notifications to an origin | 489 // Grants permission for desktop notifications to an origin |
490 void GrantWebNotificationPermission(const std::string& origin, | 490 void GrantWebNotificationPermission(const std::string& origin, |
491 bool permission_granted); | 491 bool permission_granted); |
492 // Simulates a click on a desktop notification. | 492 // Simulates a click on a desktop notification. |
493 bool SimulateWebNotificationClick(const std::string& value); | 493 bool SimulateWebNotificationClick(const std::string& value); |
494 | 494 |
495 // Speech input related functions. | 495 // Speech recognition related functions. |
496 void AddMockSpeechInputResult(const std::string& result, | |
497 double confidence, | |
498 const std::string& language); | |
499 void SetMockSpeechInputDumpRect(bool value); | |
500 void AddMockSpeechRecognitionResult(const std::string& transcript, | 496 void AddMockSpeechRecognitionResult(const std::string& transcript, |
501 double confidence); | 497 double confidence); |
502 void SetMockSpeechRecognitionError(const std::string& error, | 498 void SetMockSpeechRecognitionError(const std::string& error, |
503 const std::string& message); | 499 const std::string& message); |
504 bool WasMockSpeechRecognitionAborted(); | 500 bool WasMockSpeechRecognitionAborted(); |
505 | 501 |
506 // WebPageOverlay related functions. Permits the adding and removing of only | 502 // WebPageOverlay related functions. Permits the adding and removing of only |
507 // one opaque overlay. | 503 // one opaque overlay. |
508 void AddWebPageOverlay(); | 504 void AddWebPageOverlay(); |
509 void RemoveWebPageOverlay(); | 505 void RemoveWebPageOverlay(); |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 bool use_mock_theme_; | 703 bool use_mock_theme_; |
708 | 704 |
709 base::WeakPtrFactory<TestRunner> weak_factory_; | 705 base::WeakPtrFactory<TestRunner> weak_factory_; |
710 | 706 |
711 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 707 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
712 }; | 708 }; |
713 | 709 |
714 } // namespace content | 710 } // namespace content |
715 | 711 |
716 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ | 712 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ |
OLD | NEW |