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

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

Issue 2477203002: Media Controls: delegate 'volumechange' and 'focusin' handling to an EventListener. (Closed)
Patch Set: add comment Created 4 years, 1 month 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/MediaControlsMediaEventListener.h
diff --git a/third_party/WebKit/Source/core/html/shadow/MediaControlsMediaEventListener.h b/third_party/WebKit/Source/core/html/shadow/MediaControlsMediaEventListener.h
new file mode 100644
index 0000000000000000000000000000000000000000..016c70352b66b99846ccda318156a3ed667f9718
--- /dev/null
+++ b/third_party/WebKit/Source/core/html/shadow/MediaControlsMediaEventListener.h
@@ -0,0 +1,30 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MediaControlsMediaEventListener_h
+#define MediaControlsMediaEventListener_h
+
+#include "core/events/EventListener.h"
+
+namespace blink {
+
+class MediaControls;
+
+class MediaControlsMediaEventListener final : public EventListener {
+ public:
+ explicit MediaControlsMediaEventListener(MediaControls*);
+
+ bool operator==(const EventListener&) const override;
+
+ DECLARE_VIRTUAL_TRACE();
+
+ private:
+ void handleEvent(ExecutionContext*, Event*) override;
+
+ Member<MediaControls> m_mediaControls;
+};
+
+} // namespace blink
+
+#endif // MediaControlsMediaEventListener_h

Powered by Google App Engine
This is Rietveld 408576698