| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WebRemoteFrame_h | 5 #ifndef WebRemoteFrame_h |
| 6 #define WebRemoteFrame_h | 6 #define WebRemoteFrame_h |
| 7 | 7 |
| 8 #include "public/platform/WebInsecureRequestPolicy.h" | 8 #include "public/platform/WebInsecureRequestPolicy.h" |
| 9 #include "public/web/WebContentSecurityPolicy.h" | 9 #include "public/web/WebContentSecurityPolicy.h" |
| 10 #include "public/web/WebFrame.h" | 10 #include "public/web/WebFrame.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 virtual void didStopLoading() = 0; | 61 virtual void didStopLoading() = 0; |
| 62 | 62 |
| 63 // Returns true if this frame should be ignored during hittesting. | 63 // Returns true if this frame should be ignored during hittesting. |
| 64 virtual bool isIgnoredForHitTest() const = 0; | 64 virtual bool isIgnoredForHitTest() const = 0; |
| 65 | 65 |
| 66 // This is called in OOPIF scenarios when an element contained in this | 66 // This is called in OOPIF scenarios when an element contained in this |
| 67 // frame is about to enter fullscreen. This frame's owner | 67 // frame is about to enter fullscreen. This frame's owner |
| 68 // corresponds to the HTMLFrameOwnerElement to be fullscreened. Calling | 68 // corresponds to the HTMLFrameOwnerElement to be fullscreened. Calling |
| 69 // this prepares FullscreenController to enter fullscreen for that frame | 69 // this prepares FullscreenController to enter fullscreen for that frame |
| 70 // owner. | 70 // owner. |
| 71 virtual void willEnterFullScreen() = 0; | 71 virtual void willEnterFullscreen() = 0; |
| 72 | 72 |
| 73 // Temporary method to allow embedders to get the script context of a | 73 // Temporary method to allow embedders to get the script context of a |
| 74 // remote frame. This should only be used by legacy code that has not yet | 74 // remote frame. This should only be used by legacy code that has not yet |
| 75 // migrated over to the new OOPI infrastructure. | 75 // migrated over to the new OOPI infrastructure. |
| 76 virtual v8::Local<v8::Context> deprecatedMainWorldScriptContext() const = 0; | 76 virtual v8::Local<v8::Context> deprecatedMainWorldScriptContext() const = 0; |
| 77 | 77 |
| 78 protected: | 78 protected: |
| 79 explicit WebRemoteFrame(WebTreeScopeType scope) : WebFrame(scope) { } | 79 explicit WebRemoteFrame(WebTreeScopeType scope) : WebFrame(scope) { } |
| 80 | 80 |
| 81 // Inherited from WebFrame, but intentionally hidden: it never makes sense | 81 // Inherited from WebFrame, but intentionally hidden: it never makes sense |
| 82 // to call these on a WebRemoteFrame. | 82 // to call these on a WebRemoteFrame. |
| 83 bool isWebLocalFrame() const override = 0; | 83 bool isWebLocalFrame() const override = 0; |
| 84 WebLocalFrame* toWebLocalFrame() override = 0; | 84 WebLocalFrame* toWebLocalFrame() override = 0; |
| 85 bool isWebRemoteFrame() const override = 0; | 85 bool isWebRemoteFrame() const override = 0; |
| 86 WebRemoteFrame* toWebRemoteFrame() override = 0; | 86 WebRemoteFrame* toWebRemoteFrame() override = 0; |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 } // namespace blink | 89 } // namespace blink |
| 90 | 90 |
| 91 #endif // WebRemoteFrame_h | 91 #endif // WebRemoteFrame_h |
| OLD | NEW |