| 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 527 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  551   virtual base::SingleThreadTaskRunner* UnthrottledTaskRunner() = 0; |  552   virtual base::SingleThreadTaskRunner* UnthrottledTaskRunner() = 0; | 
|  552  |  553  | 
|  553   // Returns the WebInputMethodController associated with this local frame. |  554   // Returns the WebInputMethodController associated with this local frame. | 
|  554   virtual WebInputMethodController* GetInputMethodController() const = 0; |  555   virtual WebInputMethodController* GetInputMethodController() const = 0; | 
|  555  |  556  | 
|  556   // Loading ------------------------------------------------------------------ |  557   // Loading ------------------------------------------------------------------ | 
|  557   // Creates and returns a loader. This function can be called only when this |  558   // Creates and returns a loader. This function can be called only when this | 
|  558   // frame is attached to a document. |  559   // frame is attached to a document. | 
|  559   virtual std::unique_ptr<WebURLLoader> CreateURLLoader() = 0; |  560   virtual std::unique_ptr<WebURLLoader> CreateURLLoader() = 0; | 
|  560  |  561  | 
 |  562   // Advance the focus of the WebView to next text input element from current | 
 |  563   // input field wrt sequential navigation with TAB or Shift + TAB | 
 |  564   // WebFocusTypeForward simulates TAB and WebFocusTypeBackward simulates | 
 |  565   // Shift + TAB. (Will be extended to other form controls like select element, | 
 |  566   // checkbox, radio etc.) | 
 |  567   virtual void AdvanceFocusInForm(WebFocusType) = 0; | 
 |  568  | 
|  561  protected: |  569  protected: | 
|  562   explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {} |  570   explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {} | 
|  563  |  571  | 
|  564   // Inherited from WebFrame, but intentionally hidden: it never makes sense |  572   // Inherited from WebFrame, but intentionally hidden: it never makes sense | 
|  565   // to call these on a WebLocalFrame. |  573   // to call these on a WebLocalFrame. | 
|  566   bool IsWebLocalFrame() const override = 0; |  574   bool IsWebLocalFrame() const override = 0; | 
|  567   WebLocalFrame* ToWebLocalFrame() override = 0; |  575   WebLocalFrame* ToWebLocalFrame() override = 0; | 
|  568   bool IsWebRemoteFrame() const override = 0; |  576   bool IsWebRemoteFrame() const override = 0; | 
|  569   WebRemoteFrame* ToWebRemoteFrame() override = 0; |  577   WebRemoteFrame* ToWebRemoteFrame() override = 0; | 
|  570 }; |  578 }; | 
|  571  |  579  | 
|  572 }  // namespace blink |  580 }  // namespace blink | 
|  573  |  581  | 
|  574 #endif  // WebLocalFrame_h |  582 #endif  // WebLocalFrame_h | 
| OLD | NEW |