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 SpellCheckClient_h | 5 #ifndef SpellCheckClient_h |
6 #define SpellCheckClient_h | 6 #define SpellCheckClient_h |
7 | 7 |
| 8 #include "base/basictypes.h" |
8 #include "content/shell/renderer/test_runner/MockSpellCheck.h" | 9 #include "content/shell/renderer/test_runner/MockSpellCheck.h" |
9 #include "content/shell/renderer/test_runner/WebTask.h" | 10 #include "content/shell/renderer/test_runner/WebTask.h" |
10 #include "third_party/WebKit/public/platform/WebNonCopyable.h" | |
11 #include "third_party/WebKit/public/web/WebSpellCheckClient.h" | 11 #include "third_party/WebKit/public/web/WebSpellCheckClient.h" |
12 | 12 |
13 namespace WebTestRunner { | 13 namespace WebTestRunner { |
14 | 14 |
15 class WebTestDelegate; | 15 class WebTestDelegate; |
16 class WebTestProxyBase; | 16 class WebTestProxyBase; |
17 | 17 |
18 class SpellCheckClient : public blink::WebSpellCheckClient, public blink::WebNon
Copyable { | 18 class SpellCheckClient : public blink::WebSpellCheckClient { |
19 public: | 19 public: |
20 explicit SpellCheckClient(WebTestProxyBase*); | 20 explicit SpellCheckClient(WebTestProxyBase*); |
21 virtual ~SpellCheckClient(); | 21 virtual ~SpellCheckClient(); |
22 | 22 |
23 void setDelegate(WebTestDelegate*); | 23 void setDelegate(WebTestDelegate*); |
24 | 24 |
25 WebTaskList* taskList() { return &m_taskList; } | 25 WebTaskList* taskList() { return &m_taskList; } |
26 MockSpellCheck* mockSpellCheck() { return &m_spellcheck; } | 26 MockSpellCheck* mockSpellCheck() { return &m_spellcheck; } |
27 | 27 |
28 // blink::WebSpellCheckClient implementation. | 28 // blink::WebSpellCheckClient implementation. |
(...skipping 12 matching lines...) Expand all Loading... |
41 MockSpellCheck m_spellcheck; | 41 MockSpellCheck m_spellcheck; |
42 | 42 |
43 blink::WebString m_lastRequestedTextCheckString; | 43 blink::WebString m_lastRequestedTextCheckString; |
44 blink::WebTextCheckingCompletion* m_lastRequestedTextCheckingCompletion; | 44 blink::WebTextCheckingCompletion* m_lastRequestedTextCheckingCompletion; |
45 | 45 |
46 WebTaskList m_taskList; | 46 WebTaskList m_taskList; |
47 | 47 |
48 WebTestDelegate* m_delegate; | 48 WebTestDelegate* m_delegate; |
49 | 49 |
50 WebTestProxyBase* m_webTestProxy; | 50 WebTestProxyBase* m_webTestProxy; |
| 51 |
| 52 DISALLOW_COPY_AND_ASSIGN(SpellCheckClient); |
51 }; | 53 }; |
52 | 54 |
53 } | 55 } |
54 | 56 |
55 #endif // SpellCheckClient_h | 57 #endif // SpellCheckClient_h |
OLD | NEW |