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

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

Issue 2795113002: Move ownership of TextCheckerClientImpl to WebLocalFrameImpl (Closed)
Patch Set: Rebased 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/heap/Handle.h"
8 #include "platform/text/TextCheckerClient.h" 9 #include "platform/text/TextCheckerClient.h"
9 10
10 namespace blink { 11 namespace blink {
11 12
12 class WebViewImpl; 13 class WebLocalFrameImpl;
14 class WebTextCheckClient;
13 15
14 // TODO(xiaochengh): Rename TextCheckerClientImpl to SpellCheckerClientImpl. 16 // TODO(xiaochengh): Rename TextCheckerClientImpl to SpellCheckerClientImpl.
15 // TODO(xiaochengh): Move ownership of this class to WebLocalFrameImpl. 17 class TextCheckerClientImpl final
16 class TextCheckerClientImpl final : public TextCheckerClient { 18 : public GarbageCollected<TextCheckerClientImpl>,
19 public TextCheckerClient {
17 public: 20 public:
18 TextCheckerClientImpl(WebViewImpl*); 21 explicit TextCheckerClientImpl(WebLocalFrameImpl*);
19 ~TextCheckerClientImpl() final;
20 22
21 void checkSpellingOfString(const String&, 23 void checkSpellingOfString(const String&,
22 int* misspellingLocation, 24 int* misspellingLocation,
23 int* misspellingLength) final; 25 int* misspellingLength) final;
24 void requestCheckingOfString(TextCheckingRequest*) final; 26 void requestCheckingOfString(TextCheckingRequest*) final;
25 void cancelAllPendingRequests() final; 27 void cancelAllPendingRequests() final;
26 28
29 DECLARE_TRACE();
30
27 private: 31 private:
28 WebViewImpl* m_webView; 32 WebTextCheckClient* webTextCheckClient() const;
33
34 Member<WebLocalFrameImpl> m_webLocalFrame;
35
36 DISALLOW_COPY_AND_ASSIGN(TextCheckerClientImpl);
29 }; 37 };
30 38
31 } // namespace blink 39 } // namespace blink
32 40
33 #endif 41 #endif
OLDNEW
« 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