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

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

Issue 123243002: Replace WebNonCopyable with DISALLOW_COPY_AND_ASSIGN in test runner library (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 6 years, 11 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
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 MockWebSpeechInputController_h 5 #ifndef MockWebSpeechInputController_h
6 #define MockWebSpeechInputController_h 6 #define 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 "content/shell/renderer/test_runner/TestCommon.h" 13 #include "content/shell/renderer/test_runner/TestCommon.h"
13 #include "content/shell/renderer/test_runner/WebTask.h" 14 #include "content/shell/renderer/test_runner/WebTask.h"
14 #include "third_party/WebKit/public/platform/WebNonCopyable.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 class MockWebSpeechInputController : public blink::WebSpeechInputController, pub lic blink::WebNonCopyable { 29 class MockWebSpeechInputController : public blink::WebSpeechInputController {
30 public: 30 public:
31 explicit MockWebSpeechInputController(blink::WebSpeechInputListener*); 31 explicit MockWebSpeechInputController(blink::WebSpeechInputListener*);
32 ~MockWebSpeechInputController(); 32 ~MockWebSpeechInputController();
33 33
34 void addMockRecognitionResult(const blink::WebString& result, double confide nce, const blink::WebString& language); 34 void addMockRecognitionResult(const blink::WebString& result, double confide nce, const blink::WebString& language);
35 void setDumpRect(bool); 35 void setDumpRect(bool);
36 void clearResults(); 36 void clearResults();
37 void setDelegate(WebTestDelegate*); 37 void setDelegate(WebTestDelegate*);
38 38
39 // WebSpeechInputController implementation: 39 // WebSpeechInputController implementation:
(...skipping 23 matching lines...) Expand all
63 bool m_recording; 63 bool m_recording;
64 int m_requestId; 64 int m_requestId;
65 blink::WebRect m_requestRect; 65 blink::WebRect m_requestRect;
66 std::string m_language; 66 std::string m_language;
67 67
68 std::map<std::string, std::vector<blink::WebSpeechInputResult> > m_recogniti onResults; 68 std::map<std::string, std::vector<blink::WebSpeechInputResult> > m_recogniti onResults;
69 std::vector<blink::WebSpeechInputResult> m_resultsForEmptyLanguage; 69 std::vector<blink::WebSpeechInputResult> m_resultsForEmptyLanguage;
70 bool m_dumpRect; 70 bool m_dumpRect;
71 71
72 WebTestDelegate* m_delegate; 72 WebTestDelegate* m_delegate;
73
74 DISALLOW_COPY_AND_ASSIGN(MockWebSpeechInputController);
73 }; 75 };
74 76
75 } 77 }
76 78
77 #endif // MockWebSpeechInputController_h 79 #endif // MockWebSpeechInputController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698