Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(664)

Side by Side Diff: sky/engine/public/web/WebFrame.h

Issue 771933002: Remove dead markup serialization code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/core/frame/LocalFrame.cpp ('k') | sky/engine/public/web/WebNode.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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_
OLDNEW
« no previous file with comments | « sky/engine/core/frame/LocalFrame.cpp ('k') | sky/engine/public/web/WebNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698