| 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 #include "WebFrameLoadType.h" | 9 #include "WebFrameLoadType.h" |
| 10 | 10 |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 | 174 |
| 175 | 175 |
| 176 // Selection -------------------------------------------------------------- | 176 // Selection -------------------------------------------------------------- |
| 177 | 177 |
| 178 // Moves the selection extent point. This function does not allow the | 178 // Moves the selection extent point. This function does not allow the |
| 179 // selection to collapse. If the new extent is set to the same position as | 179 // selection to collapse. If the new extent is set to the same position as |
| 180 // the current base, this function will do nothing. | 180 // the current base, this function will do nothing. |
| 181 virtual void moveRangeSelectionExtent(const WebPoint&) = 0; | 181 virtual void moveRangeSelectionExtent(const WebPoint&) = 0; |
| 182 // Replaces the selection with the input string. | 182 // Replaces the selection with the input string. |
| 183 virtual void replaceSelection(const WebString&) = 0; | 183 virtual void replaceSelection(const WebString&) = 0; |
| 184 // Deletes text before and after the current cursor position, excluding the
selection. |
| 185 virtual void deleteSurroundingText(int before, int after) = 0; |
| 184 | 186 |
| 185 // Spell-checking support ------------------------------------------------- | 187 // Spell-checking support ------------------------------------------------- |
| 186 virtual void replaceMisspelledRange(const WebString&) = 0; | 188 virtual void replaceMisspelledRange(const WebString&) = 0; |
| 187 | 189 |
| 188 // Content Settings ------------------------------------------------------- | 190 // Content Settings ------------------------------------------------------- |
| 189 | 191 |
| 190 virtual void setContentSettingsClient(WebContentSettingsClient*) = 0; | 192 virtual void setContentSettingsClient(WebContentSettingsClient*) = 0; |
| 191 | 193 |
| 192 // App banner ------------------------------------------------------------- | 194 // App banner ------------------------------------------------------------- |
| 193 | 195 |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 // to call these on a WebLocalFrame. | 344 // to call these on a WebLocalFrame. |
| 343 bool isWebLocalFrame() const override = 0; | 345 bool isWebLocalFrame() const override = 0; |
| 344 WebLocalFrame* toWebLocalFrame() override = 0; | 346 WebLocalFrame* toWebLocalFrame() override = 0; |
| 345 bool isWebRemoteFrame() const override = 0; | 347 bool isWebRemoteFrame() const override = 0; |
| 346 WebRemoteFrame* toWebRemoteFrame() override = 0; | 348 WebRemoteFrame* toWebRemoteFrame() override = 0; |
| 347 }; | 349 }; |
| 348 | 350 |
| 349 } // namespace blink | 351 } // namespace blink |
| 350 | 352 |
| 351 #endif // WebLocalFrame_h | 353 #endif // WebLocalFrame_h |
| OLD | NEW |