Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / public / web / WebLocalFrame.h
index e92eddc..328e832 100644 (file)
@@ -9,6 +9,8 @@
 
 namespace blink {
 
+class WebScriptExecutionCallback;
+
 // Interface for interacting with in process frames. This contains methods that
 // require interacting with a frame's document.
 // FIXME: Move lots of methods from WebFrame in here.
@@ -32,6 +34,13 @@ public:
     // the given element is not a frame, iframe or if the frame is empty.
     BLINK_EXPORT static WebLocalFrame* fromFrameOwnerElement(const WebElement&);
 
+    // Initialization ---------------------------------------------------------
+
+    // Used when we might swap from a remote frame to a local frame.
+    // Creates a provisional, semi-attached frame that will be fully
+    // swapped into the frame tree if it commits.
+    virtual void initializeToReplaceRemoteFrame(WebRemoteFrame*) = 0;
+
 
     // Navigation Ping --------------------------------------------------------
     virtual void sendPings(const WebNode& linkNode, const WebURL& destinationURL) = 0;
@@ -60,6 +69,18 @@ public:
 
 
     // Scripting --------------------------------------------------------------
+    // Executes script in the context of the current page and returns the value
+    // that the script evaluated to with callback. Script execution can be
+    // suspend.
+    virtual void requestExecuteScriptAndReturnValue(const WebScriptSource&,
+        bool userGesture, WebScriptExecutionCallback*) = 0;
+
+    // worldID must be > 0 (as 0 represents the main world).
+    // worldID must be < EmbedderWorldIdLimit, high number used internally.
+    virtual void requestExecuteScriptInIsolatedWorld(
+        int worldID, const WebScriptSource* sourceIn, unsigned numSources,
+        int extensionGroup, bool userGesture, WebScriptExecutionCallback*) = 0;
+
     // ONLY FOR TESTS: Forwards to executeScriptAndReturnValue, but sets a fake
     // UserGestureIndicator before execution.
     virtual v8::Handle<v8::Value> executeScriptAndReturnValueForTests(const WebScriptSource&) = 0;
@@ -67,6 +88,14 @@ public:
     // Associates an isolated world with human-readable name which is useful for
     // extension debugging.
     virtual void setIsolatedWorldHumanReadableName(int worldID, const WebString&) = 0;
+
+
+    // Selection --------------------------------------------------------------
+
+    // Moves the selection extent point. This function does not allow the
+    // selection to collapse. If the new extent is set to the same position as
+    // the current base, this function will do nothing.
+    virtual void moveRangeSelectionExtent(const WebPoint&) = 0;
 };
 
 } // namespace blink