Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: content/shell/renderer/test_runner/MockWebSpeechInputController.h

Issue 260903010: Start removing support for the experimental x-webkit-speech API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't touch histograms.xml Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/test/data/speech/basic_recognition.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKWEBSPEECHINPUTCONTROLLER_H_ 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKWEBSPEECHINPUTCONTROLLER_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKWEBSPEECHINPUTCONTROLLER_H_ 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKWEBSPEECHINPUTCONTROLLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "content/shell/renderer/test_runner/TestCommon.h" 13 #include "content/shell/renderer/test_runner/TestCommon.h"
14 #include "content/shell/renderer/test_runner/WebTask.h" 14 #include "content/shell/renderer/test_runner/WebTask.h"
15 #include "third_party/WebKit/public/platform/WebRect.h" 15 #include "third_party/WebKit/public/platform/WebRect.h"
16 #include "third_party/WebKit/public/web/WebSpeechInputController.h" 16 #include "third_party/WebKit/public/web/WebSpeechInputController.h"
17 #include "third_party/WebKit/public/web/WebSpeechInputResult.h" 17 #include "third_party/WebKit/public/web/WebSpeechInputResult.h"
18 18
19 namespace blink { 19 namespace blink {
20 class WebSecurityOrigin; 20 class WebSecurityOrigin;
21 class WebSpeechInputListener; 21 class WebSpeechInputListener;
22 class WebString; 22 class WebString;
23 } 23 }
24 24
25 namespace WebTestRunner { 25 namespace WebTestRunner {
26 26
27 class WebTestDelegate; 27 class WebTestDelegate;
28 28
29 // TODO(hans): Remove this once we've stopped running Blink tests that depend
30 // on it (crbug.com/223198).
29 class MockWebSpeechInputController : public blink::WebSpeechInputController { 31 class MockWebSpeechInputController : public blink::WebSpeechInputController {
30 public: 32 public:
31 explicit MockWebSpeechInputController(blink::WebSpeechInputListener*); 33 explicit MockWebSpeechInputController(blink::WebSpeechInputListener*);
32 virtual ~MockWebSpeechInputController(); 34 virtual ~MockWebSpeechInputController();
33 35
34 void addMockRecognitionResult(const blink::WebString& result, double confide nce, const blink::WebString& language); 36 void addMockRecognitionResult(const blink::WebString& result, double confide nce, const blink::WebString& language);
35 void setDumpRect(bool); 37 void setDumpRect(bool);
36 void clearResults(); 38 void clearResults();
37 void setDelegate(WebTestDelegate*); 39 void setDelegate(WebTestDelegate*);
38 40
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 bool m_dumpRect; 72 bool m_dumpRect;
71 73
72 WebTestDelegate* m_delegate; 74 WebTestDelegate* m_delegate;
73 75
74 DISALLOW_COPY_AND_ASSIGN(MockWebSpeechInputController); 76 DISALLOW_COPY_AND_ASSIGN(MockWebSpeechInputController);
75 }; 77 };
76 78
77 } 79 }
78 80
79 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKWEBSPEECHINPUTCONTROLLER_H_ 81 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKWEBSPEECHINPUTCONTROLLER_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/test/data/speech/basic_recognition.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698