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

Unified Diff: third_party/WebKit/Source/web/TextCheckerClientImpl.h

Issue 2796473002: Split TextCheckerClientImpl off SpellCheckerClientImpl (Closed)
Patch Set: Remove explicit Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/TextCheckerClientImpl.h
diff --git a/third_party/WebKit/Source/web/TextCheckerClientImpl.h b/third_party/WebKit/Source/web/TextCheckerClientImpl.h
new file mode 100644
index 0000000000000000000000000000000000000000..e694a92eaa8214d17b90f90a43ed0cea5c6e7e1c
--- /dev/null
+++ b/third_party/WebKit/Source/web/TextCheckerClientImpl.h
@@ -0,0 +1,32 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef TextCheckerClientImpl_h
+#define TextCheckerClientImpl_h
+
+#include "platform/text/TextCheckerClient.h"
+
+namespace blink {
+
+class WebViewImpl;
+
+// TODO(xiaochengh): Move ownership of this class to WebLocalFrameImpl.
+class TextCheckerClientImpl final : public TextCheckerClient {
+ public:
+ TextCheckerClientImpl(WebViewImpl*);
+ ~TextCheckerClientImpl() final;
+
+ void checkSpellingOfString(const String&,
+ int* misspellingLocation,
+ int* misspellingLength) final;
+ void requestCheckingOfString(TextCheckingRequest*) final;
+ void cancelAllPendingRequests() final;
+
+ private:
+ WebViewImpl* m_webView;
+};
+
+} // namespace blink
+
+#endif
« no previous file with comments | « third_party/WebKit/Source/web/SpellCheckerClientImpl.cpp ('k') | third_party/WebKit/Source/web/TextCheckerClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698