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