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 WebAutofillClient; |
12 class WebScriptExecutionCallback; | 13 class WebScriptExecutionCallback; |
13 struct WebPrintPresetOptions; | 14 struct WebPrintPresetOptions; |
14 | 15 |
15 // Interface for interacting with in process frames. This contains methods that | 16 // Interface for interacting with in process frames. This contains methods that |
16 // require interacting with a frame's document. | 17 // require interacting with a frame's document. |
17 // FIXME: Move lots of methods from WebFrame in here. | 18 // FIXME: Move lots of methods from WebFrame in here. |
18 class WebLocalFrame : public WebFrame { | 19 class WebLocalFrame : public WebFrame { |
19 public: | 20 public: |
20 // Creates a WebFrame. Delete this WebFrame by calling WebFrame::close(). | 21 // Creates a WebFrame. Delete this WebFrame by calling WebFrame::close(). |
21 // It is valid to pass a null client pointer. | 22 // It is valid to pass a null client pointer. |
(...skipping 13 matching lines...) Expand all Loading... |
35 // the given element is not a frame, iframe or if the frame is empty. | 36 // the given element is not a frame, iframe or if the frame is empty. |
36 BLINK_EXPORT static WebLocalFrame* fromFrameOwnerElement(const WebElement&); | 37 BLINK_EXPORT static WebLocalFrame* fromFrameOwnerElement(const WebElement&); |
37 | 38 |
38 // Initialization --------------------------------------------------------- | 39 // Initialization --------------------------------------------------------- |
39 | 40 |
40 // Used when we might swap from a remote frame to a local frame. | 41 // Used when we might swap from a remote frame to a local frame. |
41 // Creates a provisional, semi-attached frame that will be fully | 42 // Creates a provisional, semi-attached frame that will be fully |
42 // swapped into the frame tree if it commits. | 43 // swapped into the frame tree if it commits. |
43 virtual void initializeToReplaceRemoteFrame(WebRemoteFrame*) = 0; | 44 virtual void initializeToReplaceRemoteFrame(WebRemoteFrame*) = 0; |
44 | 45 |
| 46 virtual void setAutofillClient(WebAutofillClient*) = 0; |
| 47 |
45 | 48 |
46 // Navigation Ping -------------------------------------------------------- | 49 // Navigation Ping -------------------------------------------------------- |
47 virtual void sendPings(const WebNode& linkNode, const WebURL& destinationURL
) = 0; | 50 virtual void sendPings(const WebNode& linkNode, const WebURL& destinationURL
) = 0; |
48 | 51 |
49 | 52 |
50 // Navigation State ------------------------------------------------------- | 53 // Navigation State ------------------------------------------------------- |
51 | 54 |
52 // Returns true if the current frame's load event has not completed. | 55 // Returns true if the current frame's load event has not completed. |
53 virtual bool isLoading() const = 0; | 56 virtual bool isLoading() const = 0; |
54 | 57 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 104 |
102 // Moves the selection extent point. This function does not allow the | 105 // Moves the selection extent point. This function does not allow the |
103 // selection to collapse. If the new extent is set to the same position as | 106 // selection to collapse. If the new extent is set to the same position as |
104 // the current base, this function will do nothing. | 107 // the current base, this function will do nothing. |
105 virtual void moveRangeSelectionExtent(const WebPoint&) = 0; | 108 virtual void moveRangeSelectionExtent(const WebPoint&) = 0; |
106 }; | 109 }; |
107 | 110 |
108 } // namespace blink | 111 } // namespace blink |
109 | 112 |
110 #endif // WebLocalFrame_h | 113 #endif // WebLocalFrame_h |
OLD | NEW |