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

Side by Side Diff: webkit/glue/webframe.h

Issue 119043: Add functions to glue to get the full html of the page and also to check if t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 6 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | webkit/glue/webframe_impl.h » ('j') | webkit/glue/webframe_impl.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 WEBKIT_GLUE_WEBFRAME_H_ 5 #ifndef WEBKIT_GLUE_WEBFRAME_H_
6 #define WEBKIT_GLUE_WEBFRAME_H_ 6 #define WEBKIT_GLUE_WEBFRAME_H_
7 7
8 #include "base/scoped_ptr.h" 8 #include "base/scoped_ptr.h"
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "skia/ext/bitmap_platform_device.h" 10 #include "skia/ext/bitmap_platform_device.h"
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 319
320 // Undo the last text editing command. 320 // Undo the last text editing command.
321 virtual void Undo() = 0; 321 virtual void Undo() = 0;
322 322
323 // Redo the last undone text editing command. 323 // Redo the last undone text editing command.
324 virtual void Redo() = 0; 324 virtual void Redo() = 0;
325 325
326 // Clear any text selection in the frame. 326 // Clear any text selection in the frame.
327 virtual void ClearSelection() = 0; 327 virtual void ClearSelection() = 0;
328 328
329 // Checks if there is currently a selected area (indicates that GetSelection
M-A Ruel 2009/06/02 16:15:09 Is this function a performance optimization? I don
Sverrir 2009/06/02 17:19:58 Sort of. I'm not sure there is a defined contract
M-A Ruel 2009/06/02 18:27:40 There's only one user of GetSelection(false) and n
330 // would return a non-empty string).
331 virtual bool HasSelection() = 0;
332
329 // Returns the selected text if there is any. If |as_html| is true, returns 333 // Returns the selected text if there is any. If |as_html| is true, returns
330 // the selection as HTML. The return value is encoded in utf-8. 334 // the selection as HTML. The return value is encoded in utf-8.
331 virtual std::string GetSelection(bool as_html) = 0; 335 virtual std::string GetSelection(bool as_html) = 0;
332 336
337 // Returns the full HTML of the page.
338 virtual std::string GetFullPageHtml() = 0;
339
333 // Paints the contents of this web view in a bitmapped image. This image 340 // Paints the contents of this web view in a bitmapped image. This image
334 // will not have plugins drawn. Devices are cheap to copy because the data is 341 // will not have plugins drawn. Devices are cheap to copy because the data is
335 // internally refcounted so we allocate and return a new copy 342 // internally refcounted so we allocate and return a new copy
336 // 343 //
337 // Set scroll_to_zero to force all frames to be scrolled to 0,0 before 344 // Set scroll_to_zero to force all frames to be scrolled to 0,0 before
338 // being painted into the image. This will not send DOM events because it 345 // being painted into the image. This will not send DOM events because it
339 // just draws the contents at a different place, but it does mean the 346 // just draws the contents at a different place, but it does mean the
340 // scrollbars in the resulting image will appear to be wrong (they'll be 347 // scrollbars in the resulting image will appear to be wrong (they'll be
341 // painted as if the content was scrolled). 348 // painted as if the content was scrolled).
342 // 349 //
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 virtual int PendingFrameUnloadEventCount() const = 0; 426 virtual int PendingFrameUnloadEventCount() const = 0;
420 427
421 protected: 428 protected:
422 virtual ~WebFrame() {} 429 virtual ~WebFrame() {}
423 430
424 private: 431 private:
425 DISALLOW_COPY_AND_ASSIGN(WebFrame); 432 DISALLOW_COPY_AND_ASSIGN(WebFrame);
426 }; 433 };
427 434
428 #endif // WEBKIT_GLUE_WEBFRAME_H_ 435 #endif // WEBKIT_GLUE_WEBFRAME_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/glue/webframe_impl.h » ('j') | webkit/glue/webframe_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698