OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 // frame context. | 294 // frame context. |
295 virtual void didCreateScriptContext(WebFrame*) { } | 295 virtual void didCreateScriptContext(WebFrame*) { } |
296 | 296 |
297 // Notifies that this frame's script context has been destroyed. | 297 // Notifies that this frame's script context has been destroyed. |
298 virtual void didDestroyScriptContext(WebFrame*) { } | 298 virtual void didDestroyScriptContext(WebFrame*) { } |
299 | 299 |
300 // Notifies that a garbage-collected context was created - content | 300 // Notifies that a garbage-collected context was created - content |
301 // scripts. | 301 // scripts. |
302 virtual void didCreateIsolatedScriptContext(WebFrame*) { } | 302 virtual void didCreateIsolatedScriptContext(WebFrame*) { } |
303 | 303 |
| 304 // Controls whether the given script extension should run in a new script |
| 305 // context in this frame. If extensionGroup is 0, the script context is the |
| 306 // frame's main context. Otherwise, it is a context created by |
| 307 // WebFrame::executeScriptInIsolatedWorld with that same extensionGroup |
| 308 // value. |
| 309 virtual bool allowScriptExtension(WebFrame*, const WebString& extensionName,
int extensionGroup) { return true; } |
| 310 |
304 | 311 |
305 // Geometry notifications ---------------------------------------------- | 312 // Geometry notifications ---------------------------------------------- |
306 | 313 |
307 // The frame's document finished the initial layout of a page. | 314 // The frame's document finished the initial layout of a page. |
308 virtual void didFirstLayout(WebFrame*) { } | 315 virtual void didFirstLayout(WebFrame*) { } |
309 | 316 |
310 // The frame's document finished the initial non-empty layout of a page. | 317 // The frame's document finished the initial non-empty layout of a page. |
311 virtual void didFirstVisuallyNonEmptyLayout(WebFrame*) { } | 318 virtual void didFirstVisuallyNonEmptyLayout(WebFrame*) { } |
312 | 319 |
313 // The size of the content area changed. | 320 // The size of the content area changed. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 WebFrame*, WebFileSystem::Type, long long size, | 354 WebFrame*, WebFileSystem::Type, long long size, |
348 WebFileSystemCallbacks*) { } | 355 WebFileSystemCallbacks*) { } |
349 | 356 |
350 protected: | 357 protected: |
351 ~WebFrameClient() { } | 358 ~WebFrameClient() { } |
352 }; | 359 }; |
353 | 360 |
354 } // namespace WebKit | 361 } // namespace WebKit |
355 | 362 |
356 #endif | 363 #endif |
OLD | NEW |