| 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 HTMLFrameOwnerElement* focusedFrameOwnerElement(LocalFrame& currentFrame) co
nst; | 64 HTMLFrameOwnerElement* focusedFrameOwnerElement(LocalFrame& currentFrame) co
nst; |
| 65 | 65 |
| 66 // Determines whether the provided Document has focus according to | 66 // Determines whether the provided Document has focus according to |
| 67 // http://www.w3.org/TR/html5/editing.html#dom-document-hasfocus | 67 // http://www.w3.org/TR/html5/editing.html#dom-document-hasfocus |
| 68 bool isDocumentFocused(const Document&) const; | 68 bool isDocumentFocused(const Document&) const; |
| 69 | 69 |
| 70 bool setInitialFocus(WebFocusType); | 70 bool setInitialFocus(WebFocusType); |
| 71 bool advanceFocus(WebFocusType type, InputDeviceCapabilities* sourceCapabili
ties = nullptr) { return advanceFocus(type, false, sourceCapabilities); } | 71 bool advanceFocus(WebFocusType type, InputDeviceCapabilities* sourceCapabili
ties = nullptr) { return advanceFocus(type, false, sourceCapabilities); } |
| 72 bool advanceFocusAcrossFrames(WebFocusType, RemoteFrame* from, LocalFrame* t
o, InputDeviceCapabilities* sourceCapabilities = nullptr); | 72 bool advanceFocusAcrossFrames(WebFocusType, RemoteFrame* from, LocalFrame* t
o, InputDeviceCapabilities* sourceCapabilities = nullptr); |
| 73 Element* findFocusableElementInShadowHost(const Element& shadowHost); | 73 Element* findFocusableElementInShadowHost(const Element& shadowHost); |
| 74 Element* getCurrentElementForFocusNavigation(WebFocusType type); |
| 75 Element* findNextFocusableElementInDocumentOrder(); |
| 74 | 76 |
| 75 bool setFocusedElement(Element*, Frame*, const FocusParams&); | 77 bool setFocusedElement(Element*, Frame*, const FocusParams&); |
| 76 // |setFocusedElement| variant with SelectionBehaviorOnFocus::None, | 78 // |setFocusedElement| variant with SelectionBehaviorOnFocus::None, |
| 77 // |WebFocusTypeNone, and null InputDeviceCapabilities. | 79 // |WebFocusTypeNone, and null InputDeviceCapabilities. |
| 78 bool setFocusedElement(Element*, Frame*); | 80 bool setFocusedElement(Element*, Frame*); |
| 79 | 81 |
| 80 void setActive(bool); | 82 void setActive(bool); |
| 81 bool isActive() const { return m_isActive; } | 83 bool isActive() const { return m_isActive; } |
| 82 | 84 |
| 83 void setFocused(bool); | 85 void setFocused(bool); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 100 Member<Page> m_page; | 102 Member<Page> m_page; |
| 101 Member<Frame> m_focusedFrame; | 103 Member<Frame> m_focusedFrame; |
| 102 bool m_isActive; | 104 bool m_isActive; |
| 103 bool m_isFocused; | 105 bool m_isFocused; |
| 104 bool m_isChangingFocusedFrame; | 106 bool m_isChangingFocusedFrame; |
| 105 }; | 107 }; |
| 106 | 108 |
| 107 } // namespace blink | 109 } // namespace blink |
| 108 | 110 |
| 109 #endif // FocusController_h | 111 #endif // FocusController_h |
| OLD | NEW |