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

Unified Diff: third_party/WebKit/Source/core/html/HTMLElement.cpp

Issue 2700663002: Adds keyboard functionality for videos. (Closed)
Patch Set: Add spatial nav check. Created 3 years, 7 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/html/HTMLElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLElement.cpp b/third_party/WebKit/Source/core/html/HTMLElement.cpp
index e532670190f77722ec7c91dde98b7b54d088977f..b39d04e20cd291a7c4012ac9efbcb9da8bf7d4e8 100644
--- a/third_party/WebKit/Source/core/html/HTMLElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLElement.cpp
@@ -929,6 +929,10 @@ Node::InsertionNotificationRequest HTMLElement::InsertedInto(
return kInsertionDone;
}
+bool HTMLElement::IsSpatialNavigationActive() {
+ return IsSpatialNavigationEnabled(GetDocument().GetFrame());
mlamouri (slow - plz ping) 2017/05/24 08:49:15 Maybe just make this call in MediaControlsImpl ins
lethalantidote 2017/05/24 18:46:08 Tried doing that. It's not directly accessible due
mlamouri (slow - plz ping) 2017/05/30 10:22:41 I think you would simply need to add CORE_EXPORT t
lethalantidote 2017/05/30 19:48:12 Done. The example was very helpful to me.
+}
+
void HTMLElement::AddHTMLLengthToStyle(MutableStylePropertySet* style,
CSSPropertyID property_id,
const String& value,

Powered by Google App Engine
This is Rietveld 408576698