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

Unified Diff: public/platform/WebTeleportCallback.h

Issue 474683003: Not for review - Rebase of crrev.com/62833003 Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 6 years, 2 months 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
« no previous file with comments | « public/platform/WebLayer.h ('k') | public/platform/WebTeleporter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « public/platform/WebLayer.h ('k') | public/platform/WebTeleporter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698