| OLD | NEW |
| 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 |
| OLD | NEW |