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 <set> | 8 #include <set> |
9 #include "WebCompositionUnderline.h" | 9 #include "WebCompositionUnderline.h" |
10 #include "WebFrame.h" | 10 #include "WebFrame.h" |
11 #include "WebFrameLoadType.h" | 11 #include "WebFrameLoadType.h" |
12 #include "WebHistoryItem.h" | 12 #include "WebHistoryItem.h" |
13 #include "public/platform/WebCachePolicy.h" | 13 #include "public/platform/WebCachePolicy.h" |
| 14 #include "public/platform/WebFocusType.h" |
14 #include "public/platform/WebURLError.h" | 15 #include "public/platform/WebURLError.h" |
15 #include "public/platform/WebURLRequest.h" | 16 #include "public/platform/WebURLRequest.h" |
16 #include "public/platform/site_engagement.mojom-shared.h" | 17 #include "public/platform/site_engagement.mojom-shared.h" |
17 #include "v8/include/v8.h" | 18 #include "v8/include/v8.h" |
18 | 19 |
19 namespace base { | 20 namespace base { |
20 class SingleThreadTaskRunner; | 21 class SingleThreadTaskRunner; |
21 } | 22 } |
22 | 23 |
23 namespace blink { | 24 namespace blink { |
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 virtual float PrintPage(int page_to_print, WebCanvas*) = 0; | 706 virtual float PrintPage(int page_to_print, WebCanvas*) = 0; |
706 | 707 |
707 // Reformats the WebFrame for screen display. | 708 // Reformats the WebFrame for screen display. |
708 virtual void PrintEnd() = 0; | 709 virtual void PrintEnd() = 0; |
709 | 710 |
710 // If the frame contains a full-frame plugin or the given node refers to a | 711 // If the frame contains a full-frame plugin or the given node refers to a |
711 // plugin whose content indicates that printed output should not be scaled, | 712 // plugin whose content indicates that printed output should not be scaled, |
712 // return true, otherwise return false. | 713 // return true, otherwise return false. |
713 virtual bool IsPrintScalingDisabledForPlugin(const WebNode& = WebNode()) = 0; | 714 virtual bool IsPrintScalingDisabledForPlugin(const WebNode& = WebNode()) = 0; |
714 | 715 |
| 716 // Advance the focus of the WebView to next text input element from current |
| 717 // input field wrt sequential navigation with TAB or Shift + TAB |
| 718 // WebFocusTypeForward simulates TAB and WebFocusTypeBackward simulates |
| 719 // Shift + TAB. (Will be extended to other form controls like select element, |
| 720 // checkbox, radio etc.) |
| 721 virtual void AdvanceFocusInForm(WebFocusType) = 0; |
| 722 |
715 // Testing ------------------------------------------------------------------ | 723 // Testing ------------------------------------------------------------------ |
716 | 724 |
717 // Dumps the layer tree, used by the accelerated compositor, in | 725 // Dumps the layer tree, used by the accelerated compositor, in |
718 // text form. This is used only by layout tests. | 726 // text form. This is used only by layout tests. |
719 virtual WebString GetLayerTreeAsTextForTesting( | 727 virtual WebString GetLayerTreeAsTextForTesting( |
720 bool show_debug_info = false) const = 0; | 728 bool show_debug_info = false) const = 0; |
721 | 729 |
722 // Prints the frame into the canvas, with page boundaries drawn as one pixel | 730 // Prints the frame into the canvas, with page boundaries drawn as one pixel |
723 // wide blue lines. This method exists to support layout tests. | 731 // wide blue lines. This method exists to support layout tests. |
724 virtual void PrintPagesForTesting(WebCanvas*, const WebSize&) = 0; | 732 virtual void PrintPagesForTesting(WebCanvas*, const WebSize&) = 0; |
(...skipping 11 matching lines...) Expand all Loading... |
736 // to call these on a WebLocalFrame. | 744 // to call these on a WebLocalFrame. |
737 bool IsWebLocalFrame() const override = 0; | 745 bool IsWebLocalFrame() const override = 0; |
738 WebLocalFrame* ToWebLocalFrame() override = 0; | 746 WebLocalFrame* ToWebLocalFrame() override = 0; |
739 bool IsWebRemoteFrame() const override = 0; | 747 bool IsWebRemoteFrame() const override = 0; |
740 WebRemoteFrame* ToWebRemoteFrame() override = 0; | 748 WebRemoteFrame* ToWebRemoteFrame() override = 0; |
741 }; | 749 }; |
742 | 750 |
743 } // namespace blink | 751 } // namespace blink |
744 | 752 |
745 #endif // WebLocalFrame_h | 753 #endif // WebLocalFrame_h |
OLD | NEW |