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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 virtual void setIsActive(bool) = 0; | 140 virtual void setIsActive(bool) = 0; |
141 | 141 |
142 // Allows disabling domain relaxation. | 142 // Allows disabling domain relaxation. |
143 virtual void setDomainRelaxationForbidden(bool, const WebString& scheme) = 0
; | 143 virtual void setDomainRelaxationForbidden(bool, const WebString& scheme) = 0
; |
144 | 144 |
145 // Allows setting the state of the various bars exposed via BarProp | 145 // Allows setting the state of the various bars exposed via BarProp |
146 // properties on the window object. The size related fields of | 146 // properties on the window object. The size related fields of |
147 // WebWindowFeatures are ignored. | 147 // WebWindowFeatures are ignored. |
148 virtual void setWindowFeatures(const WebWindowFeatures&) = 0; | 148 virtual void setWindowFeatures(const WebWindowFeatures&) = 0; |
149 | 149 |
| 150 // Marks the WebView as being opened by a DOM call. This is relevant |
| 151 // for whether window.close() may be called. |
| 152 virtual void setOpenedByDOM() = 0; |
| 153 |
150 | 154 |
151 // Frames -------------------------------------------------------------- | 155 // Frames -------------------------------------------------------------- |
152 | 156 |
153 virtual WebFrame* mainFrame() = 0; | 157 virtual WebFrame* mainFrame() = 0; |
154 | 158 |
155 // Returns the frame identified by the given name. This method | 159 // Returns the frame identified by the given name. This method |
156 // supports pseudo-names like _self, _top, and _blank. It traverses | 160 // supports pseudo-names like _self, _top, and _blank. It traverses |
157 // the entire frame tree containing this tree looking for a frame that | 161 // the entire frame tree containing this tree looking for a frame that |
158 // matches the given name. If the optional relativeToFrame parameter | 162 // matches the given name. If the optional relativeToFrame parameter |
159 // is specified, then the search begins with the given frame and its | 163 // is specified, then the search begins with the given frame and its |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 | 496 |
493 // Testing functionality for TestRunner --------------------------------- | 497 // Testing functionality for TestRunner --------------------------------- |
494 | 498 |
495 protected: | 499 protected: |
496 ~WebView() {} | 500 ~WebView() {} |
497 }; | 501 }; |
498 | 502 |
499 } // namespace blink | 503 } // namespace blink |
500 | 504 |
501 #endif | 505 #endif |
OLD | NEW |