Chromium Code Reviews| 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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 447 virtual WebRange selectionRange() const = 0; | 447 virtual WebRange selectionRange() const = 0; |
| 448 | 448 |
| 449 virtual WebString selectionAsText() const = 0; | 449 virtual WebString selectionAsText() const = 0; |
| 450 virtual WebString selectionAsMarkup() const = 0; | 450 virtual WebString selectionAsMarkup() const = 0; |
| 451 | 451 |
| 452 // Expands the selection to a word around the caret and returns | 452 // Expands the selection to a word around the caret and returns |
| 453 // true. Does nothing and returns false if there is no caret or | 453 // true. Does nothing and returns false if there is no caret or |
| 454 // there is ranged selection. | 454 // there is ranged selection. |
| 455 virtual bool selectWordAroundCaret() = 0; | 455 virtual bool selectWordAroundCaret() = 0; |
| 456 | 456 |
| 457 // Select a range of text, as if by drag-selecting from base to extent | 457 // DEPRECATED: Use moveRangeSelection/moveCaretSelection. |
| 458 // with character granularity. | |
| 459 virtual void selectRange(const WebPoint& base, const WebPoint& extent) = 0; | 458 virtual void selectRange(const WebPoint& base, const WebPoint& extent) = 0; |
| 459 virtual void moveCaretSelectionTowardsWindowPoint(const WebPoint&) = 0; | |
|
cjhopman
2013/05/06 21:49:37
These two will be removed once chromium is updated
| |
| 460 | 460 |
| 461 virtual void selectRange(const WebRange&) = 0; | 461 virtual void selectRange(const WebRange&) = 0; |
| 462 | 462 |
| 463 virtual void moveCaretSelectionTowardsWindowPoint(const WebPoint&) = 0; | 463 // Move the current selection. If the current selection is editable, the |
| 464 // new selection will be restricted to the root editable element. | |
| 465 virtual void moveRangeSelection(const WebPoint& base, const WebPoint& extent ) = 0; | |
| 466 virtual void moveCaretSelection(const WebPoint&) = 0; | |
| 464 | 467 |
| 465 // Printing ------------------------------------------------------------ | 468 // Printing ------------------------------------------------------------ |
| 466 | 469 |
| 467 // Reformats the WebFrame for printing. WebPrintParams specifies the printab le | 470 // Reformats the WebFrame for printing. WebPrintParams specifies the printab le |
| 468 // content size, paper size, printable area size, printer DPI and print | 471 // content size, paper size, printable area size, printer DPI and print |
| 469 // scaling option. If constrainToNode node is specified, then only the given node | 472 // scaling option. If constrainToNode node is specified, then only the given node |
| 470 // is printed (for now only plugins are supported), instead of the entire fr ame. | 473 // is printed (for now only plugins are supported), instead of the entire fr ame. |
| 471 // Returns the number of pages that can be printed at the given | 474 // Returns the number of pages that can be printed at the given |
| 472 // page size. The out param useBrowserOverlays specifies whether the browser | 475 // page size. The out param useBrowserOverlays specifies whether the browser |
| 473 // process should use its overlays (header, footer, margins etc) or whether | 476 // process should use its overlays (header, footer, margins etc) or whether |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 654 // text form. This is used only by layout tests. | 657 // text form. This is used only by layout tests. |
| 655 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0; | 658 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0; |
| 656 | 659 |
| 657 protected: | 660 protected: |
| 658 ~WebFrame() { } | 661 ~WebFrame() { } |
| 659 }; | 662 }; |
| 660 | 663 |
| 661 } // namespace WebKit | 664 } // namespace WebKit |
| 662 | 665 |
| 663 #endif | 666 #endif |
| OLD | NEW |