| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 class HTMLShadowElement; | 42 class HTMLShadowElement; |
| 43 class Node; | 43 class Node; |
| 44 class Page; | 44 class Page; |
| 45 class TreeScope; | 45 class TreeScope; |
| 46 | 46 |
| 47 class FocusNavigationScope { | 47 class FocusNavigationScope { |
| 48 STACK_ALLOCATED(); | 48 STACK_ALLOCATED(); |
| 49 public: | 49 public: |
| 50 Node* rootNode() const; | 50 Node* rootNode() const; |
| 51 Element* owner() const; | 51 Element* owner() const; |
| 52 static FocusNavigationScope focusNavigationScopeOf(Node*); | 52 static FocusNavigationScope focusNavigationScopeOf(Node&); |
| 53 static FocusNavigationScope ownedByNonFocusableFocusScopeOwner(Node*); | 53 static FocusNavigationScope ownedByNonFocusableFocusScopeOwner(Node&); |
| 54 static FocusNavigationScope ownedByShadowHost(Node*); | 54 static FocusNavigationScope ownedByShadowHost(Node&); |
| 55 static FocusNavigationScope ownedByShadowInsertionPoint(HTMLShadowElement*); | 55 static FocusNavigationScope ownedByShadowInsertionPoint(HTMLShadowElement&); |
| 56 static FocusNavigationScope ownedByIFrame(HTMLFrameOwnerElement*); | 56 static FocusNavigationScope ownedByIFrame(HTMLFrameOwnerElement&); |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 explicit FocusNavigationScope(TreeScope*); | 59 explicit FocusNavigationScope(TreeScope*); |
| 60 RawPtrWillBeMember<TreeScope> m_rootTreeScope; | 60 RawPtrWillBeMember<TreeScope> m_rootTreeScope; |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 class FocusController final : public NoBaseWillBeGarbageCollectedFinalized<Focus
Controller> { | 63 class FocusController final : public NoBaseWillBeGarbageCollectedFinalized<Focus
Controller> { |
| 64 WTF_MAKE_NONCOPYABLE(FocusController); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOV
ED; | 64 WTF_MAKE_NONCOPYABLE(FocusController); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOV
ED; |
| 65 public: | 65 public: |
| 66 static PassOwnPtrWillBeRawPtr<FocusController> create(Page*); | 66 static PassOwnPtrWillBeRawPtr<FocusController> create(Page*); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 RawPtrWillBeMember<Page> m_page; | 116 RawPtrWillBeMember<Page> m_page; |
| 117 RefPtrWillBeMember<Frame> m_focusedFrame; | 117 RefPtrWillBeMember<Frame> m_focusedFrame; |
| 118 bool m_isActive; | 118 bool m_isActive; |
| 119 bool m_isFocused; | 119 bool m_isFocused; |
| 120 bool m_isChangingFocusedFrame; | 120 bool m_isChangingFocusedFrame; |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 } // namespace blink | 123 } // namespace blink |
| 124 | 124 |
| 125 #endif // FocusController_h | 125 #endif // FocusController_h |
| OLD | NEW |