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