Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(708)

Side by Side Diff: third_party/WebKit/Source/web/WebViewFrameWidget.cpp

Issue 2715243004: [blink] Support (semi-)transparent background colors in WebView/Frame. (Closed)
Patch Set: add unit test for remote frame transparency Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698