| OLD | NEW |
| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 bool selectionTextDirection(WebTextDirection& start, WebTextDirection& end)
const override; | 109 bool selectionTextDirection(WebTextDirection& start, WebTextDirection& end)
const override; |
| 110 bool isSelectionAnchorFirst() const override; | 110 bool isSelectionAnchorFirst() const override; |
| 111 bool caretOrSelectionRange(size_t* location, size_t* length) override; | 111 bool caretOrSelectionRange(size_t* location, size_t* length) override; |
| 112 void setTextDirection(WebTextDirection) override; | 112 void setTextDirection(WebTextDirection) override; |
| 113 bool isAcceleratedCompositingActive() const override; | 113 bool isAcceleratedCompositingActive() const override; |
| 114 void willCloseLayerTreeView() override; | 114 void willCloseLayerTreeView() override; |
| 115 void didChangeWindowResizerRect() override; | 115 void didChangeWindowResizerRect() override; |
| 116 void didAcquirePointerLock() override; | 116 void didAcquirePointerLock() override; |
| 117 void didNotAcquirePointerLock() override; | 117 void didNotAcquirePointerLock() override; |
| 118 void didLosePointerLock() override; | 118 void didLosePointerLock() override; |
| 119 bool getCompositionCharacterBounds(WebVector<WebRect>& bounds) override; |
| 120 void applyReplacementRange(int start, int length) override; |
| 119 | 121 |
| 120 // WebFrameWidget implementation. | 122 // WebFrameWidget implementation. |
| 121 void setVisibilityState(WebPageVisibilityState) override; | 123 void setVisibilityState(WebPageVisibilityState) override; |
| 122 bool isTransparent() const override; | 124 bool isTransparent() const override; |
| 123 void setIsTransparent(bool) override; | 125 void setIsTransparent(bool) override; |
| 124 void setBaseBackgroundColor(WebColor) override; | 126 void setBaseBackgroundColor(WebColor) override; |
| 125 void scheduleAnimation() override; | 127 void scheduleAnimation() override; |
| 126 CompositorProxyClient* createCompositorProxyClient() override; | 128 CompositorProxyClient* createCompositorProxyClient() override; |
| 127 | 129 |
| 128 WebWidgetClient* client() const override { return m_client; } | 130 WebWidgetClient* client() const override { return m_client; } |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 void handleMouseLeave(LocalFrame&, const WebMouseEvent&) override; | 190 void handleMouseLeave(LocalFrame&, const WebMouseEvent&) override; |
| 189 void handleMouseDown(LocalFrame&, const WebMouseEvent&) override; | 191 void handleMouseDown(LocalFrame&, const WebMouseEvent&) override; |
| 190 void handleMouseUp(LocalFrame&, const WebMouseEvent&) override; | 192 void handleMouseUp(LocalFrame&, const WebMouseEvent&) override; |
| 191 WebInputEventResult handleMouseWheel(LocalFrame&, const WebMouseWheelEvent&)
override; | 193 WebInputEventResult handleMouseWheel(LocalFrame&, const WebMouseWheelEvent&)
override; |
| 192 WebInputEventResult handleGestureEvent(const WebGestureEvent&) override; | 194 WebInputEventResult handleGestureEvent(const WebGestureEvent&) override; |
| 193 WebInputEventResult handleKeyEvent(const WebKeyboardEvent&) override; | 195 WebInputEventResult handleKeyEvent(const WebKeyboardEvent&) override; |
| 194 WebInputEventResult handleCharEvent(const WebKeyboardEvent&) override; | 196 WebInputEventResult handleCharEvent(const WebKeyboardEvent&) override; |
| 195 | 197 |
| 196 WebViewImpl* view() const { return m_localRoot->viewImpl(); } | 198 WebViewImpl* view() const { return m_localRoot->viewImpl(); } |
| 197 | 199 |
| 200 // This method returns the focused frame belonging to this WebWidget, that |
| 201 // is, a focused frame with the same local root as the one corresponding |
| 202 // to this widget. It will return nullptr if no frame is focused or, the |
| 203 // focused frame has a different local root. |
| 204 LocalFrame* focusedLocalFrameInWidget() const; |
| 205 |
| 206 bool confirmComposition(const WebString& text, ConfirmCompositionBehavior se
lectionBehavior) const; |
| 207 |
| 208 WebPlugin* focusedPluginIfInputMethodSupported(LocalFrame*) const; |
| 209 |
| 210 WebString inputModeOfFocusedElement() const; |
| 211 |
| 212 int textInputFlags() const; |
| 213 |
| 214 LocalFrame* focusedLocalFrameAvailableForIme() const; |
| 215 |
| 198 WebWidgetClient* m_client; | 216 WebWidgetClient* m_client; |
| 199 | 217 |
| 200 // WebFrameWidget is associated with a subtree of the frame tree, correspond
ing to a maximal | 218 // WebFrameWidget is associated with a subtree of the frame tree, correspond
ing to a maximal |
| 201 // connected tree of LocalFrames. This member points to the root of that sub
tree. | 219 // connected tree of LocalFrames. This member points to the root of that sub
tree. |
| 202 Member<WebLocalFrameImpl> m_localRoot; | 220 Member<WebLocalFrameImpl> m_localRoot; |
| 203 | 221 |
| 204 WebSize m_size; | 222 WebSize m_size; |
| 205 | 223 |
| 206 // If set, the (plugin) node which has mouse capture. | 224 // If set, the (plugin) node which has mouse capture. |
| 207 Member<Node> m_mouseCaptureNode; | 225 Member<Node> m_mouseCaptureNode; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 218 bool m_isAcceleratedCompositingActive; | 236 bool m_isAcceleratedCompositingActive; |
| 219 bool m_layerTreeViewClosed; | 237 bool m_layerTreeViewClosed; |
| 220 | 238 |
| 221 bool m_suppressNextKeypressEvent; | 239 bool m_suppressNextKeypressEvent; |
| 222 | 240 |
| 223 bool m_ignoreInputEvents; | 241 bool m_ignoreInputEvents; |
| 224 | 242 |
| 225 // Whether the WebFrameWidget is rendering transparently. | 243 // Whether the WebFrameWidget is rendering transparently. |
| 226 bool m_isTransparent; | 244 bool m_isTransparent; |
| 227 | 245 |
| 246 // Represents whether or not this object should process incoming IME events. |
| 247 bool m_imeAcceptEvents; |
| 248 |
| 228 static const WebInputEvent* m_currentInputEvent; | 249 static const WebInputEvent* m_currentInputEvent; |
| 229 | 250 |
| 230 WebColor m_baseBackgroundColor; | 251 WebColor m_baseBackgroundColor; |
| 231 | 252 |
| 232 SelfKeepAlive<WebFrameWidgetImpl> m_selfKeepAlive; | 253 SelfKeepAlive<WebFrameWidgetImpl> m_selfKeepAlive; |
| 233 }; | 254 }; |
| 234 | 255 |
| 235 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, WebFrameWidget, widget, widget->forSubfram
e(), widget.forSubframe()); | 256 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, WebFrameWidget, widget, widget->forSubfram
e(), widget.forSubframe()); |
| 236 | 257 |
| 237 } // namespace blink | 258 } // namespace blink |
| 238 | 259 |
| 239 #endif | 260 #endif |
| OLD | NEW |