| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 static PassOwnPtr<FocusController> create(Page*); | 64 static PassOwnPtr<FocusController> create(Page*); |
| 65 | 65 |
| 66 void setFocusedFrame(PassRefPtr<Frame>); | 66 void setFocusedFrame(PassRefPtr<Frame>); |
| 67 Frame* focusedFrame() const { return m_focusedFrame.get(); } | 67 Frame* focusedFrame() const { return m_focusedFrame.get(); } |
| 68 Frame* focusedOrMainFrame() const; | 68 Frame* focusedOrMainFrame() const; |
| 69 | 69 |
| 70 bool setInitialFocus(FocusDirection); | 70 bool setInitialFocus(FocusDirection); |
| 71 bool advanceFocus(FocusDirection direction) { return advanceFocus(direction,
false); } | 71 bool advanceFocus(FocusDirection direction) { return advanceFocus(direction,
false); } |
| 72 | 72 |
| 73 bool setFocusedElement(Element*, PassRefPtr<Frame>, FocusDirection = FocusDi
rectionNone); | 73 bool setFocusedElement(Element*, PassRefPtr<Frame>, FocusDirection = FocusDi
rectionNone); |
| 74 bool handleCSSFocusNavigation(FocusDirection); |
| 74 | 75 |
| 75 void setActive(bool); | 76 void setActive(bool); |
| 76 bool isActive() const { return m_isActive; } | 77 bool isActive() const { return m_isActive; } |
| 77 | 78 |
| 78 void setFocused(bool); | 79 void setFocused(bool); |
| 79 bool isFocused() const { return m_isFocused; } | 80 bool isFocused() const { return m_isFocused; } |
| 80 | 81 |
| 81 void setContainingWindowIsVisible(bool); | 82 void setContainingWindowIsVisible(bool); |
| 82 bool containingWindowIsVisible() const { return m_containingWindowIsVisible;
} | 83 bool containingWindowIsVisible() const { return m_containingWindowIsVisible;
} |
| 83 | 84 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 bool m_isActive; | 117 bool m_isActive; |
| 117 bool m_isFocused; | 118 bool m_isFocused; |
| 118 bool m_isChangingFocusedFrame; | 119 bool m_isChangingFocusedFrame; |
| 119 bool m_containingWindowIsVisible; | 120 bool m_containingWindowIsVisible; |
| 120 | 121 |
| 121 }; | 122 }; |
| 122 | 123 |
| 123 } // namespace WebCore | 124 } // namespace WebCore |
| 124 | 125 |
| 125 #endif // FocusController_h | 126 #endif // FocusController_h |
| OLD | NEW |