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

Side by Side Diff: third_party/WebKit/Source/web/WebViewImpl.h

Issue 1565893004: Sets a transparent background for out-of-process subframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removing background override Created 4 years, 10 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 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 161
162 // WebView methods: 162 // WebView methods:
163 virtual bool isWebView() const { return true; } 163 virtual bool isWebView() const { return true; }
164 void setMainFrame(WebFrame*) override; 164 void setMainFrame(WebFrame*) override;
165 void setCredentialManagerClient(WebCredentialManagerClient*) override; 165 void setCredentialManagerClient(WebCredentialManagerClient*) override;
166 void setPrerendererClient(WebPrerendererClient*) override; 166 void setPrerendererClient(WebPrerendererClient*) override;
167 void setSpellCheckClient(WebSpellCheckClient*) override; 167 void setSpellCheckClient(WebSpellCheckClient*) override;
168 WebSettings* settings() override; 168 WebSettings* settings() override;
169 WebString pageEncoding() const override; 169 WebString pageEncoding() const override;
170 void setPageEncoding(const WebString&) override; 170 void setPageEncoding(const WebString&) override;
171 bool isTransparent() const override;
172 void setIsTransparent(bool value) override;
173 void setBaseBackgroundColor(WebColor) override;
174 bool tabsToLinks() const override; 171 bool tabsToLinks() const override;
175 void setTabsToLinks(bool value) override; 172 void setTabsToLinks(bool value) override;
176 bool tabKeyCyclesThroughElements() const override; 173 bool tabKeyCyclesThroughElements() const override;
177 void setTabKeyCyclesThroughElements(bool value) override; 174 void setTabKeyCyclesThroughElements(bool value) override;
178 bool isActive() const override; 175 bool isActive() const override;
179 void setIsActive(bool value) override; 176 void setIsActive(bool value) override;
180 void setDomainRelaxationForbidden(bool, const WebString& scheme) override; 177 void setDomainRelaxationForbidden(bool, const WebString& scheme) override;
181 void setWindowFeatures(const WebWindowFeatures&) override; 178 void setWindowFeatures(const WebWindowFeatures&) override;
182 void setOpenedByDOM() override; 179 void setOpenedByDOM() override;
183 WebFrame* mainFrame() override; 180 WebFrame* mainFrame() override;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 float defaultMaximumPageScaleFactor() const; 283 float defaultMaximumPageScaleFactor() const;
287 float minimumPageScaleFactor() const; 284 float minimumPageScaleFactor() const;
288 float maximumPageScaleFactor() const; 285 float maximumPageScaleFactor() const;
289 float clampPageScaleFactorToLimits(float) const; 286 float clampPageScaleFactorToLimits(float) const;
290 void resetScaleStateImmediately(); 287 void resetScaleStateImmediately();
291 288
292 HitTestResult coreHitTestResultAt(const WebPoint&); 289 HitTestResult coreHitTestResultAt(const WebPoint&);
293 void invalidateRect(const IntRect&); 290 void invalidateRect(const IntRect&);
294 291
295 void setIgnoreInputEvents(bool newValue); 292 void setIgnoreInputEvents(bool newValue);
293 void setBaseBackgroundColor(WebColor);
296 void setBackgroundColorOverride(WebColor); 294 void setBackgroundColorOverride(WebColor);
297 void setZoomFactorOverride(float); 295 void setZoomFactorOverride(float);
298 void updateShowFPSCounter(); 296 void updateShowFPSCounter();
299 void setCompositorDeviceScaleFactorOverride(float); 297 void setCompositorDeviceScaleFactorOverride(float);
300 void setRootLayerTransform(const WebSize& offset, float scale); 298 void setRootLayerTransform(const WebSize& offset, float scale);
301 299
302 Color baseBackgroundColor() const { return m_baseBackgroundColor; } 300 Color baseBackgroundColor() const { return m_baseBackgroundColor; }
303 301
304 WebColor backgroundColorOverride() const { return m_backgroundColorOverride; } 302 WebColor backgroundColorOverride() const { return m_backgroundColorOverride; }
305 303
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 // view. 528 // view.
531 void attachPaintArtifactCompositor(); 529 void attachPaintArtifactCompositor();
532 530
533 // Detaches the PaintArtifactCompositor and clears the layer tree view's 531 // Detaches the PaintArtifactCompositor and clears the layer tree view's
534 // root layer. 532 // root layer.
535 void detachPaintArtifactCompositor(); 533 void detachPaintArtifactCompositor();
536 534
537 // Use in Slimming Paint v2 to update the layer tree for the content. 535 // Use in Slimming Paint v2 to update the layer tree for the content.
538 PaintArtifactCompositor& paintArtifactCompositor() { return m_paintArtifactC ompositor; } 536 PaintArtifactCompositor& paintArtifactCompositor() { return m_paintArtifactC ompositor; }
539 537
538 bool isTransparent() const;
539 void setIsTransparent(bool value);
540
540 private: 541 private:
541 InspectorOverlay* inspectorOverlay(); 542 InspectorOverlay* inspectorOverlay();
542 543
543 void setPageScaleFactorAndLocation(float, const FloatPoint&); 544 void setPageScaleFactorAndLocation(float, const FloatPoint&);
544 545
545 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO rigin, const FloatPoint& visualViewportOrigin); 546 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO rigin, const FloatPoint& visualViewportOrigin);
546 547
547 float maximumLegiblePageScale() const; 548 float maximumLegiblePageScale() const;
548 void refreshPageScaleFactorAfterLayout(); 549 void refreshPageScaleFactorAfterLayout();
549 void resumeTreeViewCommitsIfRenderingReady(); 550 void resumeTreeViewCommitsIfRenderingReady();
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 }; 776 };
776 777
777 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView()); 778 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView());
778 // We have no ways to check if the specified WebView is an instance of 779 // We have no ways to check if the specified WebView is an instance of
779 // WebViewImpl because WebViewImpl is the only implementation of WebView. 780 // WebViewImpl because WebViewImpl is the only implementation of WebView.
780 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 781 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
781 782
782 } // namespace blink 783 } // namespace blink
783 784
784 #endif 785 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698