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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 virtual WebFrame* createChildFrame(WebLocalFrame* parent, WebTreeScopeType,
const WebString& name, const WebString& uniqueName, WebSandboxFlags sandboxFlags
, const WebFrameOwnerProperties&) { return nullptr; } | 168 virtual WebFrame* createChildFrame(WebLocalFrame* parent, WebTreeScopeType,
const WebString& name, const WebString& uniqueName, WebSandboxFlags sandboxFlags
, const WebFrameOwnerProperties&) { return nullptr; } |
169 | 169 |
170 // This frame has set its opener to another frame, or disowned the opener | 170 // This frame has set its opener to another frame, or disowned the opener |
171 // if opener is null. See http://html.spec.whatwg.org/#dom-opener. | 171 // if opener is null. See http://html.spec.whatwg.org/#dom-opener. |
172 virtual void didChangeOpener(WebFrame*) { } | 172 virtual void didChangeOpener(WebFrame*) { } |
173 | 173 |
174 // Specifies the reason for the detachment. | 174 // Specifies the reason for the detachment. |
175 enum class DetachType { Remove, Swap }; | 175 enum class DetachType { Remove, Swap }; |
176 | 176 |
177 // This frame has been detached from the view, but has not been closed yet. | 177 // This frame has been detached from the view, but has not been closed yet. |
178 virtual void frameDetached(WebFrame*, DetachType) { } | 178 virtual void frameDetached(WebLocalFrame*, DetachType) {} |
179 | 179 |
180 // This frame has become focused.. | 180 // This frame has become focused.. |
181 virtual void frameFocused() { } | 181 virtual void frameFocused() { } |
182 | 182 |
183 // This frame is about to be closed. This is called after frameDetached, | 183 // This frame is about to be closed. This is called after frameDetached, |
184 // when the document is being unloaded, due to new one committing. | 184 // when the document is being unloaded, due to new one committing. |
185 virtual void willClose(WebFrame*) { } | 185 virtual void willClose(WebFrame*) { } |
186 | 186 |
187 // This frame's name has changed. | 187 // This frame's name has changed. |
188 virtual void didChangeName(const WebString& name, const WebString& uniqueNam
e) { } | 188 virtual void didChangeName(const WebString& name, const WebString& uniqueNam
e) { } |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 // Mojo ---------------------------------------------------------------- | 718 // Mojo ---------------------------------------------------------------- |
719 virtual ServiceRegistry* serviceRegistry() { return nullptr; } | 719 virtual ServiceRegistry* serviceRegistry() { return nullptr; } |
720 | 720 |
721 protected: | 721 protected: |
722 virtual ~WebFrameClient() { } | 722 virtual ~WebFrameClient() { } |
723 }; | 723 }; |
724 | 724 |
725 } // namespace blink | 725 } // namespace blink |
726 | 726 |
727 #endif | 727 #endif |
OLD | NEW |