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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 static PassOwnPtrWillBeRawPtr<FocusController> create(Page*); | 52 static PassOwnPtrWillBeRawPtr<FocusController> create(Page*); |
53 | 53 |
54 void setFocusedFrame(PassRefPtrWillBeRawPtr<Frame>); | 54 void setFocusedFrame(PassRefPtrWillBeRawPtr<Frame>); |
55 void focusDocumentView(PassRefPtrWillBeRawPtr<Frame>); | 55 void focusDocumentView(PassRefPtrWillBeRawPtr<Frame>); |
56 Frame* focusedFrame() const { return m_focusedFrame.get(); } | 56 Frame* focusedFrame() const { return m_focusedFrame.get(); } |
57 Frame* focusedOrMainFrame() const; | 57 Frame* focusedOrMainFrame() const; |
58 | 58 |
59 bool setInitialFocus(WebFocusType); | 59 bool setInitialFocus(WebFocusType); |
60 bool advanceFocus(WebFocusType type) { return advanceFocus(type, false); } | 60 bool advanceFocus(WebFocusType type) { return advanceFocus(type, false); } |
61 Node* findFocusableNode(WebFocusType, Node&); | 61 Node* findFocusableNode(WebFocusType, Node&); |
| 62 Node* findFocusableNode(WebFocusType, Node*, Node&); |
62 | 63 |
63 bool setFocusedElement(Element*, PassRefPtrWillBeRawPtr<Frame>, WebFocusType
= WebFocusTypeNone); | 64 bool setFocusedElement(Element*, PassRefPtrWillBeRawPtr<Frame>, WebFocusType
= WebFocusTypeNone); |
64 | 65 |
65 void setActive(bool); | 66 void setActive(bool); |
66 bool isActive() const { return m_isActive; } | 67 bool isActive() const { return m_isActive; } |
67 | 68 |
68 void setFocused(bool); | 69 void setFocused(bool); |
69 bool isFocused() const { return m_isFocused; } | 70 bool isFocused() const { return m_isFocused; } |
70 | 71 |
71 DECLARE_TRACE(); | 72 DECLARE_TRACE(); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 RawPtrWillBeMember<Page> m_page; | 109 RawPtrWillBeMember<Page> m_page; |
109 RefPtrWillBeMember<Frame> m_focusedFrame; | 110 RefPtrWillBeMember<Frame> m_focusedFrame; |
110 bool m_isActive; | 111 bool m_isActive; |
111 bool m_isFocused; | 112 bool m_isFocused; |
112 bool m_isChangingFocusedFrame; | 113 bool m_isChangingFocusedFrame; |
113 }; | 114 }; |
114 | 115 |
115 } // namespace blink | 116 } // namespace blink |
116 | 117 |
117 #endif // FocusController_h | 118 #endif // FocusController_h |
OLD | NEW |