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

Unified Diff: core/frame/History.idl

Issue 1660113002: Updated to Chrome 45 (2454) moved from SVN to git. Base URL: https://github.com/dart-lang/webcore.git@roll_45
Patch Set: Created 4 years, 11 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 | « core/frame/ConsoleBase.idl ('k') | core/frame/ImageBitmap.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/frame/History.idl
diff --git a/core/frame/History.idl b/core/frame/History.idl
index 40606047612ef0fdea9fec894feecd64256c07df..5462033850909d3376e317015f46f12a648cdc13 100644
--- a/core/frame/History.idl
+++ b/core/frame/History.idl
@@ -23,16 +23,28 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+// https://html.spec.whatwg.org/#the-history-interface
+
[
- WillBeGarbageCollected,
+ GarbageCollected,
] interface History {
+ // TODO(philipj): length is long in the spec, use that or change the spec:
+ // https://www.w3.org/Bugs/Public/show_bug.cgi?id=28789
readonly attribute unsigned long length;
- [Custom=Getter] readonly attribute SerializedScriptValue state;
-
+ // TODO(philipj): The SerializedScriptValue type should be any.
+ [CachedAttribute=stateChanged] readonly attribute SerializedScriptValue state;
+ // TODO(philipj): delta does not have a default value in the spec:
+ // https://www.w3.org/Bugs/Public/show_bug.cgi?id=28790
+ [CallWith=ExecutionContext] void go(optional long delta = 0);
[CallWith=ExecutionContext] void back();
[CallWith=ExecutionContext] void forward();
- [CallWith=ExecutionContext] void go([Default=Undefined] optional long distance);
+ // TODO(philipj): The SerializedScriptValue types should be any.
+ // TODO(philipj): The title arguments should simply be 'DOMString title'.
+ // Note: The options arguments are part of the Scroll Restoration API.
+ [RaisesException] void pushState(SerializedScriptValue data, [TreatUndefinedAs=NullString] DOMString? title, optional DOMString? url = null, optional StateOptions options);
+ [RaisesException] void replaceState(SerializedScriptValue data, [TreatUndefinedAs=NullString] DOMString? title, optional DOMString? url = null, optional StateOptions options);
- [Custom, PerContextEnabled=PushState, RaisesException] void pushState(any data, DOMString title, optional DOMString url);
- [Custom, PerContextEnabled=PushState, RaisesException] void replaceState(any data, DOMString title, optional DOMString url);
+ // Experimental Scroll Restoration API
+ // https://www.chromestatus.com/features/5657284784947200
+ [RuntimeEnabled=ScrollRestoration] readonly attribute StateOptions options;
};
« no previous file with comments | « core/frame/ConsoleBase.idl ('k') | core/frame/ImageBitmap.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698