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

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

Issue 424183004: Update SpellCheckClient to chromium c++ style (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
« no previous file with comments | « content/shell/BUILD.gn ('k') | content/shell/renderer/test_runner/SpellCheckClient.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_SPELLCHECKCLIENT_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_SPELLCHECKCLIENT_H_
7
8 #include "base/basictypes.h"
9 #include "content/shell/renderer/test_runner/WebTask.h"
10 #include "content/shell/renderer/test_runner/mock_spell_check.h"
11 #include "third_party/WebKit/public/web/WebSpellCheckClient.h"
12
13 namespace content {
14
15 class WebTestDelegate;
16 class WebTestProxyBase;
17
18 class SpellCheckClient : public blink::WebSpellCheckClient {
19 public:
20 explicit SpellCheckClient(WebTestProxyBase*);
21 virtual ~SpellCheckClient();
22
23 void setDelegate(WebTestDelegate*);
24
25 WebTaskList* mutable_task_list() { return &m_taskList; }
26 MockSpellCheck* mockSpellCheck() { return &m_spellcheck; }
27
28 // blink::WebSpellCheckClient implementation.
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>*);
31 virtual void requestCheckingOfText(const blink::WebString&,
32 const blink::WebVector<uint32_t>&,
33 const blink::WebVector<unsigned>&,
34 blink::WebTextCheckingCompletion*);
35 virtual blink::WebString autoCorrectWord(const blink::WebString&);
36
37 private:
38 void finishLastTextCheck();
39
40 // The mock spellchecker used in spellCheck().
41 MockSpellCheck m_spellcheck;
42
43 blink::WebString m_lastRequestedTextCheckString;
44 blink::WebTextCheckingCompletion* m_lastRequestedTextCheckingCompletion;
45
46 WebTaskList m_taskList;
47
48 WebTestDelegate* m_delegate;
49
50 WebTestProxyBase* m_webTestProxy;
51
52 DISALLOW_COPY_AND_ASSIGN(SpellCheckClient);
53 };
54
55 } // namespace content
56
57 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_SPELLCHECKCLIENT_H_
OLDNEW
« no previous file with comments | « content/shell/BUILD.gn ('k') | content/shell/renderer/test_runner/SpellCheckClient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698