| 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/WebInputMethodControllerImpl.h" | 10 #include "web/WebInputMethodControllerImpl.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 bool isWebView() const override { return false; } | 78 bool isWebView() const override { return false; } |
| 79 bool isPagePopup() const override { return false; } | 79 bool isPagePopup() const override { return false; } |
| 80 void willCloseLayerTreeView() override; | 80 void willCloseLayerTreeView() override; |
| 81 WebColor backgroundColor() const override; | 81 WebColor backgroundColor() const override; |
| 82 WebPagePopup* pagePopup() const override; | 82 WebPagePopup* pagePopup() const override; |
| 83 bool getCompositionCharacterBounds(WebVector<WebRect>& bounds) override; | 83 bool getCompositionCharacterBounds(WebVector<WebRect>& bounds) override; |
| 84 void updateBrowserControlsState(WebBrowserControlsState constraints, | 84 void updateBrowserControlsState(WebBrowserControlsState constraints, |
| 85 WebBrowserControlsState current, | 85 WebBrowserControlsState current, |
| 86 bool animate) override; | 86 bool animate) override; |
| 87 void setVisibilityState(WebPageVisibilityState) override; | 87 void setVisibilityState(WebPageVisibilityState) override; |
| 88 bool isTransparent() const override; | 88 void setBackgroundColorOverride(WebColor) override; |
| 89 void setIsTransparent(bool) override; | 89 void clearBackgroundColorOverride() override; |
| 90 void setBaseBackgroundColorOverride(WebColor) override; |
| 91 void clearBaseBackgroundColorOverride() override; |
| 90 void setBaseBackgroundColor(WebColor) override; | 92 void setBaseBackgroundColor(WebColor) override; |
| 91 WebLocalFrameImpl* localRoot() const override; | 93 WebLocalFrameImpl* localRoot() const override; |
| 92 WebInputMethodControllerImpl* getActiveWebInputMethodController() | 94 WebInputMethodControllerImpl* getActiveWebInputMethodController() |
| 93 const override; | 95 const override; |
| 94 | 96 |
| 95 // WebFrameWidgetBase overrides: | 97 // WebFrameWidgetBase overrides: |
| 96 bool forSubframe() const override { return false; } | 98 bool forSubframe() const override { return false; } |
| 97 void scheduleAnimation() override; | 99 void scheduleAnimation() override; |
| 98 CompositorWorkerProxyClient* createCompositorWorkerProxyClient() override; | 100 CompositorWorkerProxyClient* createCompositorWorkerProxyClient() override; |
| 99 AnimationWorkletProxyClient* createAnimationWorkletProxyClient() override; | 101 AnimationWorkletProxyClient* createAnimationWorkletProxyClient() override; |
| 100 void setRootGraphicsLayer(GraphicsLayer*) override; | 102 void setRootGraphicsLayer(GraphicsLayer*) override; |
| 101 void setRootLayer(WebLayer*) override; | 103 void setRootLayer(WebLayer*) override; |
| 102 WebLayerTreeView* getLayerTreeView() const override; | 104 WebLayerTreeView* getLayerTreeView() const override; |
| 103 CompositorAnimationHost* animationHost() const override; | 105 CompositorAnimationHost* animationHost() const override; |
| 104 WebWidgetClient* client() const override { return m_client; } | 106 WebWidgetClient* client() const override { return m_client; } |
| 105 HitTestResult coreHitTestResultAt(const WebPoint&) override; | 107 HitTestResult coreHitTestResultAt(const WebPoint&) override; |
| 106 | 108 |
| 107 private: | 109 private: |
| 108 WebWidgetClient* m_client; | 110 WebWidgetClient* m_client; |
| 109 RefPtr<WebViewImpl> m_webView; | 111 RefPtr<WebViewImpl> m_webView; |
| 110 Persistent<WebLocalFrameImpl> m_mainFrame; | 112 Persistent<WebLocalFrameImpl> m_mainFrame; |
| 111 }; | 113 }; |
| 112 | 114 |
| 113 } // namespace blink | 115 } // namespace blink |
| 114 | 116 |
| 115 #endif // WebViewFrameWidget_h | 117 #endif // WebViewFrameWidget_h |
| OLD | NEW |