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

Unified Diff: core/frame/History.idl

Issue 2786203002: Roll 50: Copied IDLs, PYTHON scripts from WebKit removed deleted files in WebCore (Closed)
Patch Set: Created 3 years, 9 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/BarProp.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 5462033850909d3376e317015f46f12a648cdc13..bec089019f093ccccc4105629938b53832ba3a84 100644
--- a/core/frame/History.idl
+++ b/core/frame/History.idl
@@ -25,26 +25,20 @@
// https://html.spec.whatwg.org/#the-history-interface
+enum ScrollRestoration {"auto", "manual"};
+
[
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;
+ [RuntimeEnabled=ScrollRestoration, Measure] attribute ScrollRestoration scrollRestoration;
// 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();
// 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);
-
- // Experimental Scroll Restoration API
- // https://www.chromestatus.com/features/5657284784947200
- [RuntimeEnabled=ScrollRestoration] readonly attribute StateOptions options;
+ [RaisesException] void pushState(SerializedScriptValue data, [TreatUndefinedAs=NullString] DOMString? title, optional DOMString? url = null);
+ [RaisesException] void replaceState(SerializedScriptValue data, [TreatUndefinedAs=NullString] DOMString? title, optional DOMString? url = null);
};
« no previous file with comments | « core/frame/BarProp.idl ('k') | core/frame/ImageBitmap.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698