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 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
679 | 679 |
680 // Returns the WebInputMethodController associated with this local frame. | 680 // Returns the WebInputMethodController associated with this local frame. |
681 virtual WebInputMethodController* GetInputMethodController() = 0; | 681 virtual WebInputMethodController* GetInputMethodController() = 0; |
682 | 682 |
683 // Loading ------------------------------------------------------------------ | 683 // Loading ------------------------------------------------------------------ |
684 | 684 |
685 // Creates and returns a loader. This function can be called only when this | 685 // Creates and returns a loader. This function can be called only when this |
686 // frame is attached to a document. | 686 // frame is attached to a document. |
687 virtual std::unique_ptr<WebURLLoader> CreateURLLoader() = 0; | 687 virtual std::unique_ptr<WebURLLoader> CreateURLLoader() = 0; |
688 | 688 |
| 689 // Reload the current document. |
| 690 // Note: reload() and reloadWithOverrideURL() will be deprecated. |
| 691 // Do not use these APIs any more, but use loadRequest() instead. |
| 692 virtual void Reload(WebFrameLoadType) = 0; |
| 693 |
| 694 // This is used for situations where we want to reload a different URL because |
| 695 // of a redirect. |
| 696 virtual void ReloadWithOverrideURL(const WebURL& override_url, |
| 697 WebFrameLoadType) = 0; |
| 698 |
| 699 // Load the given URL. |
| 700 virtual void LoadRequest(const WebURLRequest&) = 0; |
| 701 |
689 // Geometry ----------------------------------------------------------------- | 702 // Geometry ----------------------------------------------------------------- |
690 | 703 |
691 // If set to false, do not draw scrollbars on this frame's view. | 704 // If set to false, do not draw scrollbars on this frame's view. |
692 virtual void SetCanHaveScrollbars(bool) = 0; | 705 virtual void SetCanHaveScrollbars(bool) = 0; |
693 | 706 |
694 // Printing ------------------------------------------------------------ | 707 // Printing ------------------------------------------------------------ |
695 | 708 |
696 // Reformats the WebFrame for printing. WebPrintParams specifies the printable | 709 // Reformats the WebFrame for printing. WebPrintParams specifies the printable |
697 // content size, paper size, printable area size, printer DPI and print | 710 // content size, paper size, printable area size, printer DPI and print |
698 // scaling option. If constrainToNode node is specified, then only the given | 711 // scaling option. If constrainToNode node is specified, then only the given |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
745 // to call these on a WebLocalFrame. | 758 // to call these on a WebLocalFrame. |
746 bool IsWebLocalFrame() const override = 0; | 759 bool IsWebLocalFrame() const override = 0; |
747 WebLocalFrame* ToWebLocalFrame() override = 0; | 760 WebLocalFrame* ToWebLocalFrame() override = 0; |
748 bool IsWebRemoteFrame() const override = 0; | 761 bool IsWebRemoteFrame() const override = 0; |
749 WebRemoteFrame* ToWebRemoteFrame() override = 0; | 762 WebRemoteFrame* ToWebRemoteFrame() override = 0; |
750 }; | 763 }; |
751 | 764 |
752 } // namespace blink | 765 } // namespace blink |
753 | 766 |
754 #endif // WebLocalFrame_h | 767 #endif // WebLocalFrame_h |
OLD | NEW |