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

Side by Side Diff: public/web/WebView.h

Issue 223603005: Expose WebView::setOpenedByDOM. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Created 6 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
« no previous file with comments | « Source/web/WebViewImpl.cpp ('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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698