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

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

Issue 2333813002: Introduce WebInputMethodController to blink (Closed)
Patch Set: Rebased Created 4 years, 1 month 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 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 19 matching lines...) Expand all
30 30
31 #ifndef WebFrameWidgetImpl_h 31 #ifndef WebFrameWidgetImpl_h
32 #define WebFrameWidgetImpl_h 32 #define WebFrameWidgetImpl_h
33 33
34 #include "platform/graphics/GraphicsLayer.h" 34 #include "platform/graphics/GraphicsLayer.h"
35 #include "platform/heap/SelfKeepAlive.h" 35 #include "platform/heap/SelfKeepAlive.h"
36 #include "platform/scroll/ScrollTypes.h" 36 #include "platform/scroll/ScrollTypes.h"
37 #include "public/platform/WebPoint.h" 37 #include "public/platform/WebPoint.h"
38 #include "public/platform/WebSize.h" 38 #include "public/platform/WebSize.h"
39 #include "public/web/WebInputEvent.h" 39 #include "public/web/WebInputEvent.h"
40 #include "public/web/WebInputMethodController.h"
40 #include "web/PageWidgetDelegate.h" 41 #include "web/PageWidgetDelegate.h"
41 #include "web/WebFrameWidgetBase.h" 42 #include "web/WebFrameWidgetBase.h"
43 #include "web/WebInputMethodControllerImpl.h"
42 #include "web/WebLocalFrameImpl.h" 44 #include "web/WebLocalFrameImpl.h"
43 #include "web/WebViewImpl.h" 45 #include "web/WebViewImpl.h"
44 #include "wtf/Assertions.h" 46 #include "wtf/Assertions.h"
45 #include "wtf/HashSet.h" 47 #include "wtf/HashSet.h"
46 48
47 namespace blink { 49 namespace blink {
48 class Frame; 50 class Frame;
49 class Element; 51 class Element;
50 class InspectorOverlay; 52 class InspectorOverlay;
51 class LocalFrame; 53 class LocalFrame;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 void setCursorVisibilityState(bool isVisible) override; 92 void setCursorVisibilityState(bool isVisible) override;
91 bool hasTouchEventHandlersAt(const WebPoint&) override; 93 bool hasTouchEventHandlersAt(const WebPoint&) override;
92 94
93 void applyViewportDeltas(const WebFloatSize& visualViewportDelta, 95 void applyViewportDeltas(const WebFloatSize& visualViewportDelta,
94 const WebFloatSize& mainFrameDelta, 96 const WebFloatSize& mainFrameDelta,
95 const WebFloatSize& elasticOverscrollDelta, 97 const WebFloatSize& elasticOverscrollDelta,
96 float pageScaleDelta, 98 float pageScaleDelta,
97 float browserControlsDelta) override; 99 float browserControlsDelta) override;
98 void mouseCaptureLost() override; 100 void mouseCaptureLost() override;
99 void setFocus(bool enable) override; 101 void setFocus(bool enable) override;
100 bool setComposition(const WebString& text,
101 const WebVector<WebCompositionUnderline>& underlines,
102 int selectionStart,
103 int selectionEnd) override;
104 bool commitText(const WebString& text, int relativeCaretPosition) override;
105 bool finishComposingText(
106 ConfirmCompositionBehavior selectionBehavior) override;
107 WebRange compositionRange() override; 102 WebRange compositionRange() override;
108 WebTextInputInfo textInputInfo() override; 103 WebTextInputInfo textInputInfo() override;
109 WebTextInputType textInputType() override; 104 WebTextInputType textInputType() override;
110 WebColor backgroundColor() const override; 105 WebColor backgroundColor() const override;
111 bool selectionBounds(WebRect& anchor, WebRect& focus) const override; 106 bool selectionBounds(WebRect& anchor, WebRect& focus) const override;
112 bool selectionTextDirection(WebTextDirection& start, 107 bool selectionTextDirection(WebTextDirection& start,
113 WebTextDirection& end) const override; 108 WebTextDirection& end) const override;
114 bool isSelectionAnchorFirst() const override; 109 bool isSelectionAnchorFirst() const override;
115 WebRange caretOrSelectionRange() override; 110 WebRange caretOrSelectionRange() override;
116 void setTextDirection(WebTextDirection) override; 111 void setTextDirection(WebTextDirection) override;
117 bool isAcceleratedCompositingActive() const override; 112 bool isAcceleratedCompositingActive() const override;
118 void willCloseLayerTreeView() override; 113 void willCloseLayerTreeView() override;
119 void didAcquirePointerLock() override; 114 void didAcquirePointerLock() override;
120 void didNotAcquirePointerLock() override; 115 void didNotAcquirePointerLock() override;
121 void didLosePointerLock() override; 116 void didLosePointerLock() override;
122 bool getCompositionCharacterBounds(WebVector<WebRect>& bounds) override; 117 bool getCompositionCharacterBounds(WebVector<WebRect>& bounds) override;
123 void applyReplacementRange(const WebRange&) override; 118 void applyReplacementRange(const WebRange&) override;
124 119
125 // WebFrameWidget implementation. 120 // WebFrameWidget implementation.
126 WebLocalFrameImpl* localRoot() override { return m_localRoot; } 121 WebLocalFrameImpl* localRoot() override { return m_localRoot; }
127 void setVisibilityState(WebPageVisibilityState) override; 122 void setVisibilityState(WebPageVisibilityState) override;
128 bool isTransparent() const override; 123 bool isTransparent() const override;
129 void setIsTransparent(bool) override; 124 void setIsTransparent(bool) override;
130 void setBaseBackgroundColor(WebColor) override; 125 void setBaseBackgroundColor(WebColor) override;
126 WebInputMethodControllerImpl* getActiveWebInputMethodController()
127 const override;
131 128
132 Frame* focusedCoreFrame() const; 129 Frame* focusedCoreFrame() const;
133 130
134 // Returns the currently focused Element or null if no element has focus. 131 // Returns the currently focused Element or null if no element has focus.
135 Element* focusedElement() const; 132 Element* focusedElement() const;
136 133
137 PaintLayerCompositor* compositor() const; 134 PaintLayerCompositor* compositor() const;
138 135
139 // WebFrameWidgetBase overrides: 136 // WebFrameWidgetBase overrides:
140 bool forSubframe() const override { return true; } 137 bool forSubframe() const override { return true; }
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 246
250 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, 247 DEFINE_TYPE_CASTS(WebFrameWidgetImpl,
251 WebFrameWidgetBase, 248 WebFrameWidgetBase,
252 widget, 249 widget,
253 widget->forSubframe(), 250 widget->forSubframe(),
254 widget.forSubframe()); 251 widget.forSubframe());
255 252
256 } // namespace blink 253 } // namespace blink
257 254
258 #endif 255 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/BUILD.gn ('k') | third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698