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 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
694 // This is used for situations where we want to reload a different URL because | 694 // This is used for situations where we want to reload a different URL because |
695 // of a redirect. | 695 // of a redirect. |
696 virtual void ReloadWithOverrideURL(const WebURL& override_url, | 696 virtual void ReloadWithOverrideURL(const WebURL& override_url, |
697 WebFrameLoadType) = 0; | 697 WebFrameLoadType) = 0; |
698 | 698 |
699 // Load the given URL. | 699 // Load the given URL. |
700 virtual void LoadRequest(const WebURLRequest&) = 0; | 700 virtual void LoadRequest(const WebURLRequest&) = 0; |
701 | 701 |
702 // Geometry ----------------------------------------------------------------- | 702 // Geometry ----------------------------------------------------------------- |
703 | 703 |
| 704 // The scroll offset from the top-left corner of the frame in pixels. |
| 705 virtual WebSize GetScrollOffset() const = 0; |
| 706 virtual void SetScrollOffset(const WebSize&) = 0; |
| 707 |
704 // If set to false, do not draw scrollbars on this frame's view. | 708 // If set to false, do not draw scrollbars on this frame's view. |
705 virtual void SetCanHaveScrollbars(bool) = 0; | 709 virtual void SetCanHaveScrollbars(bool) = 0; |
706 | 710 |
707 // Printing ------------------------------------------------------------ | 711 // Printing ------------------------------------------------------------ |
708 | 712 |
709 // Reformats the WebFrame for printing. WebPrintParams specifies the printable | 713 // Reformats the WebFrame for printing. WebPrintParams specifies the printable |
710 // content size, paper size, printable area size, printer DPI and print | 714 // content size, paper size, printable area size, printer DPI and print |
711 // scaling option. If constrainToNode node is specified, then only the given | 715 // scaling option. If constrainToNode node is specified, then only the given |
712 // node is printed (for now only plugins are supported), instead of the entire | 716 // node is printed (for now only plugins are supported), instead of the entire |
713 // frame. | 717 // frame. |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
758 // to call these on a WebLocalFrame. | 762 // to call these on a WebLocalFrame. |
759 bool IsWebLocalFrame() const override = 0; | 763 bool IsWebLocalFrame() const override = 0; |
760 WebLocalFrame* ToWebLocalFrame() override = 0; | 764 WebLocalFrame* ToWebLocalFrame() override = 0; |
761 bool IsWebRemoteFrame() const override = 0; | 765 bool IsWebRemoteFrame() const override = 0; |
762 WebRemoteFrame* ToWebRemoteFrame() override = 0; | 766 WebRemoteFrame* ToWebRemoteFrame() override = 0; |
763 }; | 767 }; |
764 | 768 |
765 } // namespace blink | 769 } // namespace blink |
766 | 770 |
767 #endif // WebLocalFrame_h | 771 #endif // WebLocalFrame_h |
OLD | NEW |