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

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: Rebase to fix merge problem with TestExpectations 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..cbf6899d6a6df0785cfe590fdb8a90c9862f672f 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;
+ void* preDispatchEventHandler(Event*) OVERRIDE;
Peter Beverloo 2014/09/15 12:59:38 +virtual
aberent 2014/09/16 09:44:18 Done.
};
// ----------------------------
@@ -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&);

Powered by Google App Engine
This is Rietveld 408576698