| 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 #include "web/WebViewFrameWidget.h" | 5 #include "web/WebViewFrameWidget.h" |
| 6 | 6 |
| 7 #include "web/WebInputMethodControllerImpl.h" | 7 #include "web/WebInputMethodControllerImpl.h" |
| 8 #include "web/WebLocalFrameImpl.h" | 8 #include "web/WebLocalFrameImpl.h" |
| 9 #include "web/WebViewImpl.h" | 9 #include "web/WebViewImpl.h" |
| 10 | 10 |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 WebBrowserControlsState current, | 167 WebBrowserControlsState current, |
| 168 bool animate) { | 168 bool animate) { |
| 169 return m_webView->updateBrowserControlsState(constraints, current, animate); | 169 return m_webView->updateBrowserControlsState(constraints, current, animate); |
| 170 } | 170 } |
| 171 | 171 |
| 172 void WebViewFrameWidget::setVisibilityState( | 172 void WebViewFrameWidget::setVisibilityState( |
| 173 WebPageVisibilityState visibilityState) { | 173 WebPageVisibilityState visibilityState) { |
| 174 return m_webView->setVisibilityState(visibilityState, false); | 174 return m_webView->setVisibilityState(visibilityState, false); |
| 175 } | 175 } |
| 176 | 176 |
| 177 void WebViewFrameWidget::setIsTransparent(bool isTransparent) { | 177 void WebViewFrameWidget::setBackgroundColorOverride(WebColor color) { |
| 178 m_webView->setIsTransparent(isTransparent); | 178 m_webView->setBackgroundColorOverride(color); |
| 179 } | 179 } |
| 180 | 180 |
| 181 bool WebViewFrameWidget::isTransparent() const { | 181 void WebViewFrameWidget::clearBackgroundColorOverride() { |
| 182 return m_webView->isTransparent(); | 182 return m_webView->clearBackgroundColorOverride(); |
| 183 } |
| 184 |
| 185 void WebViewFrameWidget::setBaseBackgroundColorOverride(WebColor color) { |
| 186 m_webView->setBaseBackgroundColorOverride(color); |
| 187 } |
| 188 |
| 189 void WebViewFrameWidget::clearBaseBackgroundColorOverride() { |
| 190 return m_webView->clearBaseBackgroundColorOverride(); |
| 183 } | 191 } |
| 184 | 192 |
| 185 void WebViewFrameWidget::setBaseBackgroundColor(WebColor color) { | 193 void WebViewFrameWidget::setBaseBackgroundColor(WebColor color) { |
| 186 m_webView->setBaseBackgroundColor(color); | 194 m_webView->setBaseBackgroundColor(color); |
| 187 } | 195 } |
| 188 | 196 |
| 189 WebLocalFrameImpl* WebViewFrameWidget::localRoot() const { | 197 WebLocalFrameImpl* WebViewFrameWidget::localRoot() const { |
| 190 return m_webView->mainFrameImpl(); | 198 return m_webView->mainFrameImpl(); |
| 191 } | 199 } |
| 192 | 200 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 223 | 231 |
| 224 CompositorAnimationHost* WebViewFrameWidget::animationHost() const { | 232 CompositorAnimationHost* WebViewFrameWidget::animationHost() const { |
| 225 return m_webView->animationHost(); | 233 return m_webView->animationHost(); |
| 226 } | 234 } |
| 227 | 235 |
| 228 HitTestResult WebViewFrameWidget::coreHitTestResultAt(const WebPoint& point) { | 236 HitTestResult WebViewFrameWidget::coreHitTestResultAt(const WebPoint& point) { |
| 229 return m_webView->coreHitTestResultAt(point); | 237 return m_webView->coreHitTestResultAt(point); |
| 230 } | 238 } |
| 231 | 239 |
| 232 } // namespace blink | 240 } // namespace blink |
| OLD | NEW |