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 | 18 |
18 namespace base { | 19 namespace base { |
19 class SingleThreadTaskRunner; | 20 class SingleThreadTaskRunner; |
20 } | 21 } |
21 | 22 |
22 namespace blink { | 23 namespace blink { |
23 | 24 |
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
603 | 604 |
604 // Creates and returns a loader. This function can be called only when this | 605 // Creates and returns a loader. This function can be called only when this |
605 // frame is attached to a document. | 606 // frame is attached to a document. |
606 virtual std::unique_ptr<WebURLLoader> CreateURLLoader() = 0; | 607 virtual std::unique_ptr<WebURLLoader> CreateURLLoader() = 0; |
607 | 608 |
608 // Geometry ----------------------------------------------------------------- | 609 // Geometry ----------------------------------------------------------------- |
609 | 610 |
610 // If set to false, do not draw scrollbars on this frame's view. | 611 // If set to false, do not draw scrollbars on this frame's view. |
611 virtual void SetCanHaveScrollbars(bool) = 0; | 612 virtual void SetCanHaveScrollbars(bool) = 0; |
612 | 613 |
| 614 // Advance the focus of the WebView to next text input element from current |
| 615 // input field wrt sequential navigation with TAB or Shift + TAB |
| 616 // WebFocusTypeForward simulates TAB and WebFocusTypeBackward simulates |
| 617 // Shift + TAB. (Will be extended to other form controls like select element, |
| 618 // checkbox, radio etc.) |
| 619 virtual void AdvanceFocusInForm(WebFocusType) = 0; |
| 620 |
613 // Testing ------------------------------------------------------------------ | 621 // Testing ------------------------------------------------------------------ |
614 | 622 |
615 // Dumps the layer tree, used by the accelerated compositor, in | 623 // Dumps the layer tree, used by the accelerated compositor, in |
616 // text form. This is used only by layout tests. | 624 // text form. This is used only by layout tests. |
617 virtual WebString GetLayerTreeAsTextForTesting( | 625 virtual WebString GetLayerTreeAsTextForTesting( |
618 bool show_debug_info = false) const = 0; | 626 bool show_debug_info = false) const = 0; |
619 | 627 |
620 protected: | 628 protected: |
621 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {} | 629 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {} |
622 | 630 |
623 // Inherited from WebFrame, but intentionally hidden: it never makes sense | 631 // Inherited from WebFrame, but intentionally hidden: it never makes sense |
624 // to call these on a WebLocalFrame. | 632 // to call these on a WebLocalFrame. |
625 bool IsWebLocalFrame() const override = 0; | 633 bool IsWebLocalFrame() const override = 0; |
626 WebLocalFrame* ToWebLocalFrame() override = 0; | 634 WebLocalFrame* ToWebLocalFrame() override = 0; |
627 bool IsWebRemoteFrame() const override = 0; | 635 bool IsWebRemoteFrame() const override = 0; |
628 WebRemoteFrame* ToWebRemoteFrame() override = 0; | 636 WebRemoteFrame* ToWebRemoteFrame() override = 0; |
629 }; | 637 }; |
630 | 638 |
631 } // namespace blink | 639 } // namespace blink |
632 | 640 |
633 #endif // WebLocalFrame_h | 641 #endif // WebLocalFrame_h |
OLD | NEW |