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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 WebBrowserControlsState current, | 174 WebBrowserControlsState current, |
175 bool animate) { | 175 bool animate) { |
176 return m_webView->updateBrowserControlsState(constraints, current, animate); | 176 return m_webView->updateBrowserControlsState(constraints, current, animate); |
177 } | 177 } |
178 | 178 |
179 void WebViewFrameWidget::setVisibilityState( | 179 void WebViewFrameWidget::setVisibilityState( |
180 WebPageVisibilityState visibilityState) { | 180 WebPageVisibilityState visibilityState) { |
181 return m_webView->setVisibilityState(visibilityState, false); | 181 return m_webView->setVisibilityState(visibilityState, false); |
182 } | 182 } |
183 | 183 |
184 void WebViewFrameWidget::setIsTransparent(bool isTransparent) { | 184 void WebViewFrameWidget::setBackgroundColorOverride(WebColor color) { |
185 m_webView->setIsTransparent(isTransparent); | 185 m_webView->setBackgroundColorOverride(color); |
186 } | 186 } |
187 | 187 |
188 bool WebViewFrameWidget::isTransparent() const { | 188 void WebViewFrameWidget::clearBackgroundColorOverride() { |
189 return m_webView->isTransparent(); | 189 return m_webView->clearBackgroundColorOverride(); |
| 190 } |
| 191 |
| 192 void WebViewFrameWidget::setBaseBackgroundColorOverride(WebColor color) { |
| 193 m_webView->setBaseBackgroundColorOverride(color); |
| 194 } |
| 195 |
| 196 void WebViewFrameWidget::clearBaseBackgroundColorOverride() { |
| 197 return m_webView->clearBaseBackgroundColorOverride(); |
190 } | 198 } |
191 | 199 |
192 void WebViewFrameWidget::setBaseBackgroundColor(WebColor color) { | 200 void WebViewFrameWidget::setBaseBackgroundColor(WebColor color) { |
193 m_webView->setBaseBackgroundColor(color); | 201 m_webView->setBaseBackgroundColor(color); |
194 } | 202 } |
195 | 203 |
196 WebLocalFrameImpl* WebViewFrameWidget::localRoot() const { | 204 WebLocalFrameImpl* WebViewFrameWidget::localRoot() const { |
197 return m_webView->mainFrameImpl(); | 205 return m_webView->mainFrameImpl(); |
198 } | 206 } |
199 | 207 |
(...skipping 30 matching lines...) Expand all Loading... |
230 | 238 |
231 CompositorAnimationHost* WebViewFrameWidget::animationHost() const { | 239 CompositorAnimationHost* WebViewFrameWidget::animationHost() const { |
232 return m_webView->animationHost(); | 240 return m_webView->animationHost(); |
233 } | 241 } |
234 | 242 |
235 HitTestResult WebViewFrameWidget::coreHitTestResultAt(const WebPoint& point) { | 243 HitTestResult WebViewFrameWidget::coreHitTestResultAt(const WebPoint& point) { |
236 return m_webView->coreHitTestResultAt(point); | 244 return m_webView->coreHitTestResultAt(point); |
237 } | 245 } |
238 | 246 |
239 } // namespace blink | 247 } // namespace blink |
OLD | NEW |