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

Unified Diff: third_party/WebKit/Source/core/frame/History.idl

Issue 1450113002: Add use counter for history.scrollRestoration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 1 month 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 | « no previous file | third_party/WebKit/Source/core/frame/UseCounter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/History.idl
diff --git a/third_party/WebKit/Source/core/frame/History.idl b/third_party/WebKit/Source/core/frame/History.idl
index 0c3ebcf8174cb40734d82ad7625036daabd94ffe..bec089019f093ccccc4105629938b53832ba3a84 100644
--- a/third_party/WebKit/Source/core/frame/History.idl
+++ b/third_party/WebKit/Source/core/frame/History.idl
@@ -31,6 +31,7 @@ enum ScrollRestoration {"auto", "manual"};
GarbageCollected,
] interface History {
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;
[CallWith=ExecutionContext] void go(optional long delta = 0);
@@ -40,8 +41,4 @@ enum ScrollRestoration {"auto", "manual"};
// TODO(philipj): The title arguments should simply be 'DOMString title'.
[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);
-
- // Experimental Scroll Restoration API
- // https://www.chromestatus.com/features/5657284784947200
- [RuntimeEnabled=ScrollRestoration] attribute ScrollRestoration scrollRestoration;
};
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698