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

Side by Side Diff: third_party/WebKit/public/web/WebView.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: split cc changes 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) 2009, 2010, 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2010, 2011, 2012 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // Options ------------------------------------------------------------- 101 // Options -------------------------------------------------------------
102 102
103 // The returned pointer is valid for the lifetime of the WebView. 103 // The returned pointer is valid for the lifetime of the WebView.
104 virtual WebSettings* settings() = 0; 104 virtual WebSettings* settings() = 0;
105 105
106 // Corresponds to the encoding of the main frame. Setting the page 106 // Corresponds to the encoding of the main frame. Setting the page
107 // encoding may cause the main frame to reload. 107 // encoding may cause the main frame to reload.
108 virtual WebString pageEncoding() const = 0; 108 virtual WebString pageEncoding() const = 0;
109 virtual void setPageEncoding(const WebString&) = 0; 109 virtual void setPageEncoding(const WebString&) = 0;
110 110
111 // Makes the WebView transparent. This is useful if you want to have
112 // some custom background rendered behind it.
113 virtual bool isTransparent() const = 0;
114 virtual void setIsTransparent(bool) = 0;
115
116 // Sets the base color used for this WebView's background. This is in effect
117 // the default background color used for pages with no background-color
118 // style in effect, or used as the alpha-blended basis for any pages with
119 // translucent background-color style. (For pages with opaque
120 // background-color style, this property is effectively ignored).
121 // Setting this takes effect for the currently loaded page, if any, and
122 // persists across subsequent navigations. Defaults to white prior to the
123 // first call to this method.
124 virtual void setBaseBackgroundColor(WebColor) = 0;
125
126 // Controls whether pressing Tab key advances focus to links. 111 // Controls whether pressing Tab key advances focus to links.
127 virtual bool tabsToLinks() const = 0; 112 virtual bool tabsToLinks() const = 0;
128 virtual void setTabsToLinks(bool) = 0; 113 virtual void setTabsToLinks(bool) = 0;
129 114
130 // Method that controls whether pressing Tab key cycles through page 115 // Method that controls whether pressing Tab key cycles through page
131 // elements or inserts a '\t' char in the focused text area. 116 // elements or inserts a '\t' char in the focused text area.
132 virtual bool tabKeyCyclesThroughElements() const = 0; 117 virtual bool tabKeyCyclesThroughElements() const = 0;
133 virtual void setTabKeyCyclesThroughElements(bool) = 0; 118 virtual void setTabKeyCyclesThroughElements(bool) = 0;
134 119
135 // Controls the WebView's active state, which may affect the rendering 120 // Controls the WebView's active state, which may affect the rendering
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 // context's ability to deal with that failure gracefully can be tested. 472 // context's ability to deal with that failure gracefully can be tested.
488 virtual void forceNextDrawingBufferCreationToFail() = 0; 473 virtual void forceNextDrawingBufferCreationToFail() = 0;
489 474
490 protected: 475 protected:
491 ~WebView() {} 476 ~WebView() {}
492 }; 477 };
493 478
494 } // namespace blink 479 } // namespace blink
495 480
496 #endif 481 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698