blob: 06d318794d7d7844db4fd47d53c7af196ede85d0 [file] [log] [blame]
// Copyright 2015 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 HTMLCanvasElementCapture_h
#define HTMLCanvasElementCapture_h
#include "core/html/HTMLCanvasElement.h"
#include "platform/heap/Handle.h"
#include "platform/wtf/Allocator.h"
namespace blink {
class MediaStream;
class ExceptionState;
class HTMLCanvasElementCapture {
STATIC_ONLY(HTMLCanvasElementCapture);
public:
static MediaStream* captureStream(HTMLCanvasElement&, ExceptionState&);
static MediaStream* captureStream(HTMLCanvasElement&,
double frame_rate,
ExceptionState&);
private:
static MediaStream* captureStream(HTMLCanvasElement&,
bool given_frame_rate,
double frame_rate,
ExceptionState&);
};
} // namespace blink
#endif