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

Side by Side Diff: third_party/WebKit/Source/web/TextCheckerClientImpl.h

Issue 2791753003: Split WebTextCheckClient off WebSpellCheckClient (Closed)
Patch Set: Add TODOs for class renaming Created 3 years, 8 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 TextCheckerClientImpl_h 5 #ifndef TextCheckerClientImpl_h
6 #define TextCheckerClientImpl_h 6 #define TextCheckerClientImpl_h
7 7
8 #include "platform/text/TextCheckerClient.h" 8 #include "platform/text/TextCheckerClient.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class WebViewImpl; 12 class WebViewImpl;
13 13
14 // TODO(xiaochengh): Rename TextCheckerClientImpl to SpellCheckerClientImpl.
14 // TODO(xiaochengh): Move ownership of this class to WebLocalFrameImpl. 15 // TODO(xiaochengh): Move ownership of this class to WebLocalFrameImpl.
15 class TextCheckerClientImpl final : public TextCheckerClient { 16 class TextCheckerClientImpl final : public TextCheckerClient {
16 public: 17 public:
17 TextCheckerClientImpl(WebViewImpl*); 18 TextCheckerClientImpl(WebViewImpl*);
18 ~TextCheckerClientImpl() final; 19 ~TextCheckerClientImpl() final;
19 20
20 void checkSpellingOfString(const String&, 21 void checkSpellingOfString(const String&,
21 int* misspellingLocation, 22 int* misspellingLocation,
22 int* misspellingLength) final; 23 int* misspellingLength) final;
23 void requestCheckingOfString(TextCheckingRequest*) final; 24 void requestCheckingOfString(TextCheckingRequest*) final;
24 void cancelAllPendingRequests() final; 25 void cancelAllPendingRequests() final;
25 26
26 private: 27 private:
27 WebViewImpl* m_webView; 28 WebViewImpl* m_webView;
28 }; 29 };
29 30
30 } // namespace blink 31 } // namespace blink
31 32
32 #endif 33 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/SpellCheckerClientImpl.h ('k') | third_party/WebKit/Source/web/TextCheckerClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698