| 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 "platform/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 | 19 |
| 20 public: | 20 public: |
| 21 static MediaStream* captureStream(HTMLCanvasElement&, ExceptionState&); | 21 static MediaStream* captureStream(HTMLCanvasElement&, ExceptionState&); |
| 22 static MediaStream* captureStream(HTMLCanvasElement&, | 22 static MediaStream* captureStream(HTMLCanvasElement&, |
| 23 double frame_rate, | 23 double frame_rate, |
| 24 ExceptionState&); | 24 ExceptionState&); |
| 25 | 25 |
| 26 private: | 26 private: |
| 27 static MediaStream* captureStream(HTMLCanvasElement&, | 27 static MediaStream* captureStream(HTMLCanvasElement&, |
| 28 bool given_frame_rate, | 28 bool given_frame_rate, |
| 29 double frame_rate, | 29 double frame_rate, |
| 30 ExceptionState&); | 30 ExceptionState&); |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 } // namespace blink | 33 } // namespace blink |
| 34 | 34 |
| 35 #endif | 35 #endif |
| OLD | NEW |