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