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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 bool advanceFocus(WebFocusType type) { return advanceFocus(type, false); } | 59 bool advanceFocus(WebFocusType type) { return advanceFocus(type, false); } |
60 | 60 |
61 bool setFocusedElement(Element*, PassRefPtrWillBeRawPtr<Frame>, WebFocusType
= WebFocusTypeNone); | 61 bool setFocusedElement(Element*, PassRefPtrWillBeRawPtr<Frame>, WebFocusType
= WebFocusTypeNone); |
62 | 62 |
63 void setActive(bool); | 63 void setActive(bool); |
64 bool isActive() const { return m_isActive; } | 64 bool isActive() const { return m_isActive; } |
65 | 65 |
66 void setFocused(bool); | 66 void setFocused(bool); |
67 bool isFocused() const { return m_isFocused; } | 67 bool isFocused() const { return m_isFocused; } |
68 | 68 |
69 void trace(Visitor*); | 69 DECLARE_TRACE(); |
70 | 70 |
71 private: | 71 private: |
72 explicit FocusController(Page*); | 72 explicit FocusController(Page*); |
73 | 73 |
74 bool advanceFocus(WebFocusType, bool initialFocus); | 74 bool advanceFocus(WebFocusType, bool initialFocus); |
75 bool advanceFocusDirectionally(WebFocusType); | 75 bool advanceFocusDirectionally(WebFocusType); |
76 bool advanceFocusInDocumentOrder(WebFocusType, bool initialFocus); | 76 bool advanceFocusInDocumentOrder(WebFocusType, bool initialFocus); |
77 | 77 |
78 Node* findFocusableNodeAcrossFocusScopes(WebFocusType, const FocusNavigation
Scope&, Node*); | 78 Node* findFocusableNodeAcrossFocusScopes(WebFocusType, const FocusNavigation
Scope&, Node*); |
79 Node* findFocusableNodeAcrossFocusScopesForward(const FocusNavigationScope&,
Node*); | 79 Node* findFocusableNodeAcrossFocusScopesForward(const FocusNavigationScope&,
Node*); |
(...skipping 22 matching lines...) Expand all Loading... |
102 RawPtrWillBeMember<Page> m_page; | 102 RawPtrWillBeMember<Page> m_page; |
103 RefPtrWillBeMember<Frame> m_focusedFrame; | 103 RefPtrWillBeMember<Frame> m_focusedFrame; |
104 bool m_isActive; | 104 bool m_isActive; |
105 bool m_isFocused; | 105 bool m_isFocused; |
106 bool m_isChangingFocusedFrame; | 106 bool m_isChangingFocusedFrame; |
107 }; | 107 }; |
108 | 108 |
109 } // namespace blink | 109 } // namespace blink |
110 | 110 |
111 #endif // FocusController_h | 111 #endif // FocusController_h |
OLD | NEW |