| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 bool advanceFocus(FocusType type) { return advanceFocus(type, false); } | 74 bool advanceFocus(FocusType type) { return advanceFocus(type, false); } |
| 75 | 75 |
| 76 bool setFocusedElement(Element*, PassRefPtr<Frame>, FocusType = FocusTypeNon
e); | 76 bool setFocusedElement(Element*, PassRefPtr<Frame>, FocusType = FocusTypeNon
e); |
| 77 | 77 |
| 78 void setActive(bool); | 78 void setActive(bool); |
| 79 bool isActive() const { return m_isActive; } | 79 bool isActive() const { return m_isActive; } |
| 80 | 80 |
| 81 void setFocused(bool); | 81 void setFocused(bool); |
| 82 bool isFocused() const { return m_isFocused; } | 82 bool isFocused() const { return m_isFocused; } |
| 83 | 83 |
| 84 void setContainingWindowIsVisible(bool); | |
| 85 bool containingWindowIsVisible() const { return m_containingWindowIsVisible;
} | |
| 86 | |
| 87 private: | 84 private: |
| 88 explicit FocusController(Page*); | 85 explicit FocusController(Page*); |
| 89 | 86 |
| 90 bool advanceFocus(FocusType, bool initialFocus); | 87 bool advanceFocus(FocusType, bool initialFocus); |
| 91 bool advanceFocusDirectionally(FocusType); | 88 bool advanceFocusDirectionally(FocusType); |
| 92 bool advanceFocusInDocumentOrder(FocusType, bool initialFocus); | 89 bool advanceFocusInDocumentOrder(FocusType, bool initialFocus); |
| 93 | 90 |
| 94 Node* findFocusableNodeAcrossFocusScope(FocusType, FocusNavigationScope star
tScope, Node* start); | 91 Node* findFocusableNodeAcrossFocusScope(FocusType, FocusNavigationScope star
tScope, Node* start); |
| 95 Node* findFocusableNodeRecursively(FocusType, FocusNavigationScope, Node* st
art); | 92 Node* findFocusableNodeRecursively(FocusType, FocusNavigationScope, Node* st
art); |
| 96 Node* findFocusableNodeDecendingDownIntoFrameDocument(FocusType, Node*); | 93 Node* findFocusableNodeDecendingDownIntoFrameDocument(FocusType, Node*); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 112 Node* findNodeWithExactTabIndex(Node* start, int tabIndex, FocusType); | 109 Node* findNodeWithExactTabIndex(Node* start, int tabIndex, FocusType); |
| 113 | 110 |
| 114 bool advanceFocusDirectionallyInContainer(Node* container, const LayoutRect&
startingRect, FocusType); | 111 bool advanceFocusDirectionallyInContainer(Node* container, const LayoutRect&
startingRect, FocusType); |
| 115 void findFocusCandidateInContainer(Node& container, const LayoutRect& starti
ngRect, FocusType, FocusCandidate& closest); | 112 void findFocusCandidateInContainer(Node& container, const LayoutRect& starti
ngRect, FocusType, FocusCandidate& closest); |
| 116 | 113 |
| 117 Page* m_page; | 114 Page* m_page; |
| 118 RefPtr<Frame> m_focusedFrame; | 115 RefPtr<Frame> m_focusedFrame; |
| 119 bool m_isActive; | 116 bool m_isActive; |
| 120 bool m_isFocused; | 117 bool m_isFocused; |
| 121 bool m_isChangingFocusedFrame; | 118 bool m_isChangingFocusedFrame; |
| 122 bool m_containingWindowIsVisible; | |
| 123 | |
| 124 }; | 119 }; |
| 125 | 120 |
| 126 } // namespace WebCore | 121 } // namespace WebCore |
| 127 | 122 |
| 128 #endif // FocusController_h | 123 #endif // FocusController_h |
| OLD | NEW |