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

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: 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
« no previous file with comments | « third_party/WebKit/public/web/WebFrameWidget.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // Options ------------------------------------------------------------- 102 // Options -------------------------------------------------------------
103 103
104 // The returned pointer is valid for the lifetime of the WebView. 104 // The returned pointer is valid for the lifetime of the WebView.
105 virtual WebSettings* settings() = 0; 105 virtual WebSettings* settings() = 0;
106 106
107 // Corresponds to the encoding of the main frame. Setting the page 107 // Corresponds to the encoding of the main frame. Setting the page
108 // encoding may cause the main frame to reload. 108 // encoding may cause the main frame to reload.
109 virtual WebString pageEncoding() const = 0; 109 virtual WebString pageEncoding() const = 0;
110 virtual void setPageEncoding(const WebString&) = 0; 110 virtual void setPageEncoding(const WebString&) = 0;
111 111
112 // Makes the WebView transparent. This is useful if you want to have
113 // some custom background rendered behind it.
114 virtual bool isTransparent() const = 0;
115 virtual void setIsTransparent(bool) = 0;
116
117 // Sets the base color used for this WebView's background. This is in effect
118 // the default background color used for pages with no background-color
119 // style in effect, or used as the alpha-blended basis for any pages with
120 // translucent background-color style. (For pages with opaque
121 // background-color style, this property is effectively ignored).
122 // Setting this takes effect for the currently loaded page, if any, and
123 // persists across subsequent navigations. Defaults to white prior to the
124 // first call to this method.
125 virtual void setBaseBackgroundColor(WebColor) = 0;
126
127 // Controls whether pressing Tab key advances focus to links. 112 // Controls whether pressing Tab key advances focus to links.
128 virtual bool tabsToLinks() const = 0; 113 virtual bool tabsToLinks() const = 0;
129 virtual void setTabsToLinks(bool) = 0; 114 virtual void setTabsToLinks(bool) = 0;
130 115
131 // Method that controls whether pressing Tab key cycles through page 116 // Method that controls whether pressing Tab key cycles through page
132 // elements or inserts a '\t' char in the focused text area. 117 // elements or inserts a '\t' char in the focused text area.
133 virtual bool tabKeyCyclesThroughElements() const = 0; 118 virtual bool tabKeyCyclesThroughElements() const = 0;
134 virtual void setTabKeyCyclesThroughElements(bool) = 0; 119 virtual void setTabKeyCyclesThroughElements(bool) = 0;
135 120
136 // Controls the WebView's active state, which may affect the rendering 121 // Controls the WebView's active state, which may affect the rendering
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 // context's ability to deal with that failure gracefully can be tested. 480 // context's ability to deal with that failure gracefully can be tested.
496 virtual void forceNextDrawingBufferCreationToFail() = 0; 481 virtual void forceNextDrawingBufferCreationToFail() = 0;
497 482
498 protected: 483 protected:
499 ~WebView() {} 484 ~WebView() {}
500 }; 485 };
501 486
502 } // namespace blink 487 } // namespace blink
503 488
504 #endif 489 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebFrameWidget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698