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

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

Issue 1315523010: Remove old WebFrameClient path for disowning openers. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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/WebLocalFrameImpl.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) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 virtual void didAccessInitialDocument(WebLocalFrame*) { } 144 virtual void didAccessInitialDocument(WebLocalFrame*) { }
145 145
146 // A child frame was created in this frame. This is called when the frame 146 // A child frame was created in this frame. This is called when the frame
147 // is created and initialized. Takes the name of the new frame, the parent 147 // is created and initialized. Takes the name of the new frame, the parent
148 // frame and returns a new WebFrame. The WebFrame is considered in-use 148 // frame and returns a new WebFrame. The WebFrame is considered in-use
149 // until frameDetached() is called on it. 149 // until frameDetached() is called on it.
150 // Note: If you override this, you should almost certainly be overriding 150 // Note: If you override this, you should almost certainly be overriding
151 // frameDetached(). 151 // frameDetached().
152 virtual WebFrame* createChildFrame(WebLocalFrame* parent, WebTreeScopeType, const WebString& frameName, WebSandboxFlags sandboxFlags) { return nullptr; } 152 virtual WebFrame* createChildFrame(WebLocalFrame* parent, WebTreeScopeType, const WebString& frameName, WebSandboxFlags sandboxFlags) { return nullptr; }
153 153
154 // This frame set its opener to null, disowning it.
155 // See http://html.spec.whatwg.org/#dom-opener.
156 // TODO(alexmos): Remove this once didChangeOpener is implemented in content .
157 virtual void didDisownOpener(WebLocalFrame*) { }
158
159 // This frame has set its opener to another frame, or disowned the opener 154 // This frame has set its opener to another frame, or disowned the opener
160 // if opener is null. See http://html.spec.whatwg.org/#dom-opener. 155 // if opener is null. See http://html.spec.whatwg.org/#dom-opener.
161 virtual void didChangeOpener(WebFrame*) { } 156 virtual void didChangeOpener(WebFrame*) { }
162 157
163 // Specifies the reason for the detachment. 158 // Specifies the reason for the detachment.
164 enum class DetachType { Remove, Swap }; 159 enum class DetachType { Remove, Swap };
165 160
166 // This frame has been detached from the view, but has not been closed yet. 161 // This frame has been detached from the view, but has not been closed yet.
167 virtual void frameDetached(WebFrame*, DetachType) { } 162 virtual void frameDetached(WebFrame*, DetachType) { }
168 163
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 // WebUSB -------------------------------------------------------------- 665 // WebUSB --------------------------------------------------------------
671 virtual WebUSBClient* usbClient() { return nullptr; } 666 virtual WebUSBClient* usbClient() { return nullptr; }
672 667
673 protected: 668 protected:
674 virtual ~WebFrameClient() { } 669 virtual ~WebFrameClient() { }
675 }; 670 };
676 671
677 } // namespace blink 672 } // namespace blink
678 673
679 #endif 674 #endif
OLDNEW
« no previous file with comments | « Source/web/WebLocalFrameImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698