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 WebLocalFrame_h | 5 #ifndef WebLocalFrame_h |
6 #define WebLocalFrame_h | 6 #define WebLocalFrame_h |
7 | 7 |
8 #include "WebFrame.h" | 8 #include "WebFrame.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 // Returns the frame corresponding to the given context. This can return 0 | 26 // Returns the frame corresponding to the given context. This can return 0 |
27 // if the context is detached from the frame, or if the context doesn't | 27 // if the context is detached from the frame, or if the context doesn't |
28 // correspond to a frame (e.g., workers). | 28 // correspond to a frame (e.g., workers). |
29 BLINK_EXPORT static WebLocalFrame* frameForContext(v8::Handle<v8::Context>); | 29 BLINK_EXPORT static WebLocalFrame* frameForContext(v8::Handle<v8::Context>); |
30 | 30 |
31 // Returns the frame inside a given frame or iframe element. Returns 0 if | 31 // Returns the frame inside a given frame or iframe element. Returns 0 if |
32 // the given element is not a frame, iframe or if the frame is empty. | 32 // the given element is not a frame, iframe or if the frame is empty. |
33 BLINK_EXPORT static WebLocalFrame* fromFrameOwnerElement(const WebElement&); | 33 BLINK_EXPORT static WebLocalFrame* fromFrameOwnerElement(const WebElement&); |
34 | 34 |
| 35 // Initialization --------------------------------------------------------- |
| 36 |
| 37 // Used when we might swap from a remote frame to a local frame. |
| 38 // Creates a provisional, semi-attached frame that will be fully |
| 39 // swapped into the frame tree if it commits. |
| 40 virtual void initializeToReplaceRemoteFrame(WebRemoteFrame*) = 0; |
| 41 |
35 | 42 |
36 // Navigation Ping -------------------------------------------------------- | 43 // Navigation Ping -------------------------------------------------------- |
37 virtual void sendPings(const WebNode& linkNode, const WebURL& destinationURL
) = 0; | 44 virtual void sendPings(const WebNode& linkNode, const WebURL& destinationURL
) = 0; |
38 | 45 |
39 | 46 |
40 // Navigation State ------------------------------------------------------- | 47 // Navigation State ------------------------------------------------------- |
41 | 48 |
42 // Returns true if the current frame's load event has not completed. | 49 // Returns true if the current frame's load event has not completed. |
43 virtual bool isLoading() const = 0; | 50 virtual bool isLoading() const = 0; |
44 | 51 |
(...skipping 20 matching lines...) Expand all Loading... |
65 virtual v8::Handle<v8::Value> executeScriptAndReturnValueForTests(const WebS
criptSource&) = 0; | 72 virtual v8::Handle<v8::Value> executeScriptAndReturnValueForTests(const WebS
criptSource&) = 0; |
66 | 73 |
67 // Associates an isolated world with human-readable name which is useful for | 74 // Associates an isolated world with human-readable name which is useful for |
68 // extension debugging. | 75 // extension debugging. |
69 virtual void setIsolatedWorldHumanReadableName(int worldID, const WebString&
) = 0; | 76 virtual void setIsolatedWorldHumanReadableName(int worldID, const WebString&
) = 0; |
70 }; | 77 }; |
71 | 78 |
72 } // namespace blink | 79 } // namespace blink |
73 | 80 |
74 #endif // WebLocalFrame_h | 81 #endif // WebLocalFrame_h |
OLD | NEW |