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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 WebLocalFrame* parent, | 207 WebLocalFrame* parent, |
208 WebTreeScopeType, | 208 WebTreeScopeType, |
209 const WebString& name, | 209 const WebString& name, |
210 const WebString& fallback_name, | 210 const WebString& fallback_name, |
211 WebSandboxFlags sandbox_flags, | 211 WebSandboxFlags sandbox_flags, |
212 const WebParsedFeaturePolicy& container_policy, | 212 const WebParsedFeaturePolicy& container_policy, |
213 const WebFrameOwnerProperties&) { | 213 const WebFrameOwnerProperties&) { |
214 return nullptr; | 214 return nullptr; |
215 } | 215 } |
216 | 216 |
| 217 // Called when Blink cannot find a frame with the given name in the frame's |
| 218 // browsing instance. This gives the embedder a chance to return a frame |
| 219 // from outside of the browsing instance. |
| 220 virtual WebFrame* FindFrame(const WebString& name) { return nullptr; } |
| 221 |
217 // This frame has set its opener to another frame, or disowned the opener | 222 // This frame has set its opener to another frame, or disowned the opener |
218 // if opener is null. See http://html.spec.whatwg.org/#dom-opener. | 223 // if opener is null. See http://html.spec.whatwg.org/#dom-opener. |
219 virtual void DidChangeOpener(WebFrame*) {} | 224 virtual void DidChangeOpener(WebFrame*) {} |
220 | 225 |
221 // Specifies the reason for the detachment. | 226 // Specifies the reason for the detachment. |
222 enum class DetachType { kRemove, kSwap }; | 227 enum class DetachType { kRemove, kSwap }; |
223 | 228 |
224 // This frame has been detached. Embedders should release any resources | 229 // This frame has been detached. Embedders should release any resources |
225 // associated with this frame. If the DetachType is Remove, the frame should | 230 // associated with this frame. If the DetachType is Remove, the frame should |
226 // also be removed from the frame tree; otherwise, if the DetachType is | 231 // also be removed from the frame tree; otherwise, if the DetachType is |
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
807 // Loading -------------------------------------------------------------- | 812 // Loading -------------------------------------------------------------- |
808 virtual std::unique_ptr<blink::WebURLLoader> CreateURLLoader() { | 813 virtual std::unique_ptr<blink::WebURLLoader> CreateURLLoader() { |
809 NOTREACHED(); | 814 NOTREACHED(); |
810 return nullptr; | 815 return nullptr; |
811 } | 816 } |
812 }; | 817 }; |
813 | 818 |
814 } // namespace blink | 819 } // namespace blink |
815 | 820 |
816 #endif | 821 #endif |
OLD | NEW |