| 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 21 matching lines...) Expand all Loading... |
| 32 #include "wtf/Forward.h" | 32 #include "wtf/Forward.h" |
| 33 #include "wtf/Noncopyable.h" | 33 #include "wtf/Noncopyable.h" |
| 34 #include "wtf/RefPtr.h" | 34 #include "wtf/RefPtr.h" |
| 35 | 35 |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 struct FocusCandidate; | 38 struct FocusCandidate; |
| 39 class Document; | 39 class Document; |
| 40 class Element; | 40 class Element; |
| 41 class LocalFrame; | 41 class LocalFrame; |
| 42 class HTMLShadowElement; | |
| 43 class IntRect; | 42 class IntRect; |
| 44 class KeyboardEvent; | 43 class KeyboardEvent; |
| 45 class Node; | 44 class Node; |
| 46 class Page; | 45 class Page; |
| 47 class TreeScope; | 46 class TreeScope; |
| 48 | 47 |
| 49 class FocusNavigationScope { | 48 class FocusNavigationScope { |
| 50 STACK_ALLOCATED(); | 49 STACK_ALLOCATED(); |
| 51 public: | 50 public: |
| 52 Node* rootNode() const; | 51 Node* rootNode() const; |
| 53 Element* owner() const; | 52 Element* owner() const; |
| 54 static FocusNavigationScope focusNavigationScopeOf(Node*); | 53 static FocusNavigationScope focusNavigationScopeOf(Node*); |
| 55 static FocusNavigationScope ownedByNonFocusableFocusScopeOwner(Node*); | 54 static FocusNavigationScope ownedByNonFocusableFocusScopeOwner(Node*); |
| 56 static FocusNavigationScope ownedByShadowHost(Node*); | 55 static FocusNavigationScope ownedByShadowHost(Node*); |
| 57 static FocusNavigationScope ownedByShadowInsertionPoint(HTMLShadowElement*); | |
| 58 | 56 |
| 59 private: | 57 private: |
| 60 explicit FocusNavigationScope(TreeScope*); | 58 explicit FocusNavigationScope(TreeScope*); |
| 61 RawPtr<TreeScope> m_rootTreeScope; | 59 RawPtr<TreeScope> m_rootTreeScope; |
| 62 }; | 60 }; |
| 63 | 61 |
| 64 class FocusController { | 62 class FocusController { |
| 65 WTF_MAKE_NONCOPYABLE(FocusController); WTF_MAKE_FAST_ALLOCATED; | 63 WTF_MAKE_NONCOPYABLE(FocusController); WTF_MAKE_FAST_ALLOCATED; |
| 66 public: | 64 public: |
| 67 static PassOwnPtr<FocusController> create(Page*); | 65 static PassOwnPtr<FocusController> create(Page*); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 Page* m_page; | 109 Page* m_page; |
| 112 RefPtr<LocalFrame> m_focusedFrame; | 110 RefPtr<LocalFrame> m_focusedFrame; |
| 113 bool m_isActive; | 111 bool m_isActive; |
| 114 bool m_isFocused; | 112 bool m_isFocused; |
| 115 bool m_isChangingFocusedFrame; | 113 bool m_isChangingFocusedFrame; |
| 116 }; | 114 }; |
| 117 | 115 |
| 118 } // namespace blink | 116 } // namespace blink |
| 119 | 117 |
| 120 #endif // FocusController_h | 118 #endif // FocusController_h |
| OLD | NEW |