| Index: public/platform/WebTeleportCallback.h
|
| diff --git a/public/platform/WebWaitableEvent.h b/public/platform/WebTeleportCallback.h
|
| similarity index 69%
|
| copy from public/platform/WebWaitableEvent.h
|
| copy to public/platform/WebTeleportCallback.h
|
| index f1b59f0a263afe5afd887863e98d52d9cfa3e95e..06f51a5fb11446a8cbd405cb1d4e286dd89b4386 100644
|
| --- a/public/platform/WebWaitableEvent.h
|
| +++ b/public/platform/WebTeleportCallback.h
|
| @@ -28,28 +28,46 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef WebWaitableEvent_h
|
| -#define WebWaitableEvent_h
|
| +#ifndef WebTeleportCallback_h
|
| +#define WebTeleportCallback_h
|
|
|
| #include "WebCommon.h"
|
|
|
| +#include "WebString.h"
|
| +#include "WebVector.h"
|
| +
|
| namespace blink {
|
|
|
| -// Provides a thread synchronization that can be used to allow one thread to
|
| -// wait until another thread to finish some work.
|
| -class WebWaitableEvent {
|
| -public:
|
| - virtual ~WebWaitableEvent() { }
|
| +struct WebTeleportValue {
|
| + enum ValueType {
|
| + ValueTypeTransform,
|
| + ValueTypeOpacity,
|
| + ValueTypeScrollTop,
|
| + ValueTypePendingScrollDelta,
|
| + ValueTypeTimestamp,
|
| + ValueTypeError
|
| + };
|
| +
|
| + WebString id;
|
| + ValueType type;
|
| + bool initialized;
|
| + bool modified;
|
| + int layer_id;
|
|
|
| - // Waits indefinitely for the event to be signaled.
|
| - virtual void wait() = 0;
|
| + union {
|
| + double matrix[16];
|
| + double scalar;
|
| + } value;
|
| +};
|
| +
|
| +typedef WebVector<WebTeleportValue> WebTeleportValues;
|
|
|
| - // Puts the event in the signaled state. Causing any thread blocked on Wait
|
| - // to be woken up. The event state is reset to non-signaled after
|
| - // a waiting thread has been released.
|
| - virtual void signal() = 0;
|
| +class WebTeleportCallback {
|
| +public:
|
| + virtual ~WebTeleportCallback() { }
|
| + virtual void Run(const WebTeleportValues&) = 0;
|
| };
|
|
|
| -} // namespace blink
|
| +} // blink
|
|
|
| -#endif // WebWaitableEvent_h
|
| +#endif // WebTeleportCallback_h
|
|
|