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

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

Issue 770223002: Remove lots of code from the WebWidget/WebView/WebFrame layer. (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
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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 282 // Returns HTML text for the contents of this frame. This is generated
283 // from the DOM. 283 // from the DOM.
284 virtual WebString contentAsMarkup() const = 0; 284 virtual WebString contentAsMarkup() const = 0;
285 285
286 // Returns a text representation of the render tree. This method is used 286 // Returns a text representation of the render tree. This method is used
287 // to support layout tests. 287 // to support layout tests.
288 virtual WebString renderTreeAsText(RenderAsTextControls toShow = RenderAsTex tNormal) const = 0; 288 virtual WebString renderTreeAsText(RenderAsTextControls toShow = RenderAsTex tNormal) const = 0;
289 289
290 // Calls markerTextForListItem() defined in WebCore/rendering/RenderTreeAsTe xt.h.
291 virtual WebString markerTextForListItem(const WebElement&) const = 0;
292
293 // Returns the bounds rect for current selection. If selection is performed
294 // 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
296 // empty ((0,0), (0,0)).
297 virtual WebRect selectionBoundsRect() const = 0;
298
299 // Only for testing purpose: 290 // Only for testing purpose:
300 // Returns true if selection.anchorNode has a marker on range from |from| wi th |length|. 291 // Returns true if selection.anchorNode has a marker on range from |from| wi th |length|.
301 virtual bool selectionStartHasSpellingMarkerFor(int from, int length) const = 0; 292 virtual bool selectionStartHasSpellingMarkerFor(int from, int length) const = 0;
302 293
303 #if BLINK_IMPLEMENTATION 294 #if BLINK_IMPLEMENTATION
304 static WebFrame* fromFrame(Frame*); 295 static WebFrame* fromFrame(Frame*);
305 #endif 296 #endif
306 297
307 protected: 298 protected:
308 explicit WebFrame(); 299 explicit WebFrame();
309 virtual ~WebFrame(); 300 virtual ~WebFrame();
310 301
311 private: 302 private:
312 }; 303 };
313 304
314 #if BLINK_IMPLEMENTATION 305 #if BLINK_IMPLEMENTATION
315 Frame* toCoreFrame(const WebFrame*); 306 Frame* toCoreFrame(const WebFrame*);
316 #endif 307 #endif
317 308
318 } // namespace blink 309 } // namespace blink
319 310
320 #endif // SKY_ENGINE_PUBLIC_WEB_WEBFRAME_H_ 311 #endif // SKY_ENGINE_PUBLIC_WEB_WEBFRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698