OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple 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 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 | 228 |
229 // This is enabled only in Debug builds. | 229 // This is enabled only in Debug builds. |
230 // This is because we want to avoid putting the byte stream of testing priva
te scripts | 230 // This is because we want to avoid putting the byte stream of testing priva
te scripts |
231 // into the binary of Release builds. | 231 // into the binary of Release builds. |
232 PrivateScriptTest privateScriptTest(); | 232 PrivateScriptTest privateScriptTest(); |
233 | 233 |
234 DOMString[] getReferencedFilePaths(); | 234 DOMString[] getReferencedFilePaths(); |
235 | 235 |
236 // These functions both reset the tracked repaint rects. They are intended t
o be used in the following order: | 236 // These functions both reset the tracked repaint rects. They are intended t
o be used in the following order: |
237 // startTrackingRepaints(), repaintRectsAsText(), stopTrackingRepaints(). | 237 // startTrackingRepaints(), repaintRectsAsText(), stopTrackingRepaints(). |
238 // TODO(wangxianzhu): Remove these functions when we no longer use repaint r
ects. | |
239 [RaisesException] void startTrackingRepaints(Document document); | 238 [RaisesException] void startTrackingRepaints(Document document); |
240 [RaisesException] void stopTrackingRepaints(Document document); | 239 [RaisesException] void stopTrackingRepaints(Document document); |
241 | 240 |
242 // |node| should be Document, HTMLIFrameElement, or unspecified. | 241 // |node| should be Document, HTMLIFrameElement, or unspecified. |
243 // If |node| is an HTMLIFrameElement, it assumes node.contentDocument is | 242 // If |node| is an HTMLIFrameElement, it assumes node.contentDocument is |
244 // specified without security checks. Unspecified means this document. | 243 // specified without security checks. Unspecified means this document. |
245 [RaisesException] void updateLayoutIgnorePendingStylesheetsAndRunPostLayoutT
asks(optional Node? node = null); | 244 [RaisesException] void updateLayoutIgnorePendingStylesheetsAndRunPostLayoutT
asks(optional Node? node = null); |
246 | 245 |
247 [RaisesException] void forceFullRepaint(Document document); | 246 [RaisesException] void forceFullRepaint(Document document); |
248 | 247 |
249 // These functions both reset the tracked paint invalidation objects. They a
re intended to be used in the following order: | |
250 // startTrackingPaintInvalidationObjects(), trackedPaintInvalidationObjects
(), stopTrackingPaintInvalidationObjects(). | |
251 void startTrackingPaintInvalidationObjects(); | |
252 void stopTrackingPaintInvalidationObjects(); | |
253 | |
254 // Returns a list of debug strings for objects that were invalidated between | |
255 // startTrackingPaintInvalidationObjects() and stopTrackingPaintInvalidation
Objects(). | |
256 // If an object is invalidated multiple times, it will appear in the list mu
ltiple times. | |
257 DOMString[] trackedPaintInvalidationObjects(); | |
258 | |
259 // Returns a list of draggable/non-draggable regions in the document. | 248 // Returns a list of draggable/non-draggable regions in the document. |
260 [RaisesException] ClientRectList draggableRegions(Document document); | 249 [RaisesException] ClientRectList draggableRegions(Document document); |
261 [RaisesException] ClientRectList nonDraggableRegions(Document document); | 250 [RaisesException] ClientRectList nonDraggableRegions(Document document); |
262 | 251 |
263 // Returns a string with information about the mouse cursor used at the spec
ified client location. | 252 // Returns a string with information about the mouse cursor used at the spec
ified client location. |
264 DOMString getCurrentCursorInfo(); | 253 DOMString getCurrentCursorInfo(); |
265 | 254 |
266 readonly attribute boolean cursorUpdatePending; | 255 readonly attribute boolean cursorUpdatePending; |
267 | 256 |
268 DOMString markerTextForListItem(Element element); | 257 DOMString markerTextForListItem(Element element); |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 | 345 |
357 void setMediaElementNetworkState(HTMLMediaElement element, long state); | 346 void setMediaElementNetworkState(HTMLMediaElement element, long state); |
358 | 347 |
359 // TODO(liberato): remove once autoplay gesture override experiment conclude
s. | 348 // TODO(liberato): remove once autoplay gesture override experiment conclude
s. |
360 void triggerAutoplayViewportCheck(HTMLMediaElement mediaElement); | 349 void triggerAutoplayViewportCheck(HTMLMediaElement mediaElement); |
361 | 350 |
362 DOMString getScrollAnimationState(Node node); | 351 DOMString getScrollAnimationState(Node node); |
363 | 352 |
364 DOMString getProgrammaticScrollAnimationState(Node node); | 353 DOMString getProgrammaticScrollAnimationState(Node node); |
365 }; | 354 }; |
OLD | NEW |