| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 WebLocalFrame_h | 5 #ifndef WebLocalFrame_h |
| 6 #define WebLocalFrame_h | 6 #define WebLocalFrame_h |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 682 virtual WebInputMethodController* GetInputMethodController() = 0; | 682 virtual WebInputMethodController* GetInputMethodController() = 0; |
| 683 | 683 |
| 684 // Loading ------------------------------------------------------------------ | 684 // Loading ------------------------------------------------------------------ |
| 685 | 685 |
| 686 // Creates and returns a loader. This function can be called only when this | 686 // Creates and returns a loader. This function can be called only when this |
| 687 // frame is attached to a document. | 687 // frame is attached to a document. |
| 688 virtual std::unique_ptr<WebURLLoader> CreateURLLoader() = 0; | 688 virtual std::unique_ptr<WebURLLoader> CreateURLLoader() = 0; |
| 689 | 689 |
| 690 // Geometry ----------------------------------------------------------------- | 690 // Geometry ----------------------------------------------------------------- |
| 691 | 691 |
| 692 // The scroll offset from the top-left corner of the frame in pixels. |
| 693 virtual WebSize GetScrollOffset() const = 0; |
| 694 virtual void SetScrollOffset(const WebSize&) = 0; |
| 695 |
| 692 // If set to false, do not draw scrollbars on this frame's view. | 696 // If set to false, do not draw scrollbars on this frame's view. |
| 693 virtual void SetCanHaveScrollbars(bool) = 0; | 697 virtual void SetCanHaveScrollbars(bool) = 0; |
| 694 | 698 |
| 695 // Printing ------------------------------------------------------------ | 699 // Printing ------------------------------------------------------------ |
| 696 | 700 |
| 697 // Reformats the WebFrame for printing. WebPrintParams specifies the printable | 701 // Reformats the WebFrame for printing. WebPrintParams specifies the printable |
| 698 // content size, paper size, printable area size, printer DPI and print | 702 // content size, paper size, printable area size, printer DPI and print |
| 699 // scaling option. If constrainToNode node is specified, then only the given | 703 // scaling option. If constrainToNode node is specified, then only the given |
| 700 // node is printed (for now only plugins are supported), instead of the entire | 704 // node is printed (for now only plugins are supported), instead of the entire |
| 701 // frame. | 705 // frame. |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 746 // to call these on a WebLocalFrame. | 750 // to call these on a WebLocalFrame. |
| 747 bool IsWebLocalFrame() const override = 0; | 751 bool IsWebLocalFrame() const override = 0; |
| 748 WebLocalFrame* ToWebLocalFrame() override = 0; | 752 WebLocalFrame* ToWebLocalFrame() override = 0; |
| 749 bool IsWebRemoteFrame() const override = 0; | 753 bool IsWebRemoteFrame() const override = 0; |
| 750 WebRemoteFrame* ToWebRemoteFrame() override = 0; | 754 WebRemoteFrame* ToWebRemoteFrame() override = 0; |
| 751 }; | 755 }; |
| 752 | 756 |
| 753 } // namespace blink | 757 } // namespace blink |
| 754 | 758 |
| 755 #endif // WebLocalFrame_h | 759 #endif // WebLocalFrame_h |
| OLD | NEW |