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

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

Issue 2414653002: [MediaControls] Hide menus when clicking on some MediaControl elements (Closed)
Patch Set: 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 6c1ba2e91a9f6f5fe23fb689b403b37fcfdd0391..a450161efaad814b31b4cecaa777d482e4e12722 100644
--- a/third_party/WebKit/Source/core/html/shadow/MediaControls.h
+++ b/third_party/WebKit/Source/core/html/shadow/MediaControls.h
@@ -81,6 +81,15 @@ class CORE_EXPORT MediaControls final : public HTMLDivElement {
// used for overlap checking during text track layout. May be null.
LayoutObject* layoutObjectForTextTrackLayout();
+ // Return the internal elements, which is used by registering clicking
+ // EventHandlers from MediaControlsWindowEventListener.
+ MediaControlPanelElement* panelElement() { return m_panel; }
+ MediaControlTimelineElement* timelineElement() { return m_timeline; }
+ MediaControlCastButtonElement* castButtonElement() { return m_castButton; }
+ MediaControlVolumeSliderElement* volumeSliderElement() {
+ return m_volumeSlider;
+ }
+
// Notify us that our controls enclosure has changed width.
void notifyPanelWidthChanged(const LayoutUnit& newWidth);

Powered by Google App Engine
This is Rietveld 408576698