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

Unified Diff: third_party/WebKit/Source/modules/media_controls/elements/MediaControlFullscreenButtonElement.h

Issue 2820633003: Media Controls: move simple buttons to modules/. (Closed)
Patch Set: Created 3 years, 8 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/modules/media_controls/elements/MediaControlFullscreenButtonElement.h
diff --git a/third_party/WebKit/Source/modules/media_controls/elements/MediaControlFullscreenButtonElement.h b/third_party/WebKit/Source/modules/media_controls/elements/MediaControlFullscreenButtonElement.h
new file mode 100644
index 0000000000000000000000000000000000000000..ca4d990412425a4a91f6d60b5fed07d8cd089556
--- /dev/null
+++ b/third_party/WebKit/Source/modules/media_controls/elements/MediaControlFullscreenButtonElement.h
@@ -0,0 +1,35 @@
+// Copyright 2017 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 MediaControlFullscreenButtonElement_h
+#define MediaControlFullscreenButtonElement_h
+
+#include "core/html/shadow/MediaControlElementTypes.h"
+
+namespace blink {
+
+class Event;
+class MediaControlsImpl;
+
+class MediaControlFullscreenButtonElement final
+ : public MediaControlInputElement {
+ public:
+ explicit MediaControlFullscreenButtonElement(MediaControlsImpl&);
+
+ // TODO(mlamouri): this should be changed to UpdateDisplayType().
+ void SetIsFullscreen(bool);
+
+ // MediaControlInputElement overrides.
+ bool WillRespondToMouseClickEvents() override;
+ WebLocalizedString::Name GetOverflowStringName() override;
+ bool HasOverflowButton() override;
+
+ private:
+ void DefaultEventHandler(Event*) override;
+ void RecordClickMetrics();
+};
+
+} // namespace blink
+
+#endif // MediaControlFullscreenButtonElement_h

Powered by Google App Engine
This is Rietveld 408576698