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

Unified Diff: Source/core/dom/ElementFullscreen.h

Issue 449133003: Move Web-facing fullscreen APIs to DocumentFullscreen and ElementFullscreen (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 4 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
« no previous file with comments | « Source/core/dom/Element.idl ('k') | Source/core/dom/ElementFullscreen.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ElementFullscreen.h
diff --git a/Source/core/dom/ElementFullscreen.h b/Source/core/dom/ElementFullscreen.h
new file mode 100644
index 0000000000000000000000000000000000000000..9521b44c5e84b23ede3adfab2e81e0fe7956f34d
--- /dev/null
+++ b/Source/core/dom/ElementFullscreen.h
@@ -0,0 +1,29 @@
+// Copyright 2014 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 ElementFullscreen_h
+#define ElementFullscreen_h
+
+#include "core/events/EventTarget.h"
+
+namespace blink {
+
+class Element;
+
+class ElementFullscreen {
+public:
+ // Mozilla version
+ static const unsigned short ALLOW_KEYBOARD_INPUT = 1;
+ static void webkitRequestFullScreen(Element&, unsigned short flags);
+
+ // W3C version
+ static void webkitRequestFullscreen(Element&);
+
+ DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(webkitfullscreenchange);
+ DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(webkitfullscreenerror);
+};
+
+} // namespace blink
+
+#endif // ElementFullscreen_h
« no previous file with comments | « Source/core/dom/Element.idl ('k') | Source/core/dom/ElementFullscreen.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698