Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1217)

Unified Diff: third_party/WebKit/Source/modules/mediacapturefromelement/HTMLCanvasElementCapture.h

Issue 1467103003: Basic use implementation for MediaStream from Canvas: captureStream() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/mediacapturefromelement/HTMLCanvasElementCapture.h
diff --git a/third_party/WebKit/Source/modules/canvas2d/EventHitRegion.h b/third_party/WebKit/Source/modules/mediacapturefromelement/HTMLCanvasElementCapture.h
similarity index 52%
copy from third_party/WebKit/Source/modules/canvas2d/EventHitRegion.h
copy to third_party/WebKit/Source/modules/mediacapturefromelement/HTMLCanvasElementCapture.h
index 336ee7c9243c30dc679b205c6921eef0911c8faf..19495aa83752912dfebf71fb213dea22f01e3652 100644
--- a/third_party/WebKit/Source/modules/canvas2d/EventHitRegion.h
+++ b/third_party/WebKit/Source/modules/mediacapturefromelement/HTMLCanvasElementCapture.h
@@ -2,21 +2,20 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef EventHitRegion_h
-#define EventHitRegion_h
+#ifndef HTMLCanvasElementCapture_h
+#define HTMLCanvasElementCapture_h
#include "wtf/Allocator.h"
-#include "wtf/text/WTFString.h"
namespace blink {
class HTMLCanvasElement;
-class LayoutPoint;
+class CanvasCaptureMediaStream;
-class EventHitRegion {
- STATIC_ONLY(EventHitRegion);
+class HTMLCanvasElementCapture {
+ STATIC_ONLY(HTMLCanvasElementCapture);
public:
- static String regionIdFromAbsoluteLocation(HTMLCanvasElement&, const LayoutPoint&);
+ static CanvasCaptureMediaStream* captureStream(HTMLCanvasElement&);
peria 2015/11/24 05:50:22 Please use a raw pointer or PassRefPtrWillBeRawPtr
emircan 2015/11/24 22:16:51 This class is a partial interface of HTMLCanvasEle
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698