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

Unified Diff: core/frame/Window.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/StateOptions.idl ('k') | core/html/AssignedNodesOptions.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/frame/Window.idl
diff --git a/core/frame/Window.idl b/core/frame/Window.idl
index 679fd07f3e627a1849d8f442b065267e7f6c5700..f73fac7530fa31e9c44ea8a41d00ef18e908f9ba 100644
--- a/core/frame/Window.idl
+++ b/core/frame/Window.idl
@@ -28,7 +28,7 @@
// FIXME: explain all uses of [DoNotCheckSecurity]
[
- CheckSecurity=Frame,
+ CheckSecurity=Receiver,
ImplementedAs=DOMWindow,
PrimaryGlobal,
] interface Window : EventTarget {
@@ -60,9 +60,9 @@
// FIXME: opener should be of type any.
[DoNotCheckSecurity, Custom=Setter] attribute Window opener;
[Replaceable, DoNotCheckSecurity] readonly attribute Window parent;
- [CheckSecurity=Node, Custom=Getter] readonly attribute Element? frameElement;
+ [CheckSecurity=ReturnValue, Custom=Getter] readonly attribute Element? frameElement;
// FIXME: open() should have 4 optional arguments with defaults.
- [Custom] Window open(DOMString url, DOMString target, optional DOMString features);
+ [Custom] Window? open(DOMString url, DOMString target, optional DOMString features);
// FIXME: These getters should not have [NotEnumerable].
[NotEnumerable, DoNotCheckSecurity] getter Window (unsigned long index);
[Custom, NotEnumerable, DoNotCheckSecurity] getter object (DOMString name);
@@ -72,17 +72,18 @@
[RuntimeEnabled=ApplicationCache, LogActivity=GetterOnly] readonly attribute ApplicationCache applicationCache;
// user prompts
- void alert();
- void alert(DOMString message);
- boolean confirm(optional DOMString message = "");
- DOMString? prompt(optional DOMString message = "", optional DOMString defaultValue = "");
- void print();
-
- // FIXME: requestAnimationFrame should take a FrameRequestCallback:
- // https://www.w3.org/Bugs/Public/show_bug.cgi?id=28152
+ [Measure] void alert();
+ [Measure] void alert(DOMString message);
+ [Measure] boolean confirm(optional DOMString message = "");
+ [Measure] DOMString? prompt(optional DOMString message = "", optional DOMString defaultValue = "");
+ [Measure] void print();
+
[MeasureAs=UnprefixedRequestAnimationFrame] long requestAnimationFrame(FrameRequestCallback callback);
void cancelAnimationFrame(long handle);
+ [Measure, RuntimeEnabled=RequestIdleCallback] long requestIdleCallback(IdleRequestCallback callback, optional IdleRequestOptions options);
+ [RuntimeEnabled=RequestIdleCallback] void cancelIdleCallback(long handle);
+
[DoNotCheckSecurity, Custom, RaisesException] void postMessage(any message, DOMString targetOrigin, optional sequence<Transferable> transfer);
// HTML obsolete features
@@ -93,7 +94,7 @@
// CSS Object Model (CSSOM)
// http://dev.w3.org/csswg/cssom/#extensions-to-the-window-interface
// FIXME: The optional pseudoElt argument should have no default.
- [NewObject, TypeChecking=Interface] CSSStyleDeclaration getComputedStyle(Element elt, optional DOMString? pseudoElt = null);
+ [NewObject] CSSStyleDeclaration getComputedStyle(Element elt, optional DOMString? pseudoElt = null);
// CSSOM View Module
// http://dev.w3.org/csswg/cssom-view/#extensions-to-the-window-interface
@@ -153,8 +154,8 @@
[MeasureAs=WindowDefaultStatus] attribute DOMString defaultStatus;
[MeasureAs=WindowDefaultstatus, ImplementedAs=defaultStatus] attribute DOMString defaultstatus;
[MeasureAs=StyleMedia] readonly attribute StyleMedia styleMedia;
- [DeprecateAs=GetMatchedCSSRules] CSSRuleList getMatchedCSSRules([Default=Undefined] optional Element element,
- [TreatUndefinedAs=NullString, Default=Undefined] optional DOMString? pseudoElement);
+ [DeprecateAs=GetMatchedCSSRules, LegacyInterfaceTypeChecking] CSSRuleList getMatchedCSSRules([Default=Undefined] optional Element element,
+ [TreatUndefinedAs=NullString, Default=Undefined] optional DOMString? pseudoElement);
// This is the interface orientation in degrees. Some examples are:
// 0 is straight up; -90 is when the device is rotated 90 clockwise;
// 90 is when rotated counter clockwise.
@@ -173,10 +174,6 @@
attribute EventHandler onanimationstart;
[RuntimeEnabled=OrientationEvent] attribute EventHandler onorientationchange;
attribute EventHandler onsearch;
- [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel;
- [RuntimeEnabled=Touch] attribute EventHandler ontouchend;
- [RuntimeEnabled=Touch] attribute EventHandler ontouchmove;
- [RuntimeEnabled=Touch] attribute EventHandler ontouchstart;
attribute EventHandler ontransitionend;
attribute EventHandler onwebkitanimationend;
attribute EventHandler onwebkitanimationiteration;
@@ -184,8 +181,8 @@
attribute EventHandler onwebkittransitionend;
attribute EventHandler onwheel;
- // window.toString() requires special handling in V8
- [DoNotCheckSignature, DoNotCheckSecurity, Custom, NotEnumerable] stringifier;
+ // https://w3c.github.io/webappsec/specs/powerfulfeatures/#monkey-patching-global-object
+ readonly attribute boolean isSecureContext;
};
// http://www.whatwg.org/specs/web-apps/current-work/#transferable-objects
« no previous file with comments | « core/frame/StateOptions.idl ('k') | core/html/AssignedNodesOptions.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698