| 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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 // Returns the bounds rect for current selection. If selection is performed | 534 // Returns the bounds rect for current selection. If selection is performed |
| 535 // on transformed text, the rect will still bound the selection but will | 535 // on transformed text, the rect will still bound the selection but will |
| 536 // not be transformed itself. If no selection is present, the rect will be | 536 // not be transformed itself. If no selection is present, the rect will be |
| 537 // empty ((0,0), (0,0)). | 537 // empty ((0,0), (0,0)). |
| 538 virtual WebRect selectionBoundsRect() const = 0; | 538 virtual WebRect selectionBoundsRect() const = 0; |
| 539 | 539 |
| 540 // Only for testing purpose: | 540 // Only for testing purpose: |
| 541 // Returns true if selection.anchorNode has a marker on range from |from| wi
th |length|. | 541 // Returns true if selection.anchorNode has a marker on range from |from| wi
th |length|. |
| 542 virtual bool selectionStartHasSpellingMarkerFor(int from, int length) const
= 0; | 542 virtual bool selectionStartHasSpellingMarkerFor(int from, int length) const
= 0; |
| 543 | 543 |
| 544 // Copy to the clipboard the image located at a particular point in visual |
| 545 // viewport coordinates. |
| 546 virtual void copyImageAt(const WebPoint&) = 0; |
| 547 |
| 548 // Save as the image located at a particular point in visual viewport |
| 549 // coordinates. |
| 550 virtual void saveImageAt(const WebPoint&) = 0; |
| 551 |
| 544 // Dumps the layer tree, used by the accelerated compositor, in | 552 // Dumps the layer tree, used by the accelerated compositor, in |
| 545 // text form. This is used only by layout tests. | 553 // text form. This is used only by layout tests. |
| 546 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0; | 554 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0; |
| 547 | 555 |
| 548 virtual WebFrameImplBase* toImplBase() = 0; | 556 virtual WebFrameImplBase* toImplBase() = 0; |
| 549 // TODO(dcheng): Fix const-correctness issues and remove this overload. | 557 // TODO(dcheng): Fix const-correctness issues and remove this overload. |
| 550 virtual const WebFrameImplBase* toImplBase() const | 558 virtual const WebFrameImplBase* toImplBase() const |
| 551 { | 559 { |
| 552 return const_cast<WebFrame*>(this)->toImplBase(); | 560 return const_cast<WebFrame*>(this)->toImplBase(); |
| 553 } | 561 } |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 610 WebFrame* m_firstChild; | 618 WebFrame* m_firstChild; |
| 611 WebFrame* m_lastChild; | 619 WebFrame* m_lastChild; |
| 612 | 620 |
| 613 WebFrame* m_opener; | 621 WebFrame* m_opener; |
| 614 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; | 622 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; |
| 615 }; | 623 }; |
| 616 | 624 |
| 617 } // namespace blink | 625 } // namespace blink |
| 618 | 626 |
| 619 #endif | 627 #endif |
| OLD | NEW |