Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / Source / core / dom / ElementFullscreen.h
blob73b5207b56e9cf8c146874f285305de0fb1ea193
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef ElementFullscreen_h
6 #define ElementFullscreen_h
8 #include "core/events/EventTarget.h"
9 #include "wtf/Allocator.h"
11 namespace blink {
13 class Element;
15 class ElementFullscreen {
16 STATIC_ONLY(ElementFullscreen);
17 public:
18 static void requestFullscreen(Element&);
20 static void webkitRequestFullscreen(Element&);
22 DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(webkitfullscreenchange);
23 DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(webkitfullscreenerror);
26 } // namespace blink
28 #endif // ElementFullscreen_h