OLD | NEW |
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 13 matching lines...) Expand all Loading... |
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebView_h | 31 #ifndef WebView_h |
32 #define WebView_h | 32 #define WebView_h |
33 | 33 |
| 34 #include "../platform/WebColor.h" |
34 #include "../platform/WebString.h" | 35 #include "../platform/WebString.h" |
35 #include "../platform/WebVector.h" | 36 #include "../platform/WebVector.h" |
36 #include "WebDragOperation.h" | 37 #include "WebDragOperation.h" |
37 #include "WebPageVisibilityState.h" | 38 #include "WebPageVisibilityState.h" |
38 #include "WebWidget.h" | 39 #include "WebWidget.h" |
39 | 40 |
40 namespace WebKit { | 41 namespace WebKit { |
41 | 42 |
42 class WebAccessibilityObject; | 43 class WebAccessibilityObject; |
43 class WebAutofillClient; | 44 class WebAutofillClient; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 // Corresponds to the encoding of the main frame. Setting the page | 123 // Corresponds to the encoding of the main frame. Setting the page |
123 // encoding may cause the main frame to reload. | 124 // encoding may cause the main frame to reload. |
124 virtual WebString pageEncoding() const = 0; | 125 virtual WebString pageEncoding() const = 0; |
125 virtual void setPageEncoding(const WebString&) = 0; | 126 virtual void setPageEncoding(const WebString&) = 0; |
126 | 127 |
127 // Makes the WebView transparent. This is useful if you want to have | 128 // Makes the WebView transparent. This is useful if you want to have |
128 // some custom background rendered behind it. | 129 // some custom background rendered behind it. |
129 virtual bool isTransparent() const = 0; | 130 virtual bool isTransparent() const = 0; |
130 virtual void setIsTransparent(bool) = 0; | 131 virtual void setIsTransparent(bool) = 0; |
131 | 132 |
| 133 // Sets the base color used for this WebView's background. This is in effect |
| 134 // the default background color used for pages with no background-color |
| 135 // style in effect, or used as the alpha-blended basis for any pages with |
| 136 // translucent background-color style. (For pages with opaque |
| 137 // background-color style, this property is effectively ignored). |
| 138 // Setting this takes effect for the currently loaded page, if any, and |
| 139 // persists across subsequent navigations. Defaults to white prior to the |
| 140 // first call to this method. |
| 141 virtual void setBaseBackgroundColor(WebColor) = 0; |
| 142 |
132 // Controls whether pressing Tab key advances focus to links. | 143 // Controls whether pressing Tab key advances focus to links. |
133 virtual bool tabsToLinks() const = 0; | 144 virtual bool tabsToLinks() const = 0; |
134 virtual void setTabsToLinks(bool) = 0; | 145 virtual void setTabsToLinks(bool) = 0; |
135 | 146 |
136 // Method that controls whether pressing Tab key cycles through page | 147 // Method that controls whether pressing Tab key cycles through page |
137 // elements or inserts a '\t' char in the focused text area. | 148 // elements or inserts a '\t' char in the focused text area. |
138 virtual bool tabKeyCyclesThroughElements() const = 0; | 149 virtual bool tabKeyCyclesThroughElements() const = 0; |
139 virtual void setTabKeyCyclesThroughElements(bool) = 0; | 150 virtual void setTabKeyCyclesThroughElements(bool) = 0; |
140 | 151 |
141 // Controls the WebView's active state, which may affect the rendering | 152 // Controls the WebView's active state, which may affect the rendering |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 | 518 |
508 // Testing functionality for TestRunner --------------------------------- | 519 // Testing functionality for TestRunner --------------------------------- |
509 | 520 |
510 protected: | 521 protected: |
511 ~WebView() {} | 522 ~WebView() {} |
512 }; | 523 }; |
513 | 524 |
514 } // namespace WebKit | 525 } // namespace WebKit |
515 | 526 |
516 #endif | 527 #endif |
OLD | NEW |