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

Side by Side Diff: Source/core/frame/Window.idl

Issue 998673002: Add [NewObject] and [SameObject] to various interfaces (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/TreeWalker.idl ('k') | Source/core/html/HTMLFieldSetElement.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2011 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 [DoNotCheckSecurity, Custom, RaisesException] void postMessage(any message, DOMString targetOrigin, optional sequence<Transferable> transfer); 88 [DoNotCheckSecurity, Custom, RaisesException] void postMessage(any message, DOMString targetOrigin, optional sequence<Transferable> transfer);
89 89
90 // HTML obsolete features 90 // HTML obsolete features
91 // https://html.spec.whatwg.org/#Window-partial 91 // https://html.spec.whatwg.org/#Window-partial
92 [MeasureAs=WindowCaptureEvents] void captureEvents(); 92 [MeasureAs=WindowCaptureEvents] void captureEvents();
93 [MeasureAs=WindowReleaseEvents] void releaseEvents(); 93 [MeasureAs=WindowReleaseEvents] void releaseEvents();
94 94
95 // CSS Object Model (CSSOM) 95 // CSS Object Model (CSSOM)
96 // http://dev.w3.org/csswg/cssom/#extensions-to-the-window-interface 96 // http://dev.w3.org/csswg/cssom/#extensions-to-the-window-interface
97 // FIXME: The optional pseudoElt argument should have no default. 97 // FIXME: The optional pseudoElt argument should have no default.
98 [TypeChecking=Interface] CSSStyleDeclaration getComputedStyle(Element elt, o ptional DOMString? pseudoElt = null); 98 [NewObject, TypeChecking=Interface] CSSStyleDeclaration getComputedStyle(Ele ment elt, optional DOMString? pseudoElt = null);
99 // http://dev.w3.org/csswg/cssom/#utility-apis 99 // http://dev.w3.org/csswg/cssom/#utility-apis
100 // FIXME: CSS should be an interface with static members, in which 100 // FIXME: CSS should be an interface with static members, in which
101 // case this getter would not be needed. 101 // case this getter would not be needed.
102 [Replaceable] readonly attribute CSS CSS; 102 [Replaceable] readonly attribute CSS CSS;
103 103
104 // CSSOM View Module 104 // CSSOM View Module
105 // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-window-interface 105 // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-window-interface
106 MediaQueryList matchMedia(DOMString query); 106 [NewObject] MediaQueryList matchMedia(DOMString query);
107 readonly attribute Screen screen; 107 [SameObject] readonly attribute Screen screen;
108 108
109 // browsing context 109 // browsing context
110 // FIXME: The x and y arguments should not be optional. crbug.com/453421 110 // FIXME: The x and y arguments should not be optional. crbug.com/453421
111 void moveTo(optional long x, optional long y); 111 void moveTo(optional long x, optional long y);
112 void moveBy(optional long x, optional long y); 112 void moveBy(optional long x, optional long y);
113 void resizeTo(optional long x, optional long y); 113 void resizeTo(optional long x, optional long y);
114 void resizeBy(optional long x, optional long y); 114 void resizeBy(optional long x, optional long y);
115 115
116 // viewport 116 // viewport
117 // FIXME: None of the CCSOM View Module attributes should be [Replaceable]. 117 // FIXME: None of the CCSOM View Module attributes should be [Replaceable].
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 // FIXME: make this typedef accurate once enough of http://crbug.com/240176 209 // FIXME: make this typedef accurate once enough of http://crbug.com/240176
210 // is in place. 210 // is in place.
211 // FIXME: consider putting this typedef in an .idl file containing spec-wide 211 // FIXME: consider putting this typedef in an .idl file containing spec-wide
212 // utility type definitions. 212 // utility type definitions.
213 typedef MessagePort Transferable; 213 typedef MessagePort Transferable;
214 214
215 Window implements GlobalEventHandlers; 215 Window implements GlobalEventHandlers;
216 Window implements WindowBase64; 216 Window implements WindowBase64;
217 Window implements WindowEventHandlers; 217 Window implements WindowEventHandlers;
218 Window implements WindowTimers; 218 Window implements WindowTimers;
OLDNEW
« no previous file with comments | « Source/core/dom/TreeWalker.idl ('k') | Source/core/html/HTMLFieldSetElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698