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

Unified Diff: Source/core/html/StableState.h

Issue 153813002: Support "await a stable state" and "provide a stable state" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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 | « Source/core/core.gypi ('k') | Source/core/html/StableState.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/StableState.h
diff --git a/Source/core/html/StableState.h b/Source/core/html/StableState.h
new file mode 100644
index 0000000000000000000000000000000000000000..d382553d8ca5418c0598c58b44f76bfb6be7293d
--- /dev/null
+++ b/Source/core/html/StableState.h
@@ -0,0 +1,31 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef StableState_h
+#define StableState_h
+
+namespace WebCore {
+
+// http://whatwg.org/html#await-a-stable-state
+// http://whatwg.org/html#provide-a-stable-state
+class StableState {
+public:
+ class Awaiter {
+ public:
+ virtual ~Awaiter();
+ virtual void didAwaitStableState() = 0;
+
+ void awaitStableState();
philipj_slow 2014/02/04 13:45:46 I put this here to make the call sites slightly pr
philipj_slow 2014/02/04 15:10:49 I've made it so in PS2, so you can see exactly wha
+ void stopAwaitingStableState();
+ };
+
+ static void provide();
+
+private:
+ explicit StableState();
+};
+
+}
+
+#endif // StableState_h
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/html/StableState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698