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

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: compile Created 4 years, 9 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 float defaultMaximumPageScaleFactor() const; 284 float defaultMaximumPageScaleFactor() const;
288 float minimumPageScaleFactor() const; 285 float minimumPageScaleFactor() const;
289 float maximumPageScaleFactor() const; 286 float maximumPageScaleFactor() const;
290 float clampPageScaleFactorToLimits(float) const; 287 float clampPageScaleFactorToLimits(float) const;
291 void resetScaleStateImmediately(); 288 void resetScaleStateImmediately();
292 289
293 HitTestResult coreHitTestResultAt(const WebPoint&); 290 HitTestResult coreHitTestResultAt(const WebPoint&);
294 void invalidateRect(const IntRect&); 291 void invalidateRect(const IntRect&);
295 292
296 void setIgnoreInputEvents(bool newValue); 293 void setIgnoreInputEvents(bool newValue);
294 void setBaseBackgroundColor(WebColor);
297 void setBackgroundColorOverride(WebColor); 295 void setBackgroundColorOverride(WebColor);
298 void setZoomFactorOverride(float); 296 void setZoomFactorOverride(float);
299 void updateShowFPSCounter(); 297 void updateShowFPSCounter();
300 void setCompositorDeviceScaleFactorOverride(float); 298 void setCompositorDeviceScaleFactorOverride(float);
301 void setRootLayerTransform(const WebSize& offset, float scale); 299 void setRootLayerTransform(const WebSize& offset, float scale);
302 300
303 Color baseBackgroundColor() const { return m_baseBackgroundColor; } 301 Color baseBackgroundColor() const { return m_baseBackgroundColor; }
304 302
305 WebColor backgroundColorOverride() const { return m_backgroundColorOverride; } 303 WebColor backgroundColorOverride() const { return m_backgroundColorOverride; }
306 304
(...skipping 223 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
« no previous file with comments | « third_party/WebKit/Source/web/WebViewFrameWidget.cpp ('k') | third_party/WebKit/Source/web/tests/WebViewTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698