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