Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(448)

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.h

Issue 1718153002: Implement 'sequential focus navigation starting point.' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Actual fix for non-oilpan test failures Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 void setSelectedStylesheetSet(const String&); 595 void setSelectedStylesheetSet(const String&);
596 596
597 bool setFocusedElement(PassRefPtrWillBeRawPtr<Element>, const FocusParams&); 597 bool setFocusedElement(PassRefPtrWillBeRawPtr<Element>, const FocusParams&);
598 void clearFocusedElement(); 598 void clearFocusedElement();
599 Element* focusedElement() const { return m_focusedElement.get(); } 599 Element* focusedElement() const { return m_focusedElement.get(); }
600 UserActionElementSet& userActionElements() { return m_userActionElements; } 600 UserActionElementSet& userActionElements() { return m_userActionElements; }
601 const UserActionElementSet& userActionElements() const { return m_userAction Elements; } 601 const UserActionElementSet& userActionElements() const { return m_userAction Elements; }
602 void setNeedsFocusedElementCheck(); 602 void setNeedsFocusedElementCheck();
603 void setAutofocusElement(Element*); 603 void setAutofocusElement(Element*);
604 Element* autofocusElement() const { return m_autofocusElement.get(); } 604 Element* autofocusElement() const { return m_autofocusElement.get(); }
605 void setSequentialFocusNavigationStartingPoint(Node*);
606 Element* sequentialFocusNavigationStartingPoint(WebFocusType) const;
605 607
606 void setActiveHoverElement(PassRefPtrWillBeRawPtr<Element>); 608 void setActiveHoverElement(PassRefPtrWillBeRawPtr<Element>);
607 Element* activeHoverElement() const { return m_activeHoverElement.get(); } 609 Element* activeHoverElement() const { return m_activeHoverElement.get(); }
608 610
609 Node* hoverNode() const { return m_hoverNode.get(); } 611 Node* hoverNode() const { return m_hoverNode.get(); }
610 612
611 void removeFocusedElementOfSubtree(Node*, bool amongChildrenOnly = false); 613 void removeFocusedElementOfSubtree(Node*, bool amongChildrenOnly = false);
612 void hoveredNodeDetached(Element&); 614 void hoveredNodeDetached(Element&);
613 void activeChainNodeDetached(Element&); 615 void activeChainNodeDetached(Element&);
614 616
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
1211 1213
1212 CompatibilityMode m_compatibilityMode; 1214 CompatibilityMode m_compatibilityMode;
1213 bool m_compatibilityModeLocked; // This is cheaper than making setCompatibil ityMode virtual. 1215 bool m_compatibilityModeLocked; // This is cheaper than making setCompatibil ityMode virtual.
1214 1216
1215 OwnPtr<CancellableTaskFactory> m_executeScriptsWaitingForResourcesTask; 1217 OwnPtr<CancellableTaskFactory> m_executeScriptsWaitingForResourcesTask;
1216 1218
1217 bool m_hasAutofocused; 1219 bool m_hasAutofocused;
1218 Timer<Document> m_clearFocusedElementTimer; 1220 Timer<Document> m_clearFocusedElementTimer;
1219 RefPtrWillBeMember<Element> m_autofocusElement; 1221 RefPtrWillBeMember<Element> m_autofocusElement;
1220 RefPtrWillBeMember<Element> m_focusedElement; 1222 RefPtrWillBeMember<Element> m_focusedElement;
1223 RefPtrWillBeMember<Range> m_sequentialFocusNavigationStartingPoint;
sof 2016/02/25 12:49:54 Doesn't this risk creating a leak, with the Range
1221 RefPtrWillBeMember<Node> m_hoverNode; 1224 RefPtrWillBeMember<Node> m_hoverNode;
1222 RefPtrWillBeMember<Element> m_activeHoverElement; 1225 RefPtrWillBeMember<Element> m_activeHoverElement;
1223 RefPtrWillBeMember<Element> m_documentElement; 1226 RefPtrWillBeMember<Element> m_documentElement;
1224 UserActionElementSet m_userActionElements; 1227 UserActionElementSet m_userActionElements;
1225 1228
1226 uint64_t m_domTreeVersion; 1229 uint64_t m_domTreeVersion;
1227 static uint64_t s_globalTreeVersion; 1230 static uint64_t s_globalTreeVersion;
1228 1231
1229 uint64_t m_styleVersion; 1232 uint64_t m_styleVersion;
1230 1233
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
1445 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1448 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1446 1449
1447 } // namespace blink 1450 } // namespace blink
1448 1451
1449 #ifndef NDEBUG 1452 #ifndef NDEBUG
1450 // Outside the WebCore namespace for ease of invocation from gdb. 1453 // Outside the WebCore namespace for ease of invocation from gdb.
1451 CORE_EXPORT void showLiveDocumentInstances(); 1454 CORE_EXPORT void showLiveDocumentInstances();
1452 #endif 1455 #endif
1453 1456
1454 #endif // Document_h 1457 #endif // Document_h
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/svg/custom/tabindex-order-expected.txt ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698