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

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

Issue 291163004: Implement media cast buttons (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Reenable previously crashing tests - now fixed Created 6 years, 3 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/MediaControlElements.h
diff --git a/Source/core/html/shadow/MediaControlElements.h b/Source/core/html/shadow/MediaControlElements.h
index 10964c127f8cd50cdd746f35ca2607359d3faf22..5d4da8cf9c26b065e3a5fea2c56c42fbe9854ccf 100644
--- a/Source/core/html/shadow/MediaControlElements.h
+++ b/Source/core/html/shadow/MediaControlElements.h
@@ -82,6 +82,7 @@ public:
private:
explicit MediaControlOverlayEnclosureElement(MediaControls&);
virtual const AtomicString& shadowPseudoId() const OVERRIDE;
+ virtual void* preDispatchEventHandler(Event*) OVERRIDE;
};
// ----------------------------
@@ -189,6 +190,26 @@ private:
// ----------------------------
+class MediaControlCastButtonElement FINAL : public MediaControlInputElement {
+public:
+ static PassRefPtrWillBeRawPtr<MediaControlCastButtonElement> create(MediaControls&, bool isOverlayButton);
+
+ virtual bool willRespondToMouseClickEvents() OVERRIDE { return true; }
+
+ void setIsPlayingRemotely(bool);
+
+private:
+ explicit MediaControlCastButtonElement(MediaControls&, bool isOverlayButton);
+
+ virtual const AtomicString& shadowPseudoId() const OVERRIDE;
+ virtual void defaultEventHandler(Event*) OVERRIDE;
+ virtual bool keepEventInNode(Event*) OVERRIDE;
+
+ bool m_isOverlayButton;
+};
+
+// ----------------------------
+
class MediaControlVolumeSliderElement FINAL : public MediaControlInputElement {
public:
static PassRefPtrWillBeRawPtr<MediaControlVolumeSliderElement> create(MediaControls&);
« no previous file with comments | « Source/core/html/shadow/MediaControlElementTypes.h ('k') | Source/core/html/shadow/MediaControlElements.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698