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

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

Issue 279403006: Update WebFrameTestProxy and WebTestProxy to mostly follow Chrome style. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: REBASE 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
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_SPELLCHECKCLIENT_H_ 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_SPELLCHECKCLIENT_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_SPELLCHECKCLIENT_H_ 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_SPELLCHECKCLIENT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "content/shell/renderer/test_runner/MockSpellCheck.h" 9 #include "content/shell/renderer/test_runner/MockSpellCheck.h"
10 #include "content/shell/renderer/test_runner/WebTask.h" 10 #include "content/shell/renderer/test_runner/WebTask.h"
11 #include "third_party/WebKit/public/web/WebSpellCheckClient.h" 11 #include "third_party/WebKit/public/web/WebSpellCheckClient.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 class WebTestDelegate; 15 class WebTestDelegate;
16 class WebTestProxyBase; 16 class WebTestProxyBase;
17 17
18 class SpellCheckClient : public blink::WebSpellCheckClient { 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* mutable_task_list() { 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.
29 virtual void spellCheck(const blink::WebString&, int& offset, int& length, b link::WebVector<blink::WebString>* optionalSuggestions); 29 virtual void spellCheck(const blink::WebString&, int& offset, int& length, b link::WebVector<blink::WebString>* optionalSuggestions);
30 virtual void checkTextOfParagraph(const blink::WebString&, blink::WebTextChe ckingTypeMask, blink::WebVector<blink::WebTextCheckingResult>*); 30 virtual void checkTextOfParagraph(const blink::WebString&, blink::WebTextChe ckingTypeMask, blink::WebVector<blink::WebTextCheckingResult>*);
31 virtual void requestCheckingOfText(const blink::WebString&, 31 virtual void requestCheckingOfText(const blink::WebString&,
32 const blink::WebVector<uint32_t>&, 32 const blink::WebVector<uint32_t>&,
33 const blink::WebVector<unsigned>&, 33 const blink::WebVector<unsigned>&,
34 blink::WebTextCheckingCompletion*); 34 blink::WebTextCheckingCompletion*);
35 virtual blink::WebString autoCorrectWord(const blink::WebString&); 35 virtual blink::WebString autoCorrectWord(const blink::WebString&);
(...skipping 12 matching lines...) Expand all
48 WebTestDelegate* m_delegate; 48 WebTestDelegate* m_delegate;
49 49
50 WebTestProxyBase* m_webTestProxy; 50 WebTestProxyBase* m_webTestProxy;
51 51
52 DISALLOW_COPY_AND_ASSIGN(SpellCheckClient); 52 DISALLOW_COPY_AND_ASSIGN(SpellCheckClient);
53 }; 53 };
54 54
55 } // namespace content 55 } // namespace content
56 56
57 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_SPELLCHECKCLIENT_H_ 57 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_SPELLCHECKCLIENT_H_
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/MockWebSpeechRecognizer.h ('k') | content/shell/renderer/test_runner/SpellCheckClient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698