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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 WTF_MAKE_NONCOPYABLE(FocusController); WTF_MAKE_FAST_ALLOCATED; | 62 WTF_MAKE_NONCOPYABLE(FocusController); WTF_MAKE_FAST_ALLOCATED; |
63 public: | 63 public: |
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, KeyboardEvent*); | 70 bool setInitialFocus(FocusDirection, KeyboardEvent*); |
71 bool advanceFocus(FocusDirection, KeyboardEvent*, bool initialFocus = false)
; | 71 bool advanceFocus(FocusDirection, KeyboardEvent*, bool initialFocus = false)
; |
72 | 72 bool handleCSSFocusNavigation(FocusDirection); |
| 73 |
73 bool setFocusedNode(Node*, PassRefPtr<Frame>, FocusDirection = FocusDirectio
nNone); | 74 bool setFocusedNode(Node*, PassRefPtr<Frame>, FocusDirection = FocusDirectio
nNone); |
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;
} |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 bool m_isActive; | 116 bool m_isActive; |
116 bool m_isFocused; | 117 bool m_isFocused; |
117 bool m_isChangingFocusedFrame; | 118 bool m_isChangingFocusedFrame; |
118 bool m_containingWindowIsVisible; | 119 bool m_containingWindowIsVisible; |
119 | 120 |
120 }; | 121 }; |
121 | 122 |
122 } // namespace WebCore | 123 } // namespace WebCore |
123 | 124 |
124 #endif // FocusController_h | 125 #endif // FocusController_h |
OLD | NEW |