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

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

Issue 2892393002: Move WebInputMethodControllerImpl to core/exported/ & break dependencies. (Closed)
Patch Set: Move WebInputMethodControllerImpl to core/exported/ Created 3 years, 7 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WebInputMethodControllerImpl_h
6 #define WebInputMethodControllerImpl_h
7
8 #include "platform/heap/Handle.h"
9 #include "public/web/WebCompositionUnderline.h"
10 #include "public/web/WebInputMethodController.h"
11
12 namespace blink {
13
14 class InputMethodController;
15 class LocalFrame;
16 class WebLocalFrameImpl;
17 class WebPlugin;
18 class WebRange;
19 class WebString;
20
21 class WebInputMethodControllerImpl : public WebInputMethodController {
22 WTF_MAKE_NONCOPYABLE(WebInputMethodControllerImpl);
23
24 public:
25 explicit WebInputMethodControllerImpl(WebLocalFrameImpl* owner_frame);
26 ~WebInputMethodControllerImpl() override;
27
28 static WebInputMethodControllerImpl* FromFrame(LocalFrame*);
29
30 // WebInputMethodController overrides.
31 bool SetComposition(const WebString& text,
32 const WebVector<WebCompositionUnderline>& underlines,
33 const WebRange& replacement_range,
34 int selection_start,
35 int selection_end) override;
36 bool CommitText(const WebString& text,
37 const WebVector<WebCompositionUnderline>& underlines,
38 const WebRange& replacement_range,
39 int relative_caret_position) override;
40 bool FinishComposingText(
41 ConfirmCompositionBehavior selection_behavior) override;
42 WebTextInputInfo TextInputInfo() override;
43 WebTextInputType TextInputType() override;
44
45 DECLARE_TRACE();
46
47 private:
48 LocalFrame* GetFrame() const;
49 InputMethodController& GetInputMethodController() const;
50 WebPlugin* FocusedPluginIfInputMethodSupported() const;
51
52 WeakMember<WebLocalFrameImpl> web_local_frame_;
53 };
54 } // namespace blink
55
56 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698