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

Unified Diff: third_party/WebKit/Source/core/dom/AssignedElementTraversal.h

Issue 1707443003: Consider slots as a focus scope (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Implementing new traversal inside FocusController 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/AssignedElementTraversal.h
diff --git a/third_party/WebKit/Source/core/dom/AssignedElementTraversal.h b/third_party/WebKit/Source/core/dom/AssignedElementTraversal.h
new file mode 100644
index 0000000000000000000000000000000000000000..deaeb63da259ba11ae1a22b4f448f17459f9d5fd
--- /dev/null
+++ b/third_party/WebKit/Source/core/dom/AssignedElementTraversal.h
@@ -0,0 +1,22 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
kochi 2016/03/01 12:55:40 2016?
yuzuchan 2016/03/02 09:02:14 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef AssignedElementTraversal_h
+#define AssignedElementTraversal_h
+
+#include "core/dom/Element.h"
+#include "core/html/HTMLSlotElement.h"
+
+namespace blink {
kochi 2016/03/01 12:55:40 It would be enough to insert forward declarations
yuzuchan 2016/03/02 09:02:14 Done.
+class AssignedElementTraversal {
+public:
+ static HTMLSlotElement* slot(const Element& current);
+ static Element* assignedAncestor(const Element& current);
+ static Element* next(const Element& current);
+ static Element* previous(const Element& current);
+ static bool isInAssignedScope(const Element& current);
+};
+} // namespace blink
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698