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

Unified Diff: Source/core/input/EventHandler.h

Issue 1174933002: Implement ShadowRoot.delegatesFocus 2/4 (slide focus on mouse click) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 6 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: Source/core/input/EventHandler.h
diff --git a/Source/core/input/EventHandler.h b/Source/core/input/EventHandler.h
index eaeb5c42a41aef8dcf1907185af2e425cbfef142..1f6e8c0e2715590451970975ac97e5e98926feb5 100644
--- a/Source/core/input/EventHandler.h
+++ b/Source/core/input/EventHandler.h
@@ -328,6 +328,11 @@ private:
bool shouldTopControlsConsumeScroll(FloatSize) const;
+ // If the given element is a shadow host and its root has delegatesFocus=false flag,
+ // slide focus to its inner element. Returns true if the resulting focus is different from
+ // the given element.
+ bool slideFocusOnShadowHostIfNecessary(const Element&);
+
// NOTE: If adding a new field to this class please ensure that it is
// cleared in |EventHandler::clear()|.
« no previous file with comments | « LayoutTests/fast/dom/shadow/focus-slide-on-shadow-host-expected.txt ('k') | Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698