OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be found | 2 // Use of this source code is governed by a BSD-style license that can be found |
3 // in the LICENSE file. | 3 // in the LICENSE file. |
4 | 4 |
5 #ifndef WebViewFrameWidget_h | 5 #ifndef WebViewFrameWidget_h |
6 #define WebViewFrameWidget_h | 6 #define WebViewFrameWidget_h |
7 | 7 |
8 #include "platform/heap/Handle.h" | 8 #include "platform/heap/Handle.h" |
9 #include "web/WebFrameWidgetBase.h" | 9 #include "web/WebFrameWidgetBase.h" |
10 #include "web/WebLocalFrameImpl.h" | 10 #include "web/WebLocalFrameImpl.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 void compositeAndReadbackAsync( | 54 void compositeAndReadbackAsync( |
55 WebCompositeAndReadbackAsyncCallback*) override; | 55 WebCompositeAndReadbackAsyncCallback*) override; |
56 void themeChanged() override; | 56 void themeChanged() override; |
57 WebInputEventResult handleInputEvent(const WebInputEvent&) override; | 57 WebInputEventResult handleInputEvent(const WebInputEvent&) override; |
58 void setCursorVisibilityState(bool isVisible) override; | 58 void setCursorVisibilityState(bool isVisible) override; |
59 bool hasTouchEventHandlersAt(const WebPoint&) override; | 59 bool hasTouchEventHandlersAt(const WebPoint&) override; |
60 void applyViewportDeltas(const WebFloatSize& visualViewportDelta, | 60 void applyViewportDeltas(const WebFloatSize& visualViewportDelta, |
61 const WebFloatSize& layoutViewportDelta, | 61 const WebFloatSize& layoutViewportDelta, |
62 const WebFloatSize& elasticOverscrollDelta, | 62 const WebFloatSize& elasticOverscrollDelta, |
63 float scaleFactor, | 63 float scaleFactor, |
64 float topControlsShownRatioDelta) override; | 64 float browserControlsShownRatioDelta) override; |
65 void mouseCaptureLost() override; | 65 void mouseCaptureLost() override; |
66 void setFocus(bool) override; | 66 void setFocus(bool) override; |
67 bool setComposition(const WebString& text, | 67 bool setComposition(const WebString& text, |
68 const WebVector<WebCompositionUnderline>& underlines, | 68 const WebVector<WebCompositionUnderline>& underlines, |
69 int selectionStart, | 69 int selectionStart, |
70 int selectionEnd) override; | 70 int selectionEnd) override; |
71 bool commitText(const WebString& text, int relativeCaretPosition) override; | 71 bool commitText(const WebString& text, int relativeCaretPosition) override; |
72 bool finishComposingText( | 72 bool finishComposingText( |
73 ConfirmCompositionBehavior selectionBehavior) override; | 73 ConfirmCompositionBehavior selectionBehavior) override; |
74 WebRange compositionRange() override; | 74 WebRange compositionRange() override; |
75 WebTextInputInfo textInputInfo() override; | 75 WebTextInputInfo textInputInfo() override; |
76 WebTextInputType textInputType() override; | 76 WebTextInputType textInputType() override; |
77 bool selectionBounds(WebRect& anchor, WebRect& focus) const override; | 77 bool selectionBounds(WebRect& anchor, WebRect& focus) const override; |
78 bool selectionTextDirection(WebTextDirection& start, | 78 bool selectionTextDirection(WebTextDirection& start, |
79 WebTextDirection& end) const override; | 79 WebTextDirection& end) const override; |
80 bool isSelectionAnchorFirst() const override; | 80 bool isSelectionAnchorFirst() const override; |
81 WebRange caretOrSelectionRange() override; | 81 WebRange caretOrSelectionRange() override; |
82 void setTextDirection(WebTextDirection) override; | 82 void setTextDirection(WebTextDirection) override; |
83 bool isAcceleratedCompositingActive() const override; | 83 bool isAcceleratedCompositingActive() const override; |
84 bool isWebView() const override { return false; } | 84 bool isWebView() const override { return false; } |
85 bool isPagePopup() const override { return false; } | 85 bool isPagePopup() const override { return false; } |
86 void willCloseLayerTreeView() override; | 86 void willCloseLayerTreeView() override; |
87 void didAcquirePointerLock() override; | 87 void didAcquirePointerLock() override; |
88 void didNotAcquirePointerLock() override; | 88 void didNotAcquirePointerLock() override; |
89 void didLosePointerLock() override; | 89 void didLosePointerLock() override; |
90 WebColor backgroundColor() const override; | 90 WebColor backgroundColor() const override; |
91 WebPagePopup* pagePopup() const override; | 91 WebPagePopup* pagePopup() const override; |
92 bool getCompositionCharacterBounds(WebVector<WebRect>& bounds) override; | 92 bool getCompositionCharacterBounds(WebVector<WebRect>& bounds) override; |
93 void applyReplacementRange(const WebRange&) override; | 93 void applyReplacementRange(const WebRange&) override; |
94 void updateTopControlsState(WebTopControlsState constraints, | 94 void updateBrowserControlsState(WebBrowserControlsState constraints, |
95 WebTopControlsState current, | 95 WebBrowserControlsState current, |
96 bool animate) override; | 96 bool animate) override; |
97 void setVisibilityState(WebPageVisibilityState) override; | 97 void setVisibilityState(WebPageVisibilityState) override; |
98 bool isTransparent() const override; | 98 bool isTransparent() const override; |
99 void setIsTransparent(bool) override; | 99 void setIsTransparent(bool) override; |
100 void setBaseBackgroundColor(WebColor) override; | 100 void setBaseBackgroundColor(WebColor) override; |
101 WebLocalFrameImpl* localRoot() override; | 101 WebLocalFrameImpl* localRoot() override; |
102 | 102 |
103 // WebFrameWidgetBase overrides: | 103 // WebFrameWidgetBase overrides: |
104 bool forSubframe() const override { return false; } | 104 bool forSubframe() const override { return false; } |
105 void scheduleAnimation() override; | 105 void scheduleAnimation() override; |
106 CompositorProxyClient* createCompositorProxyClient() override; | 106 CompositorProxyClient* createCompositorProxyClient() override; |
107 void setRootGraphicsLayer(GraphicsLayer*) override; | 107 void setRootGraphicsLayer(GraphicsLayer*) override; |
108 void setRootLayer(WebLayer*) override; | 108 void setRootLayer(WebLayer*) override; |
109 void attachCompositorAnimationTimeline(CompositorAnimationTimeline*) override; | 109 void attachCompositorAnimationTimeline(CompositorAnimationTimeline*) override; |
110 void detachCompositorAnimationTimeline(CompositorAnimationTimeline*) override; | 110 void detachCompositorAnimationTimeline(CompositorAnimationTimeline*) override; |
111 WebWidgetClient* client() const override { return m_client; } | 111 WebWidgetClient* client() const override { return m_client; } |
112 HitTestResult coreHitTestResultAt(const WebPoint&) override; | 112 HitTestResult coreHitTestResultAt(const WebPoint&) override; |
113 | 113 |
114 private: | 114 private: |
115 WebWidgetClient* m_client; | 115 WebWidgetClient* m_client; |
116 RefPtr<WebViewImpl> m_webView; | 116 RefPtr<WebViewImpl> m_webView; |
117 Persistent<WebLocalFrameImpl> m_mainFrame; | 117 Persistent<WebLocalFrameImpl> m_mainFrame; |
118 }; | 118 }; |
119 | 119 |
120 } // namespace blink | 120 } // namespace blink |
121 | 121 |
122 #endif // WebViewFrameWidget_h | 122 #endif // WebViewFrameWidget_h |
OLD | NEW |