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

Side by Side Diff: components/test_runner/spell_check_client.h

Issue 2228293002: Remove dead code in spell checker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@DeprecateTextCheckingType
Patch Set: 201608101257 Created 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_TEST_RUNNER_SPELL_CHECK_CLIENT_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_SPELL_CHECK_CLIENT_H_
6 #define COMPONENTS_TEST_RUNNER_SPELL_CHECK_CLIENT_H_ 6 #define COMPONENTS_TEST_RUNNER_SPELL_CHECK_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 19 matching lines...) Expand all
30 virtual ~SpellCheckClient(); 30 virtual ~SpellCheckClient();
31 31
32 void SetDelegate(WebTestDelegate* delegate); 32 void SetDelegate(WebTestDelegate* delegate);
33 33
34 // blink::WebSpellCheckClient implementation. 34 // blink::WebSpellCheckClient implementation.
35 void spellCheck( 35 void spellCheck(
36 const blink::WebString& text, 36 const blink::WebString& text,
37 int& offset, 37 int& offset,
38 int& length, 38 int& length,
39 blink::WebVector<blink::WebString>* optional_suggestions) override; 39 blink::WebVector<blink::WebString>* optional_suggestions) override;
40 void checkTextOfParagraph(
41 const blink::WebString& text,
42 blink::WebTextCheckingTypeMask mask,
43 blink::WebVector<blink::WebTextCheckingResult>* web_results) override;
44 void requestCheckingOfText( 40 void requestCheckingOfText(
45 const blink::WebString& text, 41 const blink::WebString& text,
46 const blink::WebVector<uint32_t>& markers, 42 const blink::WebVector<uint32_t>& markers,
47 const blink::WebVector<unsigned>& marker_offsets, 43 const blink::WebVector<unsigned>& marker_offsets,
48 blink::WebTextCheckingCompletion* completion) override; 44 blink::WebTextCheckingCompletion* completion) override;
49 45
50 private: 46 private:
51 void FinishLastTextCheck(); 47 void FinishLastTextCheck();
52 48
53 // The mock spellchecker used in spellCheck(). 49 // The mock spellchecker used in spellCheck().
54 MockSpellCheck spell_check_; 50 MockSpellCheck spell_check_;
55 51
56 blink::WebString last_requested_text_check_string_; 52 blink::WebString last_requested_text_check_string_;
57 blink::WebTextCheckingCompletion* last_requested_text_checking_completion_; 53 blink::WebTextCheckingCompletion* last_requested_text_checking_completion_;
58 54
59 TestRunner* test_runner_; 55 TestRunner* test_runner_;
60 WebTestDelegate* delegate_; 56 WebTestDelegate* delegate_;
61 57
62 base::WeakPtrFactory<SpellCheckClient> weak_factory_; 58 base::WeakPtrFactory<SpellCheckClient> weak_factory_;
63 59
64 DISALLOW_COPY_AND_ASSIGN(SpellCheckClient); 60 DISALLOW_COPY_AND_ASSIGN(SpellCheckClient);
65 }; 61 };
66 62
67 } // namespace test_runner 63 } // namespace test_runner
68 64
69 #endif // COMPONENTS_TEST_RUNNER_SPELL_CHECK_CLIENT_H_ 65 #endif // COMPONENTS_TEST_RUNNER_SPELL_CHECK_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698