| 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 |
| 11 #include "WebCompositionUnderline.h" | 11 #include "WebCompositionUnderline.h" |
| 12 #include "WebFrame.h" | 12 #include "WebFrame.h" |
| 13 #include "WebFrameLoadType.h" | 13 #include "WebFrameLoadType.h" |
| 14 #include "WebHistoryItem.h" | 14 #include "WebHistoryItem.h" |
| 15 #include "public/platform/WebCachePolicy.h" | 15 #include "public/platform/WebCachePolicy.h" |
| 16 #include "public/platform/WebFocusType.h" |
| 16 #include "public/platform/WebSize.h" | 17 #include "public/platform/WebSize.h" |
| 17 #include "public/platform/WebURLError.h" | 18 #include "public/platform/WebURLError.h" |
| 18 #include "public/platform/WebURLRequest.h" | 19 #include "public/platform/WebURLRequest.h" |
| 19 #include "public/platform/site_engagement.mojom-shared.h" | 20 #include "public/platform/site_engagement.mojom-shared.h" |
| 20 #include "public/web/WebSandboxFlags.h" | 21 #include "public/web/WebSandboxFlags.h" |
| 21 #include "v8/include/v8.h" | 22 #include "v8/include/v8.h" |
| 22 | 23 |
| 23 namespace base { | 24 namespace base { |
| 24 class SingleThreadTaskRunner; | 25 class SingleThreadTaskRunner; |
| 25 } | 26 } |
| (...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 754 virtual float PrintPage(int page_to_print, WebCanvas*) = 0; | 755 virtual float PrintPage(int page_to_print, WebCanvas*) = 0; |
| 755 | 756 |
| 756 // Reformats the WebFrame for screen display. | 757 // Reformats the WebFrame for screen display. |
| 757 virtual void PrintEnd() = 0; | 758 virtual void PrintEnd() = 0; |
| 758 | 759 |
| 759 // If the frame contains a full-frame plugin or the given node refers to a | 760 // If the frame contains a full-frame plugin or the given node refers to a |
| 760 // plugin whose content indicates that printed output should not be scaled, | 761 // plugin whose content indicates that printed output should not be scaled, |
| 761 // return true, otherwise return false. | 762 // return true, otherwise return false. |
| 762 virtual bool IsPrintScalingDisabledForPlugin(const WebNode& = WebNode()) = 0; | 763 virtual bool IsPrintScalingDisabledForPlugin(const WebNode& = WebNode()) = 0; |
| 763 | 764 |
| 765 // Advance the focus of the WebView to next text input element from current |
| 766 // input field wrt sequential navigation with TAB or Shift + TAB |
| 767 // WebFocusTypeForward simulates TAB and WebFocusTypeBackward simulates |
| 768 // Shift + TAB. (Will be extended to other form controls like select element, |
| 769 // checkbox, radio etc.) |
| 770 virtual void AdvanceFocusInForm(WebFocusType) = 0; |
| 771 |
| 764 // Testing ------------------------------------------------------------------ | 772 // Testing ------------------------------------------------------------------ |
| 765 | 773 |
| 766 // Dumps the layer tree, used by the accelerated compositor, in | 774 // Dumps the layer tree, used by the accelerated compositor, in |
| 767 // text form. This is used only by layout tests. | 775 // text form. This is used only by layout tests. |
| 768 virtual WebString GetLayerTreeAsTextForTesting( | 776 virtual WebString GetLayerTreeAsTextForTesting( |
| 769 bool show_debug_info = false) const = 0; | 777 bool show_debug_info = false) const = 0; |
| 770 | 778 |
| 771 // Prints the frame into the canvas, with page boundaries drawn as one pixel | 779 // Prints the frame into the canvas, with page boundaries drawn as one pixel |
| 772 // wide blue lines. This method exists to support layout tests. | 780 // wide blue lines. This method exists to support layout tests. |
| 773 virtual void PrintPagesForTesting(WebCanvas*, const WebSize&) = 0; | 781 virtual void PrintPagesForTesting(WebCanvas*, const WebSize&) = 0; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 785 // to call these on a WebLocalFrame. | 793 // to call these on a WebLocalFrame. |
| 786 bool IsWebLocalFrame() const override = 0; | 794 bool IsWebLocalFrame() const override = 0; |
| 787 WebLocalFrame* ToWebLocalFrame() override = 0; | 795 WebLocalFrame* ToWebLocalFrame() override = 0; |
| 788 bool IsWebRemoteFrame() const override = 0; | 796 bool IsWebRemoteFrame() const override = 0; |
| 789 WebRemoteFrame* ToWebRemoteFrame() override = 0; | 797 WebRemoteFrame* ToWebRemoteFrame() override = 0; |
| 790 }; | 798 }; |
| 791 | 799 |
| 792 } // namespace blink | 800 } // namespace blink |
| 793 | 801 |
| 794 #endif // WebLocalFrame_h | 802 #endif // WebLocalFrame_h |
| OLD | NEW |