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

Unified Diff: Source/core/html/shadow/MediaControls.h

Issue 297783004: Implement heuristic for showing media controls during playback w/o a mouse (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: IgnoreSelfHover -> IgnoreVideoHover; Tweak comment. Created 6 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: Source/core/html/shadow/MediaControls.h
diff --git a/Source/core/html/shadow/MediaControls.h b/Source/core/html/shadow/MediaControls.h
index 7a93cecaf5b23576bc0063e27bd69a2615e035fa..7879662b3cb244a33adf79f8f289c2d8f0c0e523 100644
--- a/Source/core/html/shadow/MediaControls.h
+++ b/Source/core/html/shadow/MediaControls.h
@@ -66,6 +66,8 @@ public:
void updateTextTrackDisplay();
+ void mediaElementFocused();
+
virtual void trace(Visitor*) OVERRIDE;
private:
@@ -78,7 +80,12 @@ private:
void updatePlayState();
- bool shouldHideMediaControls();
+ enum HideBehaviorFlags {
+ IgnoreVideoHover = 1 << 0,
+ IgnoreFocus = 1 << 1
+ };
+
+ bool shouldHideMediaControls(unsigned behaviorFlags = 0) const;
void hideMediaControlsTimerFired(Timer<MediaControls>*);
void startHideMediaControlsTimer();
void stopHideMediaControlsTimer();

Powered by Google App Engine
This is Rietveld 408576698