| 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 { |
| 11 | 11 |
| 12 class WebScriptExecutionCallback; | 12 class WebScriptExecutionCallback; |
| 13 struct WebPrintPresetOptions; |
| 13 | 14 |
| 14 // Interface for interacting with in process frames. This contains methods that | 15 // Interface for interacting with in process frames. This contains methods that |
| 15 // require interacting with a frame's document. | 16 // require interacting with a frame's document. |
| 16 // FIXME: Move lots of methods from WebFrame in here. | 17 // FIXME: Move lots of methods from WebFrame in here. |
| 17 class WebLocalFrame : public WebFrame { | 18 class WebLocalFrame : public WebFrame { |
| 18 public: | 19 public: |
| 19 // Creates a WebFrame. Delete this WebFrame by calling WebFrame::close(). | 20 // Creates a WebFrame. Delete this WebFrame by calling WebFrame::close(). |
| 20 // It is valid to pass a null client pointer. | 21 // It is valid to pass a null client pointer. |
| 21 BLINK_EXPORT static WebLocalFrame* create(WebFrameClient*); | 22 BLINK_EXPORT static WebLocalFrame* create(WebFrameClient*); |
| 22 | 23 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 virtual void addStyleSheetByURL(const WebString& url) = 0; | 62 virtual void addStyleSheetByURL(const WebString& url) = 0; |
| 62 virtual void navigateToSandboxedMarkup(const WebData& markup) = 0; | 63 virtual void navigateToSandboxedMarkup(const WebData& markup) = 0; |
| 63 | 64 |
| 64 | 65 |
| 65 // Orientation Changes ---------------------------------------------------- | 66 // Orientation Changes ---------------------------------------------------- |
| 66 | 67 |
| 67 // Notify the frame that the screen orientation has changed. | 68 // Notify the frame that the screen orientation has changed. |
| 68 virtual void sendOrientationChangeEvent() = 0; | 69 virtual void sendOrientationChangeEvent() = 0; |
| 69 | 70 |
| 70 | 71 |
| 72 // Printing ------------------------------------------------------------ |
| 73 |
| 74 // Returns true on success and sets the out parameter to the print preset op
tions for the document. |
| 75 virtual bool getPrintPresetOptionsForPlugin(const WebNode&, WebPrintPresetOp
tions*) = 0; |
| 76 |
| 77 |
| 71 // Scripting -------------------------------------------------------------- | 78 // Scripting -------------------------------------------------------------- |
| 72 // Executes script in the context of the current page and returns the value | 79 // Executes script in the context of the current page and returns the value |
| 73 // that the script evaluated to with callback. Script execution can be | 80 // that the script evaluated to with callback. Script execution can be |
| 74 // suspend. | 81 // suspend. |
| 75 virtual void requestExecuteScriptAndReturnValue(const WebScriptSource&, | 82 virtual void requestExecuteScriptAndReturnValue(const WebScriptSource&, |
| 76 bool userGesture, WebScriptExecutionCallback*) = 0; | 83 bool userGesture, WebScriptExecutionCallback*) = 0; |
| 77 | 84 |
| 78 // worldID must be > 0 (as 0 represents the main world). | 85 // worldID must be > 0 (as 0 represents the main world). |
| 79 // worldID must be < EmbedderWorldIdLimit, high number used internally. | 86 // worldID must be < EmbedderWorldIdLimit, high number used internally. |
| 80 virtual void requestExecuteScriptInIsolatedWorld( | 87 virtual void requestExecuteScriptInIsolatedWorld( |
| (...skipping 13 matching lines...) Expand all Loading... |
| 94 | 101 |
| 95 // Moves the selection extent point. This function does not allow the | 102 // Moves the selection extent point. This function does not allow the |
| 96 // selection to collapse. If the new extent is set to the same position as | 103 // selection to collapse. If the new extent is set to the same position as |
| 97 // the current base, this function will do nothing. | 104 // the current base, this function will do nothing. |
| 98 virtual void moveRangeSelectionExtent(const WebPoint&) = 0; | 105 virtual void moveRangeSelectionExtent(const WebPoint&) = 0; |
| 99 }; | 106 }; |
| 100 | 107 |
| 101 } // namespace blink | 108 } // namespace blink |
| 102 | 109 |
| 103 #endif // WebLocalFrame_h | 110 #endif // WebLocalFrame_h |
| OLD | NEW |