| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 virtual void replaceMisspelledRange(const WebString&) = 0; | 235 virtual void replaceMisspelledRange(const WebString&) = 0; |
| 236 virtual void removeSpellingMarkers() = 0; | 236 virtual void removeSpellingMarkers() = 0; |
| 237 | 237 |
| 238 // Selection ----------------------------------------------------------- | 238 // Selection ----------------------------------------------------------- |
| 239 | 239 |
| 240 virtual bool hasSelection() const = 0; | 240 virtual bool hasSelection() const = 0; |
| 241 | 241 |
| 242 virtual WebRange selectionRange() const = 0; | 242 virtual WebRange selectionRange() const = 0; |
| 243 | 243 |
| 244 virtual WebString selectionAsText() const = 0; | 244 virtual WebString selectionAsText() const = 0; |
| 245 virtual WebString selectionAsMarkup() const = 0; | |
| 246 | 245 |
| 247 // Expands the selection to a word around the caret and returns | 246 // Expands the selection to a word around the caret and returns |
| 248 // true. Does nothing and returns false if there is no caret or | 247 // true. Does nothing and returns false if there is no caret or |
| 249 // there is ranged selection. | 248 // there is ranged selection. |
| 250 virtual bool selectWordAroundCaret() = 0; | 249 virtual bool selectWordAroundCaret() = 0; |
| 251 | 250 |
| 252 // DEPRECATED: Use moveRangeSelection. | 251 // DEPRECATED: Use moveRangeSelection. |
| 253 virtual void selectRange(const WebPoint& base, const WebPoint& extent) = 0; | 252 virtual void selectRange(const WebPoint& base, const WebPoint& extent) = 0; |
| 254 | 253 |
| 255 virtual void selectRange(const WebRange&) = 0; | 254 virtual void selectRange(const WebRange&) = 0; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 272 // Returns the contents of this frame as a string. If the text is | 271 // Returns the contents of this frame as a string. If the text is |
| 273 // longer than maxChars, it will be clipped to that length. WARNING: | 272 // longer than maxChars, it will be clipped to that length. WARNING: |
| 274 // This function may be slow depending on the number of characters | 273 // This function may be slow depending on the number of characters |
| 275 // retrieved and page complexity. For a typically sized page, expect | 274 // retrieved and page complexity. For a typically sized page, expect |
| 276 // it to take on the order of milliseconds. | 275 // it to take on the order of milliseconds. |
| 277 // | 276 // |
| 278 // If there is room, subframe text will be recursively appended. Each | 277 // If there is room, subframe text will be recursively appended. Each |
| 279 // frame will be separated by an empty line. | 278 // frame will be separated by an empty line. |
| 280 virtual WebString contentAsText(size_t maxChars) const = 0; | 279 virtual WebString contentAsText(size_t maxChars) const = 0; |
| 281 | 280 |
| 282 // Returns HTML text for the contents of this frame. This is generated | |
| 283 // from the DOM. | |
| 284 virtual WebString contentAsMarkup() const = 0; | |
| 285 | |
| 286 // Returns a text representation of the render tree. This method is used | 281 // Returns a text representation of the render tree. This method is used |
| 287 // to support layout tests. | 282 // to support layout tests. |
| 288 virtual WebString renderTreeAsText(RenderAsTextControls toShow = RenderAsTex
tNormal) const = 0; | 283 virtual WebString renderTreeAsText(RenderAsTextControls toShow = RenderAsTex
tNormal) const = 0; |
| 289 | 284 |
| 290 // Calls markerTextForListItem() defined in WebCore/rendering/RenderTreeAsTe
xt.h. | 285 // Calls markerTextForListItem() defined in WebCore/rendering/RenderTreeAsTe
xt.h. |
| 291 virtual WebString markerTextForListItem(const WebElement&) const = 0; | 286 virtual WebString markerTextForListItem(const WebElement&) const = 0; |
| 292 | 287 |
| 293 // Returns the bounds rect for current selection. If selection is performed | 288 // Returns the bounds rect for current selection. If selection is performed |
| 294 // on transformed text, the rect will still bound the selection but will | 289 // on transformed text, the rect will still bound the selection but will |
| 295 // not be transformed itself. If no selection is present, the rect will be | 290 // not be transformed itself. If no selection is present, the rect will be |
| (...skipping 15 matching lines...) Expand all Loading... |
| 311 private: | 306 private: |
| 312 }; | 307 }; |
| 313 | 308 |
| 314 #if BLINK_IMPLEMENTATION | 309 #if BLINK_IMPLEMENTATION |
| 315 Frame* toCoreFrame(const WebFrame*); | 310 Frame* toCoreFrame(const WebFrame*); |
| 316 #endif | 311 #endif |
| 317 | 312 |
| 318 } // namespace blink | 313 } // namespace blink |
| 319 | 314 |
| 320 #endif // SKY_ENGINE_PUBLIC_WEB_WEBFRAME_H_ | 315 #endif // SKY_ENGINE_PUBLIC_WEB_WEBFRAME_H_ |
| OLD | NEW |