| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 #include "public/platform/WebFileSystemType.h" | 48 #include "public/platform/WebFileSystemType.h" |
| 49 #include "public/platform/WebSecurityOrigin.h" | 49 #include "public/platform/WebSecurityOrigin.h" |
| 50 #include "public/platform/WebStorageQuotaCallbacks.h" | 50 #include "public/platform/WebStorageQuotaCallbacks.h" |
| 51 #include "public/platform/WebStorageQuotaType.h" | 51 #include "public/platform/WebStorageQuotaType.h" |
| 52 #include "public/platform/WebURLError.h" | 52 #include "public/platform/WebURLError.h" |
| 53 #include "public/platform/WebURLRequest.h" | 53 #include "public/platform/WebURLRequest.h" |
| 54 #include <v8.h> | 54 #include <v8.h> |
| 55 | 55 |
| 56 namespace blink { | 56 namespace blink { |
| 57 | 57 |
| 58 enum class WebTreeScopeType; |
| 58 class WebApplicationCacheHost; | 59 class WebApplicationCacheHost; |
| 59 class WebApplicationCacheHostClient; | 60 class WebApplicationCacheHostClient; |
| 60 class WebAppBannerClient; | 61 class WebAppBannerClient; |
| 61 class WebCachedURLRequest; | 62 class WebCachedURLRequest; |
| 62 class WebColorChooser; | 63 class WebColorChooser; |
| 63 class WebColorChooserClient; | 64 class WebColorChooserClient; |
| 64 class WebContentDecryptionModule; | 65 class WebContentDecryptionModule; |
| 65 class WebCookieJar; | 66 class WebCookieJar; |
| 66 class WebDataSource; | 67 class WebDataSource; |
| 67 class WebEncryptedMediaClient; | 68 class WebEncryptedMediaClient; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 // document of a main frame. After this, it is no longer safe to show a | 143 // document of a main frame. After this, it is no longer safe to show a |
| 143 // pending navigation's URL, because a URL spoof is possible. | 144 // pending navigation's URL, because a URL spoof is possible. |
| 144 virtual void didAccessInitialDocument(WebLocalFrame*) { } | 145 virtual void didAccessInitialDocument(WebLocalFrame*) { } |
| 145 | 146 |
| 146 // A child frame was created in this frame. This is called when the frame | 147 // 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 | 148 // 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 | 149 // frame and returns a new WebFrame. The WebFrame is considered in-use |
| 149 // until frameDetached() is called on it. | 150 // until frameDetached() is called on it. |
| 150 // Note: If you override this, you should almost certainly be overriding | 151 // Note: If you override this, you should almost certainly be overriding |
| 151 // frameDetached(). | 152 // frameDetached(). |
| 153 virtual WebFrame* createChildFrame(WebLocalFrame* parent, WebTreeScopeType,
const WebString& frameName, WebSandboxFlags sandboxFlags) { return nullptr; } |
| 154 // TODO(dcheng): Remove this overload, since it's deprecated. |
| 152 virtual WebFrame* createChildFrame(WebLocalFrame* parent, const WebString& f
rameName, WebSandboxFlags sandboxFlags) { return nullptr; } | 155 virtual WebFrame* createChildFrame(WebLocalFrame* parent, const WebString& f
rameName, WebSandboxFlags sandboxFlags) { return nullptr; } |
| 153 | 156 |
| 154 // This frame set its opener to null, disowning it. | 157 // This frame set its opener to null, disowning it. |
| 155 // See http://html.spec.whatwg.org/#dom-opener. | 158 // See http://html.spec.whatwg.org/#dom-opener. |
| 156 virtual void didDisownOpener(WebLocalFrame*) { } | 159 virtual void didDisownOpener(WebLocalFrame*) { } |
| 157 | 160 |
| 158 // 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. |
| 159 virtual void frameDetached(WebFrame*) { } | 162 virtual void frameDetached(WebFrame*) { } |
| 160 | 163 |
| 161 // This frame has become focused.. | 164 // This frame has become focused.. |
| (...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 // App Banners --------------------------------------------------------- | 655 // App Banners --------------------------------------------------------- |
| 653 virtual WebAppBannerClient* appBannerClient() { return 0; } | 656 virtual WebAppBannerClient* appBannerClient() { return 0; } |
| 654 | 657 |
| 655 protected: | 658 protected: |
| 656 virtual ~WebFrameClient() { } | 659 virtual ~WebFrameClient() { } |
| 657 }; | 660 }; |
| 658 | 661 |
| 659 } // namespace blink | 662 } // namespace blink |
| 660 | 663 |
| 661 #endif | 664 #endif |
| OLD | NEW |