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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLSlotElement.h

Issue 1848753002: Consider slots' tabindex in focus navigation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactor Created 4 years, 8 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) 2015 Google Inc. All rights reserved. 2 * Copyright (C) 2015 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 bool hasSlotChangeEventListener(); 61 bool hasSlotChangeEventListener();
62 62
63 void updateDistributedNodesWithFallback(); 63 void updateDistributedNodesWithFallback();
64 void didUpdateDistribution(); 64 void didUpdateDistribution();
65 65
66 void attach(const AttachContext& = AttachContext()) final; 66 void attach(const AttachContext& = AttachContext()) final;
67 void detach(const AttachContext& = AttachContext()) final; 67 void detach(const AttachContext& = AttachContext()) final;
68 68
69 void attributeChanged(const QualifiedName&, const AtomicString& oldValue, co nst AtomicString& newValue, AttributeModificationReason = ModifiedDirectly) fina l; 69 void attributeChanged(const QualifiedName&, const AtomicString& oldValue, co nst AtomicString& newValue, AttributeModificationReason = ModifiedDirectly) fina l;
70 70
71 short tabIndex() const override;
72
71 DECLARE_VIRTUAL_TRACE(); 73 DECLARE_VIRTUAL_TRACE();
72 74
73 private: 75 private:
74 HTMLSlotElement(Document&); 76 HTMLSlotElement(Document&);
75 77
76 enum DistributionState { 78 enum DistributionState {
77 DistributionOnGoing, 79 DistributionOnGoing,
78 DistributionDone, 80 DistributionDone,
79 DistributionChanged, 81 DistributionChanged,
80 DistributionUnchanged 82 DistributionUnchanged
(...skipping 12 matching lines...) Expand all
93 WillBeHeapVector<RefPtrWillBeMember<Node>> m_distributedNodes; 95 WillBeHeapVector<RefPtrWillBeMember<Node>> m_distributedNodes;
94 WillBeHeapHashMap<RawPtrWillBeMember<const Node>, size_t> m_distributedIndic es; 96 WillBeHeapHashMap<RawPtrWillBeMember<const Node>, size_t> m_distributedIndic es;
95 // TODO(hayato): Remove m_oldDistibutedNodes and make SlotAssignment check t he diffirence between old and new distributed nodes for each slot to save the me mories. 97 // TODO(hayato): Remove m_oldDistibutedNodes and make SlotAssignment check t he diffirence between old and new distributed nodes for each slot to save the me mories.
96 WillBeHeapVector<RefPtrWillBeMember<Node>> m_oldDistributedNodes; 98 WillBeHeapVector<RefPtrWillBeMember<Node>> m_oldDistributedNodes;
97 DistributionState m_distributionState; 99 DistributionState m_distributionState;
98 }; 100 };
99 101
100 } // namespace blink 102 } // namespace blink
101 103
102 #endif // HTMLSlotElement_h 104 #endif // HTMLSlotElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698