| 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 "WebCompositionUnderline.h" | 8 #include "WebCompositionUnderline.h" |
| 9 #include "WebFrame.h" | 9 #include "WebFrame.h" |
| 10 #include "WebFrameLoadType.h" | 10 #include "WebFrameLoadType.h" |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 // otherwise run it on context resumed. | 192 // otherwise run it on context resumed. |
| 193 // Method takes ownership of the passed task. | 193 // Method takes ownership of the passed task. |
| 194 virtual void requestRunTask(WebSuspendableTask*) const = 0; | 194 virtual void requestRunTask(WebSuspendableTask*) const = 0; |
| 195 | 195 |
| 196 // Associates an isolated world with human-readable name which is useful for | 196 // Associates an isolated world with human-readable name which is useful for |
| 197 // extension debugging. | 197 // extension debugging. |
| 198 virtual void setIsolatedWorldHumanReadableName(int worldID, const WebString&
) = 0; | 198 virtual void setIsolatedWorldHumanReadableName(int worldID, const WebString&
) = 0; |
| 199 | 199 |
| 200 // Editing ------------------------------------------------------------- | 200 // Editing ------------------------------------------------------------- |
| 201 | 201 |
| 202 virtual void insertText(const WebString& text) = 0; | |
| 203 | |
| 204 virtual void setMarkedText(const WebString& text, unsigned location, unsigne
d length) = 0; | 202 virtual void setMarkedText(const WebString& text, unsigned location, unsigne
d length) = 0; |
| 205 virtual void unmarkText() = 0; | 203 virtual void unmarkText() = 0; |
| 206 virtual bool hasMarkedText() const = 0; | 204 virtual bool hasMarkedText() const = 0; |
| 207 | 205 |
| 208 virtual WebRange markedRange() const = 0; | 206 virtual WebRange markedRange() const = 0; |
| 209 | 207 |
| 210 // Returns the text range rectangle in the viepwort coordinate space. | 208 // Returns the text range rectangle in the viepwort coordinate space. |
| 211 virtual bool firstRectForCharacterRange(unsigned location, unsigned length,
WebRect&) const = 0; | 209 virtual bool firstRectForCharacterRange(unsigned location, unsigned length,
WebRect&) const = 0; |
| 212 | 210 |
| 213 // Returns the index of a character in the Frame's text stream at the given | 211 // Returns the index of a character in the Frame's text stream at the given |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 // to call these on a WebLocalFrame. | 415 // to call these on a WebLocalFrame. |
| 418 bool isWebLocalFrame() const override = 0; | 416 bool isWebLocalFrame() const override = 0; |
| 419 WebLocalFrame* toWebLocalFrame() override = 0; | 417 WebLocalFrame* toWebLocalFrame() override = 0; |
| 420 bool isWebRemoteFrame() const override = 0; | 418 bool isWebRemoteFrame() const override = 0; |
| 421 WebRemoteFrame* toWebRemoteFrame() override = 0; | 419 WebRemoteFrame* toWebRemoteFrame() override = 0; |
| 422 }; | 420 }; |
| 423 | 421 |
| 424 } // namespace blink | 422 } // namespace blink |
| 425 | 423 |
| 426 #endif // WebLocalFrame_h | 424 #endif // WebLocalFrame_h |
| OLD | NEW |