OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |