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

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

Issue 2382233002: Hide overflow menu/closed caption list when clicking outside the list (Closed)
Patch Set: applied Mounir's comments Created 4 years, 2 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/shadow/MediaControls.h
diff --git a/third_party/WebKit/Source/core/html/shadow/MediaControls.h b/third_party/WebKit/Source/core/html/shadow/MediaControls.h
index 0871204bcfb7a8994e4ce812b17b014d0b87d3b6..971d02e84664e19e947de5260b08dcdbf31ad729 100644
--- a/third_party/WebKit/Source/core/html/shadow/MediaControls.h
+++ b/third_party/WebKit/Source/core/html/shadow/MediaControls.h
@@ -34,6 +34,7 @@ namespace blink {
class Event;
class TextTrackContainer;
+class MediaControlsWindowEventListener;
class CORE_EXPORT MediaControls final : public HTMLDivElement {
public:
@@ -121,6 +122,8 @@ class CORE_EXPORT MediaControls final : public HTMLDivElement {
void panelWidthChangedTimerFired(TimerBase*);
+ void hideAllMenus();
+
// Hide elements that don't fit, and show those things that we want which
// do fit. This requires that m_panelWidth is current.
void computeWhichControlsFit();
@@ -155,6 +158,8 @@ class CORE_EXPORT MediaControls final : public HTMLDivElement {
Member<MediaControlFullscreenButtonElement> m_fullscreenButton;
Member<MediaControlDownloadButtonElement> m_downloadButton;
+ Member<MediaControlsWindowEventListener> m_windowEventListener;
+
Timer<MediaControls> m_hideMediaControlsTimer;
unsigned m_hideTimerBehaviorFlags;
bool m_isMouseOverControls : 1;

Powered by Google App Engine
This is Rietveld 408576698