| 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 * Copyright (C) 2013, 2014 Opera Software ASA. All rights reserved. |
| 4 * Copyright (C) 2016 Samsung Electronics. All rights reserved. |
| 3 * | 5 * |
| 4 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 6 * are met: | 8 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 11 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 12 * notice, this list of conditions and the following disclaimer in the |
| 11 * documentation and/or other materials provided with the distribution. | 13 * documentation and/or other materials provided with the distribution. |
| 12 * | 14 * |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // one of its descendant frames, is currently focused. | 65 // one of its descendant frames, is currently focused. |
| 64 HTMLFrameOwnerElement* focusedFrameOwnerElement(LocalFrame& currentFrame) co
nst; | 66 HTMLFrameOwnerElement* focusedFrameOwnerElement(LocalFrame& currentFrame) co
nst; |
| 65 | 67 |
| 66 // Determines whether the provided Document has focus according to | 68 // Determines whether the provided Document has focus according to |
| 67 // http://www.w3.org/TR/html5/editing.html#dom-document-hasfocus | 69 // http://www.w3.org/TR/html5/editing.html#dom-document-hasfocus |
| 68 bool isDocumentFocused(const Document&) const; | 70 bool isDocumentFocused(const Document&) const; |
| 69 | 71 |
| 70 bool setInitialFocus(WebFocusType); | 72 bool setInitialFocus(WebFocusType); |
| 71 bool advanceFocus(WebFocusType type, InputDeviceCapabilities* sourceCapabili
ties = nullptr) { return advanceFocus(type, false, sourceCapabilities); } | 73 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); | 74 bool advanceFocusAcrossFrames(WebFocusType, RemoteFrame* from, LocalFrame* t
o, InputDeviceCapabilities* sourceCapabilities = nullptr); |
| 75 bool advanceCSSNavigationFocus(WebFocusType); |
| 73 Element* findFocusableElementInShadowHost(const Element& shadowHost); | 76 Element* findFocusableElementInShadowHost(const Element& shadowHost); |
| 74 | 77 |
| 75 bool setFocusedElement(Element*, RawPtr<Frame>, const FocusParams&); | 78 bool setFocusedElement(Element*, RawPtr<Frame>, const FocusParams&); |
| 76 // |setFocusedElement| variant with SelectionBehaviorOnFocus::None, | 79 // |setFocusedElement| variant with SelectionBehaviorOnFocus::None, |
| 77 // |WebFocusTypeNone, and null InputDeviceCapabilities. | 80 // |WebFocusTypeNone, and null InputDeviceCapabilities. |
| 78 bool setFocusedElement(Element*, RawPtr<Frame>); | 81 bool setFocusedElement(Element*, RawPtr<Frame>); |
| 79 | 82 |
| 80 void setActive(bool); | 83 void setActive(bool); |
| 81 bool isActive() const { return m_isActive; } | 84 bool isActive() const { return m_isActive; } |
| 82 | 85 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 100 Member<Page> m_page; | 103 Member<Page> m_page; |
| 101 Member<Frame> m_focusedFrame; | 104 Member<Frame> m_focusedFrame; |
| 102 bool m_isActive; | 105 bool m_isActive; |
| 103 bool m_isFocused; | 106 bool m_isFocused; |
| 104 bool m_isChangingFocusedFrame; | 107 bool m_isChangingFocusedFrame; |
| 105 }; | 108 }; |
| 106 | 109 |
| 107 } // namespace blink | 110 } // namespace blink |
| 108 | 111 |
| 109 #endif // FocusController_h | 112 #endif // FocusController_h |
| OLD | NEW |