OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef HTMLCanvasElementCapture_h | 5 #ifndef HTMLCanvasElementCapture_h |
6 #define HTMLCanvasElementCapture_h | 6 #define HTMLCanvasElementCapture_h |
7 | 7 |
8 #include "core/html/HTMLCanvasElement.h" | 8 #include "core/html/HTMLCanvasElement.h" |
9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
10 #include "wtf/Allocator.h" | 10 #include "wtf/Allocator.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 class MediaStream; | 14 class MediaStream; |
15 class ExceptionState; | 15 class ExceptionState; |
16 | 16 |
17 class HTMLCanvasElementCapture { | 17 class HTMLCanvasElementCapture { |
18 STATIC_ONLY(HTMLCanvasElementCapture); | 18 STATIC_ONLY(HTMLCanvasElementCapture); |
19 public: | 19 public: |
20 static MediaStream* captureStream(HTMLCanvasElement&, ExceptionState&); | 20 static MediaStream* captureStream(HTMLCanvasElement&, ExceptionState&); |
| 21 static MediaStream* captureStream(HTMLCanvasElement&, double frameRate, Exce
ptionState&); |
| 22 private: |
| 23 static MediaStream* captureStream(HTMLCanvasElement&, bool givenFrameRate, d
ouble frameRate, ExceptionState&); |
| 24 |
21 }; | 25 }; |
22 | 26 |
23 } // namespace blink | 27 } // namespace blink |
24 | 28 |
25 #endif | 29 #endif |
OLD | NEW |