| 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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 // Returns the contents of this frame as a string. If the text is | 272 // 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: | 273 // longer than maxChars, it will be clipped to that length. WARNING: |
| 274 // This function may be slow depending on the number of characters | 274 // This function may be slow depending on the number of characters |
| 275 // retrieved and page complexity. For a typically sized page, expect | 275 // retrieved and page complexity. For a typically sized page, expect |
| 276 // it to take on the order of milliseconds. | 276 // it to take on the order of milliseconds. |
| 277 // | 277 // |
| 278 // If there is room, subframe text will be recursively appended. Each | 278 // If there is room, subframe text will be recursively appended. Each |
| 279 // frame will be separated by an empty line. | 279 // frame will be separated by an empty line. |
| 280 virtual WebString contentAsText(size_t maxChars) const = 0; | 280 virtual WebString contentAsText(size_t maxChars) const = 0; |
| 281 | 281 |
| 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 | 282 // Returns a text representation of the render tree. This method is used |
| 287 // to support layout tests. | 283 // to support layout tests. |
| 288 virtual WebString renderTreeAsText(RenderAsTextControls toShow = RenderAsTex
tNormal) const = 0; | 284 virtual WebString renderTreeAsText(RenderAsTextControls toShow = RenderAsTex
tNormal) const = 0; |
| 289 | 285 |
| 290 // Calls markerTextForListItem() defined in WebCore/rendering/RenderTreeAsTe
xt.h. | 286 // Calls markerTextForListItem() defined in WebCore/rendering/RenderTreeAsTe
xt.h. |
| 291 virtual WebString markerTextForListItem(const WebElement&) const = 0; | 287 virtual WebString markerTextForListItem(const WebElement&) const = 0; |
| 292 | 288 |
| 293 // Returns the bounds rect for current selection. If selection is performed | 289 // Returns the bounds rect for current selection. If selection is performed |
| 294 // on transformed text, the rect will still bound the selection but will | 290 // 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 | 291 // not be transformed itself. If no selection is present, the rect will be |
| (...skipping 15 matching lines...) Expand all Loading... |
| 311 private: | 307 private: |
| 312 }; | 308 }; |
| 313 | 309 |
| 314 #if BLINK_IMPLEMENTATION | 310 #if BLINK_IMPLEMENTATION |
| 315 Frame* toCoreFrame(const WebFrame*); | 311 Frame* toCoreFrame(const WebFrame*); |
| 316 #endif | 312 #endif |
| 317 | 313 |
| 318 } // namespace blink | 314 } // namespace blink |
| 319 | 315 |
| 320 #endif // SKY_ENGINE_PUBLIC_WEB_WEBFRAME_H_ | 316 #endif // SKY_ENGINE_PUBLIC_WEB_WEBFRAME_H_ |
| OLD | NEW |