| 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/heap/Handle.h" | 8 #include "platform/heap/Handle.h" |
| 9 #include "platform/text/TextCheckerClient.h" | 9 #include "platform/text/TextCheckerClient.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 class WebLocalFrameImpl; | 13 class WebLocalFrameBase; |
| 14 class WebTextCheckClient; | 14 class WebTextCheckClient; |
| 15 | 15 |
| 16 // TODO(xiaochengh): Rename TextCheckerClientImpl to SpellCheckerClientImpl. | 16 // TODO(xiaochengh): Rename TextCheckerClientImpl to SpellCheckerClientImpl. |
| 17 class TextCheckerClientImpl final | 17 class TextCheckerClientImpl final |
| 18 : public GarbageCollected<TextCheckerClientImpl>, | 18 : public GarbageCollected<TextCheckerClientImpl>, |
| 19 public TextCheckerClient { | 19 public TextCheckerClient { |
| 20 public: | 20 public: |
| 21 explicit TextCheckerClientImpl(WebLocalFrameImpl*); | 21 explicit TextCheckerClientImpl(WebLocalFrameBase*); |
| 22 | 22 |
| 23 void CheckSpellingOfString(const String&, | 23 void CheckSpellingOfString(const String&, |
| 24 int* misspelling_location, | 24 int* misspelling_location, |
| 25 int* misspelling_length) final; | 25 int* misspelling_length) final; |
| 26 void RequestCheckingOfString(TextCheckingRequest*) final; | 26 void RequestCheckingOfString(TextCheckingRequest*) final; |
| 27 void CancelAllPendingRequests() final; | 27 void CancelAllPendingRequests() final; |
| 28 | 28 |
| 29 DECLARE_TRACE(); | 29 DECLARE_TRACE(); |
| 30 | 30 |
| 31 private: | 31 private: |
| 32 WebTextCheckClient* GetWebTextCheckClient() const; | 32 WebTextCheckClient* GetWebTextCheckClient() const; |
| 33 | 33 |
| 34 Member<WebLocalFrameImpl> web_local_frame_; | 34 Member<WebLocalFrameBase> web_local_frame_; |
| 35 | 35 |
| 36 DISALLOW_COPY_AND_ASSIGN(TextCheckerClientImpl); | 36 DISALLOW_COPY_AND_ASSIGN(TextCheckerClientImpl); |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 } // namespace blink | 39 } // namespace blink |
| 40 | 40 |
| 41 #endif | 41 #endif |
| OLD | NEW |