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

Side by Side Diff: third_party/WebKit/public/platform/WebLayerTreeView.h

Issue 2784783002: DNS: Testing for [blink] Support (semi-)transparent background colors.
Patch Set: test with !hasAlpha instead of alpha > 0 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 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 // Viewport size is given in physical pixels. 65 // Viewport size is given in physical pixels.
66 virtual void setViewportSize(const WebSize& deviceViewportSize) {} 66 virtual void setViewportSize(const WebSize& deviceViewportSize) {}
67 virtual WebSize getViewportSize() const { return WebSize(); } 67 virtual WebSize getViewportSize() const { return WebSize(); }
68 68
69 virtual void setDeviceScaleFactor(float) {} 69 virtual void setDeviceScaleFactor(float) {}
70 70
71 // Sets the background color for the viewport. 71 // Sets the background color for the viewport.
72 virtual void setBackgroundColor(WebColor) {} 72 virtual void setBackgroundColor(WebColor) {}
73 73
74 // Sets the background transparency for the viewport. The default is 'false'.
75 virtual void setHasTransparentBackground(bool) {}
76
77 // Sets whether this view is visible. In threaded mode, a view that is not 74 // Sets whether this view is visible. In threaded mode, a view that is not
78 // visible will not composite or trigger updateAnimations() or layout() calls 75 // visible will not composite or trigger updateAnimations() or layout() calls
79 // until it becomes visible. 76 // until it becomes visible.
80 virtual void setVisible(bool) {} 77 virtual void setVisible(bool) {}
81 78
82 // Sets the current page scale factor and minimum / maximum limits. Both 79 // Sets the current page scale factor and minimum / maximum limits. Both
83 // limits are initially 1 (no page scale allowed). 80 // limits are initially 1 (no page scale allowed).
84 virtual void setPageScaleFactorAndLimits(float pageScaleFactor, 81 virtual void setPageScaleFactorAndLimits(float pageScaleFactor,
85 float minimum, 82 float minimum,
86 float maximum) {} 83 float maximum) {}
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // Toggles the debug borders on layers 182 // Toggles the debug borders on layers
186 virtual void setShowDebugBorders(bool) {} 183 virtual void setShowDebugBorders(bool) {}
187 184
188 // Toggles scroll bottleneck rects on the HUD layer 185 // Toggles scroll bottleneck rects on the HUD layer
189 virtual void setShowScrollBottleneckRects(bool) {} 186 virtual void setShowScrollBottleneckRects(bool) {}
190 }; 187 };
191 188
192 } // namespace blink 189 } // namespace blink
193 190
194 #endif // WebLayerTreeView_h 191 #endif // WebLayerTreeView_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebViewTest.cpp ('k') | third_party/WebKit/public/web/WebFrameWidget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698