| 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 19 matching lines...) Expand all Loading... |
| 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 LocalFrame; | 52 class LocalFrame; |
| 51 class Page; | 53 class Page; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 void setCursorVisibilityState(bool isVisible) override; | 91 void setCursorVisibilityState(bool isVisible) override; |
| 90 bool hasTouchEventHandlersAt(const WebPoint&) override; | 92 bool hasTouchEventHandlersAt(const WebPoint&) override; |
| 91 | 93 |
| 92 void applyViewportDeltas(const WebFloatSize& visualViewportDelta, | 94 void applyViewportDeltas(const WebFloatSize& visualViewportDelta, |
| 93 const WebFloatSize& mainFrameDelta, | 95 const WebFloatSize& mainFrameDelta, |
| 94 const WebFloatSize& elasticOverscrollDelta, | 96 const WebFloatSize& elasticOverscrollDelta, |
| 95 float pageScaleDelta, | 97 float pageScaleDelta, |
| 96 float browserControlsDelta) override; | 98 float browserControlsDelta) override; |
| 97 void mouseCaptureLost() override; | 99 void mouseCaptureLost() override; |
| 98 void setFocus(bool enable) override; | 100 void setFocus(bool enable) override; |
| 99 bool setComposition(const WebString& text, | |
| 100 const WebVector<WebCompositionUnderline>& underlines, | |
| 101 int selectionStart, | |
| 102 int selectionEnd) override; | |
| 103 bool commitText(const WebString& text, int relativeCaretPosition) override; | |
| 104 bool finishComposingText( | |
| 105 ConfirmCompositionBehavior selectionBehavior) override; | |
| 106 WebRange compositionRange() override; | 101 WebRange compositionRange() override; |
| 107 WebTextInputInfo textInputInfo() override; | 102 WebTextInputInfo textInputInfo() override; |
| 108 WebTextInputType textInputType() override; | 103 WebTextInputType textInputType() override; |
| 109 WebColor backgroundColor() const override; | 104 WebColor backgroundColor() const override; |
| 110 bool selectionBounds(WebRect& anchor, WebRect& focus) const override; | 105 bool selectionBounds(WebRect& anchor, WebRect& focus) const override; |
| 111 bool selectionTextDirection(WebTextDirection& start, | 106 bool selectionTextDirection(WebTextDirection& start, |
| 112 WebTextDirection& end) const override; | 107 WebTextDirection& end) const override; |
| 113 bool isSelectionAnchorFirst() const override; | 108 bool isSelectionAnchorFirst() const override; |
| 114 WebRange caretOrSelectionRange() override; | 109 WebRange caretOrSelectionRange() override; |
| 115 void setTextDirection(WebTextDirection) override; | 110 void setTextDirection(WebTextDirection) override; |
| 116 bool isAcceleratedCompositingActive() const override; | 111 bool isAcceleratedCompositingActive() const override; |
| 117 void willCloseLayerTreeView() override; | 112 void willCloseLayerTreeView() override; |
| 118 void didAcquirePointerLock() override; | 113 void didAcquirePointerLock() override; |
| 119 void didNotAcquirePointerLock() override; | 114 void didNotAcquirePointerLock() override; |
| 120 void didLosePointerLock() override; | 115 void didLosePointerLock() override; |
| 121 bool getCompositionCharacterBounds(WebVector<WebRect>& bounds) override; | 116 bool getCompositionCharacterBounds(WebVector<WebRect>& bounds) override; |
| 122 void applyReplacementRange(const WebRange&) override; | 117 void applyReplacementRange(const WebRange&) override; |
| 123 | 118 |
| 124 // WebFrameWidget implementation. | 119 // WebFrameWidget implementation. |
| 125 WebLocalFrameImpl* localRoot() override { return m_localRoot; } | 120 WebLocalFrameImpl* localRoot() override { return m_localRoot; } |
| 126 void setVisibilityState(WebPageVisibilityState) override; | 121 void setVisibilityState(WebPageVisibilityState) override; |
| 127 bool isTransparent() const override; | 122 bool isTransparent() const override; |
| 128 void setIsTransparent(bool) override; | 123 void setIsTransparent(bool) override; |
| 129 void setBaseBackgroundColor(WebColor) override; | 124 void setBaseBackgroundColor(WebColor) override; |
| 125 WebInputMethodControllerImpl* getActiveWebInputMethodController() |
| 126 const override; |
| 130 | 127 |
| 131 Frame* focusedCoreFrame() const; | 128 Frame* focusedCoreFrame() const; |
| 132 | 129 |
| 133 // Returns the currently focused Element or null if no element has focus. | 130 // Returns the currently focused Element or null if no element has focus. |
| 134 Element* focusedElement() const; | 131 Element* focusedElement() const; |
| 135 | 132 |
| 136 PaintLayerCompositor* compositor() const; | 133 PaintLayerCompositor* compositor() const; |
| 137 | 134 |
| 138 // WebFrameWidgetBase overrides: | 135 // WebFrameWidgetBase overrides: |
| 139 bool forSubframe() const override { return true; } | 136 bool forSubframe() const override { return true; } |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 | 243 |
| 247 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, | 244 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, |
| 248 WebFrameWidgetBase, | 245 WebFrameWidgetBase, |
| 249 widget, | 246 widget, |
| 250 widget->forSubframe(), | 247 widget->forSubframe(), |
| 251 widget.forSubframe()); | 248 widget.forSubframe()); |
| 252 | 249 |
| 253 } // namespace blink | 250 } // namespace blink |
| 254 | 251 |
| 255 #endif | 252 #endif |
| OLD | NEW |