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 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 | 534 |
534 // Returns frame-specific task runner to run tasks of this type on. | 535 // Returns frame-specific task runner to run tasks of this type on. |
535 // They have the same lifetime as the frame. | 536 // They have the same lifetime as the frame. |
536 virtual base::SingleThreadTaskRunner* TimerTaskRunner() = 0; | 537 virtual base::SingleThreadTaskRunner* TimerTaskRunner() = 0; |
537 virtual base::SingleThreadTaskRunner* LoadingTaskRunner() = 0; | 538 virtual base::SingleThreadTaskRunner* LoadingTaskRunner() = 0; |
538 virtual base::SingleThreadTaskRunner* UnthrottledTaskRunner() = 0; | 539 virtual base::SingleThreadTaskRunner* UnthrottledTaskRunner() = 0; |
539 | 540 |
540 // Returns the WebInputMethodController associated with this local frame. | 541 // Returns the WebInputMethodController associated with this local frame. |
541 virtual WebInputMethodController* GetInputMethodController() const = 0; | 542 virtual WebInputMethodController* GetInputMethodController() const = 0; |
542 | 543 |
| 544 // Advance the focus of the WebView to next text input element from current |
| 545 // input field wrt sequential navigation with TAB or Shift + TAB |
| 546 // WebFocusTypeForward simulates TAB and WebFocusTypeBackward simulates |
| 547 // Shift + TAB. (Will be extended to other form Controls like Select element |
| 548 // , Checkbox, Radio etc.) |
| 549 virtual void AdvanceFocusInForm(WebFocusType) = 0; |
| 550 |
543 protected: | 551 protected: |
544 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {} | 552 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {} |
545 | 553 |
546 // Inherited from WebFrame, but intentionally hidden: it never makes sense | 554 // Inherited from WebFrame, but intentionally hidden: it never makes sense |
547 // to call these on a WebLocalFrame. | 555 // to call these on a WebLocalFrame. |
548 bool IsWebLocalFrame() const override = 0; | 556 bool IsWebLocalFrame() const override = 0; |
549 WebLocalFrame* ToWebLocalFrame() override = 0; | 557 WebLocalFrame* ToWebLocalFrame() override = 0; |
550 bool IsWebRemoteFrame() const override = 0; | 558 bool IsWebRemoteFrame() const override = 0; |
551 WebRemoteFrame* ToWebRemoteFrame() override = 0; | 559 WebRemoteFrame* ToWebRemoteFrame() override = 0; |
552 }; | 560 }; |
553 | 561 |
554 } // namespace blink | 562 } // namespace blink |
555 | 563 |
556 #endif // WebLocalFrame_h | 564 #endif // WebLocalFrame_h |
OLD | NEW |