| 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 21 matching lines...) Expand all Loading... |
| 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 "web/PageWidgetDelegate.h" | 40 #include "web/PageWidgetDelegate.h" |
| 41 #include "web/WebFrameWidgetBase.h" | 41 #include "web/WebFrameWidgetBase.h" |
| 42 #include "web/WebInputMethodControllerImpl.h" |
| 42 #include "web/WebLocalFrameImpl.h" | 43 #include "web/WebLocalFrameImpl.h" |
| 43 #include "web/WebViewImpl.h" | 44 #include "web/WebViewImpl.h" |
| 44 #include "wtf/Assertions.h" | 45 #include "wtf/Assertions.h" |
| 45 #include "wtf/HashSet.h" | 46 #include "wtf/HashSet.h" |
| 46 | 47 |
| 47 namespace blink { | 48 namespace blink { |
| 48 class Frame; | 49 class Frame; |
| 49 class Element; | 50 class Element; |
| 50 class LocalFrame; | 51 class LocalFrame; |
| 51 class Page; | 52 class Page; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 bool hasTouchEventHandlersAt(const WebPoint&) override; | 88 bool hasTouchEventHandlersAt(const WebPoint&) override; |
| 88 | 89 |
| 89 void applyViewportDeltas( | 90 void applyViewportDeltas( |
| 90 const WebFloatSize& visualViewportDelta, | 91 const WebFloatSize& visualViewportDelta, |
| 91 const WebFloatSize& mainFrameDelta, | 92 const WebFloatSize& mainFrameDelta, |
| 92 const WebFloatSize& elasticOverscrollDelta, | 93 const WebFloatSize& elasticOverscrollDelta, |
| 93 float pageScaleDelta, | 94 float pageScaleDelta, |
| 94 float topControlsDelta) override; | 95 float topControlsDelta) override; |
| 95 void mouseCaptureLost() override; | 96 void mouseCaptureLost() override; |
| 96 void setFocus(bool enable) override; | 97 void setFocus(bool enable) override; |
| 97 bool setComposition( | |
| 98 const WebString& text, | |
| 99 const WebVector<WebCompositionUnderline>& underlines, | |
| 100 int selectionStart, int selectionEnd) override; | |
| 101 bool commitText(const WebString& text, int relativeCaretPosition) override; | |
| 102 bool finishComposingText(ConfirmCompositionBehavior selectionBehavior) overr
ide; | |
| 103 WebRange compositionRange() override; | 98 WebRange compositionRange() override; |
| 104 WebTextInputInfo textInputInfo() override; | 99 WebTextInputInfo textInputInfo() override; |
| 105 WebTextInputType textInputType() override; | 100 WebTextInputType textInputType() override; |
| 106 WebColor backgroundColor() const override; | 101 WebColor backgroundColor() const override; |
| 107 bool selectionBounds(WebRect& anchor, WebRect& focus) const override; | 102 bool selectionBounds(WebRect& anchor, WebRect& focus) const override; |
| 108 bool selectionTextDirection(WebTextDirection& start, WebTextDirection& end)
const override; | 103 bool selectionTextDirection(WebTextDirection& start, WebTextDirection& end)
const override; |
| 109 bool isSelectionAnchorFirst() const override; | 104 bool isSelectionAnchorFirst() const override; |
| 110 WebRange caretOrSelectionRange() override; | 105 WebRange caretOrSelectionRange() override; |
| 111 void setTextDirection(WebTextDirection) override; | 106 void setTextDirection(WebTextDirection) override; |
| 112 bool isAcceleratedCompositingActive() const override; | 107 bool isAcceleratedCompositingActive() const override; |
| 113 void willCloseLayerTreeView() override; | 108 void willCloseLayerTreeView() override; |
| 114 void didChangeWindowResizerRect() override; | 109 void didChangeWindowResizerRect() override; |
| 115 void didAcquirePointerLock() override; | 110 void didAcquirePointerLock() override; |
| 116 void didNotAcquirePointerLock() override; | 111 void didNotAcquirePointerLock() override; |
| 117 void didLosePointerLock() override; | 112 void didLosePointerLock() override; |
| 118 bool getCompositionCharacterBounds(WebVector<WebRect>& bounds) override; | 113 bool getCompositionCharacterBounds(WebVector<WebRect>& bounds) override; |
| 119 void applyReplacementRange(const WebRange&) override; | 114 void applyReplacementRange(const WebRange&) override; |
| 120 | 115 |
| 121 // WebFrameWidget implementation. | 116 // WebFrameWidget implementation. |
| 122 WebLocalFrameImpl* localRoot() override { return m_localRoot; } | 117 WebLocalFrameImpl* localRoot() override { return m_localRoot; } |
| 123 void setVisibilityState(WebPageVisibilityState) override; | 118 void setVisibilityState(WebPageVisibilityState) override; |
| 124 bool isTransparent() const override; | 119 bool isTransparent() const override; |
| 125 void setIsTransparent(bool) override; | 120 void setIsTransparent(bool) override; |
| 126 void setBaseBackgroundColor(WebColor) override; | 121 void setBaseBackgroundColor(WebColor) override; |
| 122 WebInputMethodControllerImpl* getActiveWebInputMethodController() const over
ride; |
| 127 | 123 |
| 128 Frame* focusedCoreFrame() const; | 124 Frame* focusedCoreFrame() const; |
| 129 | 125 |
| 130 // Returns the currently focused Element or null if no element has focus. | 126 // Returns the currently focused Element or null if no element has focus. |
| 131 Element* focusedElement() const; | 127 Element* focusedElement() const; |
| 132 | 128 |
| 133 PaintLayerCompositor* compositor() const; | 129 PaintLayerCompositor* compositor() const; |
| 134 | 130 |
| 135 // WebFrameWidgetBase overrides: | 131 // WebFrameWidgetBase overrides: |
| 136 bool forSubframe() const override { return true; } | 132 bool forSubframe() const override { return true; } |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 WebColor m_baseBackgroundColor; | 249 WebColor m_baseBackgroundColor; |
| 254 | 250 |
| 255 SelfKeepAlive<WebFrameWidgetImpl> m_selfKeepAlive; | 251 SelfKeepAlive<WebFrameWidgetImpl> m_selfKeepAlive; |
| 256 }; | 252 }; |
| 257 | 253 |
| 258 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, WebFrameWidgetBase, widget, widget->forSub
frame(), widget.forSubframe()); | 254 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, WebFrameWidgetBase, widget, widget->forSub
frame(), widget.forSubframe()); |
| 259 | 255 |
| 260 } // namespace blink | 256 } // namespace blink |
| 261 | 257 |
| 262 #endif | 258 #endif |
| OLD | NEW |