Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(724)

Side by Side Diff: third_party/WebKit/public/web/WebLocalFrame.h

Issue 2948593002: Relanding [Android] Adding Smart GO/NEXT feature in Chrome (Closed)
Patch Set: Rebased the patch Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/public/platform/WebTextInputType.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/WebURLError.h" 17 #include "public/platform/WebURLError.h"
17 #include "public/platform/WebURLRequest.h" 18 #include "public/platform/WebURLRequest.h"
18 #include "public/platform/site_engagement.mojom-shared.h" 19 #include "public/platform/site_engagement.mojom-shared.h"
19 #include "v8/include/v8.h" 20 #include "v8/include/v8.h"
20 21
21 namespace base { 22 namespace base {
22 class SingleThreadTaskRunner; 23 class SingleThreadTaskRunner;
23 } 24 }
24 25
25 namespace blink { 26 namespace blink {
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 virtual float PrintPage(int page_to_print, WebCanvas*) = 0; 735 virtual float PrintPage(int page_to_print, WebCanvas*) = 0;
735 736
736 // Reformats the WebFrame for screen display. 737 // Reformats the WebFrame for screen display.
737 virtual void PrintEnd() = 0; 738 virtual void PrintEnd() = 0;
738 739
739 // If the frame contains a full-frame plugin or the given node refers to a 740 // If the frame contains a full-frame plugin or the given node refers to a
740 // plugin whose content indicates that printed output should not be scaled, 741 // plugin whose content indicates that printed output should not be scaled,
741 // return true, otherwise return false. 742 // return true, otherwise return false.
742 virtual bool IsPrintScalingDisabledForPlugin(const WebNode& = WebNode()) = 0; 743 virtual bool IsPrintScalingDisabledForPlugin(const WebNode& = WebNode()) = 0;
743 744
745 // Advance the focus of the WebView to next text input element from current
746 // input field wrt sequential navigation with TAB or Shift + TAB
747 // WebFocusTypeForward simulates TAB and WebFocusTypeBackward simulates
748 // Shift + TAB. (Will be extended to other form controls like select element,
749 // checkbox, radio etc.)
750 virtual void AdvanceFocusInForm(WebFocusType) = 0;
751
744 // Testing ------------------------------------------------------------------ 752 // Testing ------------------------------------------------------------------
745 753
746 // Dumps the layer tree, used by the accelerated compositor, in 754 // Dumps the layer tree, used by the accelerated compositor, in
747 // text form. This is used only by layout tests. 755 // text form. This is used only by layout tests.
748 virtual WebString GetLayerTreeAsTextForTesting( 756 virtual WebString GetLayerTreeAsTextForTesting(
749 bool show_debug_info = false) const = 0; 757 bool show_debug_info = false) const = 0;
750 758
751 // Prints the frame into the canvas, with page boundaries drawn as one pixel 759 // Prints the frame into the canvas, with page boundaries drawn as one pixel
752 // wide blue lines. This method exists to support layout tests. 760 // wide blue lines. This method exists to support layout tests.
753 virtual void PrintPagesForTesting(WebCanvas*, const WebSize&) = 0; 761 virtual void PrintPagesForTesting(WebCanvas*, const WebSize&) = 0;
(...skipping 11 matching lines...) Expand all
765 // to call these on a WebLocalFrame. 773 // to call these on a WebLocalFrame.
766 bool IsWebLocalFrame() const override = 0; 774 bool IsWebLocalFrame() const override = 0;
767 WebLocalFrame* ToWebLocalFrame() override = 0; 775 WebLocalFrame* ToWebLocalFrame() override = 0;
768 bool IsWebRemoteFrame() const override = 0; 776 bool IsWebRemoteFrame() const override = 0;
769 WebRemoteFrame* ToWebRemoteFrame() override = 0; 777 WebRemoteFrame* ToWebRemoteFrame() override = 0;
770 }; 778 };
771 779
772 } // namespace blink 780 } // namespace blink
773 781
774 #endif // WebLocalFrame_h 782 #endif // WebLocalFrame_h
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/WebTextInputType.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698