OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 13 matching lines...) Expand all Loading... | |
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebFrame_h | 31 #ifndef WebFrame_h |
32 #define WebFrame_h | 32 #define WebFrame_h |
33 | 33 |
34 #include "../platform/WebFocusType.h" | |
34 #include "WebIconURL.h" | 35 #include "WebIconURL.h" |
35 #include "WebNode.h" | 36 #include "WebNode.h" |
36 #include "public/platform/WebCanvas.h" | 37 #include "public/platform/WebCanvas.h" |
37 #include "public/platform/WebInsecureRequestPolicy.h" | 38 #include "public/platform/WebInsecureRequestPolicy.h" |
38 #include "public/web/WebFrameLoadType.h" | 39 #include "public/web/WebFrameLoadType.h" |
39 #include "public/web/WebTreeScopeType.h" | 40 #include "public/web/WebTreeScopeType.h" |
40 #include <memory> | 41 #include <memory> |
41 | 42 |
42 namespace v8 { | 43 namespace v8 { |
43 class Context; | 44 class Context; |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
413 // Dumps the layer tree, used by the accelerated compositor, in | 414 // Dumps the layer tree, used by the accelerated compositor, in |
414 // text form. This is used only by layout tests. | 415 // text form. This is used only by layout tests. |
415 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0; | 416 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0; |
416 | 417 |
417 virtual WebFrameImplBase* toImplBase() = 0; | 418 virtual WebFrameImplBase* toImplBase() = 0; |
418 // TODO(dcheng): Fix const-correctness issues and remove this overload. | 419 // TODO(dcheng): Fix const-correctness issues and remove this overload. |
419 virtual const WebFrameImplBase* toImplBase() const { | 420 virtual const WebFrameImplBase* toImplBase() const { |
420 return const_cast<WebFrame*>(this)->toImplBase(); | 421 return const_cast<WebFrame*>(this)->toImplBase(); |
421 } | 422 } |
422 | 423 |
424 // Advance the focus of the WebView to next text input element from current | |
425 // input field wrt sequential navigation with TAB or Shift + TAB | |
426 // WebFocusTypeForward simulates TAB and WebFocusTypeBackward simulates | |
427 // Shift + TAB. (Will be extended to other form Controls like Select element | |
428 // , Checkbox, Radio etc.) | |
429 virtual void advanceFocusInForm(WebFocusType) = 0; | |
EhsanK
2017/04/26 21:31:59
I suggest removing this to WebLocalFrame. I don't
AKVT
2017/04/27 15:07:02
Done.
| |
430 | |
423 // Returns the frame inside a given frame or iframe element. Returns 0 if | 431 // Returns the frame inside a given frame or iframe element. Returns 0 if |
424 // the given element is not a frame, iframe or if the frame is empty. | 432 // the given element is not a frame, iframe or if the frame is empty. |
425 BLINK_EXPORT static WebFrame* fromFrameOwnerElement(const WebElement&); | 433 BLINK_EXPORT static WebFrame* fromFrameOwnerElement(const WebElement&); |
426 | 434 |
427 #if BLINK_IMPLEMENTATION | 435 #if BLINK_IMPLEMENTATION |
428 static WebFrame* fromFrame(Frame*); | 436 static WebFrame* fromFrame(Frame*); |
429 | 437 |
430 bool inShadowTree() const { return m_scope == WebTreeScopeType::Shadow; } | 438 bool inShadowTree() const { return m_scope == WebTreeScopeType::Shadow; } |
431 | 439 |
432 static void traceFrames(Visitor*, WebFrame*); | 440 static void traceFrames(Visitor*, WebFrame*); |
(...skipping 25 matching lines...) Expand all Loading... | |
458 WebFrame* m_firstChild; | 466 WebFrame* m_firstChild; |
459 WebFrame* m_lastChild; | 467 WebFrame* m_lastChild; |
460 | 468 |
461 WebFrame* m_opener; | 469 WebFrame* m_opener; |
462 std::unique_ptr<OpenedFrameTracker> m_openedFrameTracker; | 470 std::unique_ptr<OpenedFrameTracker> m_openedFrameTracker; |
463 }; | 471 }; |
464 | 472 |
465 } // namespace blink | 473 } // namespace blink |
466 | 474 |
467 #endif | 475 #endif |
OLD | NEW |