blob: 9f5fd91ebdfbdbf5641c84547f43f8ba46d21a98 [file] [log] [blame]
// Copyright 2018 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 THIRD_PARTY_BLINK_RENDERER_MODULES_PICTURE_IN_PICTURE_HTML_VIDEO_ELEMENT_PICTURE_IN_PICTURE_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_PICTURE_IN_PICTURE_HTML_VIDEO_ELEMENT_PICTURE_IN_PICTURE_H_
#include "third_party/blink/renderer/core/dom/qualified_name.h"
#include "third_party/blink/renderer/modules/event_target_modules.h"
namespace blink {
class ExceptionState;
class HTMLVideoElement;
class ScriptPromise;
class ScriptState;
class HTMLVideoElementPictureInPicture {
STATIC_ONLY(HTMLVideoElementPictureInPicture);
public:
static ScriptPromise requestPictureInPicture(ScriptState*,
HTMLVideoElement&,
ExceptionState&);
static bool FastHasAttribute(const HTMLVideoElement&, const QualifiedName&);
static void SetBooleanAttribute(HTMLVideoElement&,
const QualifiedName&,
bool);
DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(enterpictureinpicture,
kEnterpictureinpicture)
DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(leavepictureinpicture,
kLeavepictureinpicture)
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_MODULES_PICTURE_IN_PICTURE_HTML_VIDEO_ELEMENT_PICTURE_IN_PICTURE_H_