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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
225 | 225 |
226 // This is enabled only in Debug builds. | 226 // This is enabled only in Debug builds. |
227 // This is because we want to avoid putting the byte stream of testing priva te scripts | 227 // This is because we want to avoid putting the byte stream of testing priva te scripts |
228 // into the binary of Release builds. | 228 // into the binary of Release builds. |
229 PrivateScriptTest privateScriptTest(); | 229 PrivateScriptTest privateScriptTest(); |
230 | 230 |
231 DOMString[] getReferencedFilePaths(); | 231 DOMString[] getReferencedFilePaths(); |
232 | 232 |
233 // These functions both reset the tracked repaint rects. They are inteded to be used in the following order: | 233 // These functions both reset the tracked repaint rects. They are inteded to be used in the following order: |
234 // startTrackingRepaints, repaintRectsAsText, stopTrackingRepaints. | 234 // startTrackingRepaints, repaintRectsAsText, stopTrackingRepaints. |
235 // TODO(wangxianzhu): Remove these functions when we no longer use repaint r ects. | |
235 [RaisesException, TypeChecking=Interface] void startTrackingRepaints(Documen t document); | 236 [RaisesException, TypeChecking=Interface] void startTrackingRepaints(Documen t document); |
236 [RaisesException, TypeChecking=Interface] void stopTrackingRepaints(Document document); | 237 [RaisesException, TypeChecking=Interface] void stopTrackingRepaints(Document document); |
237 | 238 |
238 // |node| should be Document, HTMLIFrameElement, or unspecified. | 239 // |node| should be Document, HTMLIFrameElement, or unspecified. |
239 // If |node| is an HTMLIFrameElement, it assumes node.contentDocument is | 240 // If |node| is an HTMLIFrameElement, it assumes node.contentDocument is |
240 // specified without security checks. Unspecified means this document. | 241 // specified without security checks. Unspecified means this document. |
241 [RaisesException] void updateLayoutIgnorePendingStylesheetsAndRunPostLayoutT asks(optional Node? node = null); | 242 [RaisesException] void updateLayoutIgnorePendingStylesheetsAndRunPostLayoutT asks(optional Node? node = null); |
242 | 243 |
243 [RaisesException, TypeChecking=Interface] void forceFullRepaint(Document doc ument); | 244 [RaisesException, TypeChecking=Interface] void forceFullRepaint(Document doc ument); |
244 | 245 |
246 // These functions both reset the tracked paint invalidation objects. They a re inteded to be used in the following order: | |
247 // startTrackingPaintInvalidationObjects, paintInvalidationObjects, stopTra ckingPaintInvalidationObjects. | |
chrishtr
2015/08/31 22:52:19
Add a comment that trackedPaintInvalidationObjects
Xianzhu
2015/08/31 23:04:38
The last statement is correct.
Done.
| |
248 void startTrackingPaintInvalidationObjects(); | |
249 void stopTrackingPaintInvalidationObjects(); | |
250 | |
251 DOMString[] trackedPaintInvalidationObjects(); | |
252 | |
245 // Returns a list of draggable/non-draggable regions in the document. | 253 // Returns a list of draggable/non-draggable regions in the document. |
246 [RaisesException, TypeChecking=Interface] ClientRectList draggableRegions(Do cument document); | 254 [RaisesException, TypeChecking=Interface] ClientRectList draggableRegions(Do cument document); |
247 [RaisesException, TypeChecking=Interface] ClientRectList nonDraggableRegions (Document document); | 255 [RaisesException, TypeChecking=Interface] ClientRectList nonDraggableRegions (Document document); |
248 | 256 |
249 // Returns a string with information about the mouse cursor used at the spec ified client location. | 257 // Returns a string with information about the mouse cursor used at the spec ified client location. |
250 [TypeChecking=Interface] DOMString getCurrentCursorInfo(); | 258 [TypeChecking=Interface] DOMString getCurrentCursorInfo(); |
251 | 259 |
252 readonly attribute boolean cursorUpdatePending; | 260 readonly attribute boolean cursorUpdatePending; |
253 | 261 |
254 [TypeChecking=Interface] DOMString markerTextForListItem(Element element); | 262 [TypeChecking=Interface] DOMString markerTextForListItem(Element element); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
327 | 335 |
328 ClientRectList outlineRects(Element element); | 336 ClientRectList outlineRects(Element element); |
329 void setCapsLockState(boolean enabled); | 337 void setCapsLockState(boolean enabled); |
330 | 338 |
331 // Returns whether the scrollbar was able to be shown or hidden; not all pla tforms | 339 // Returns whether the scrollbar was able to be shown or hidden; not all pla tforms |
332 // support overlay scrollbars. | 340 // support overlay scrollbars. |
333 bool setScrollbarVisibilityInScrollableArea(Node node, boolean visible); | 341 bool setScrollbarVisibilityInScrollableArea(Node node, boolean visible); |
334 | 342 |
335 void forceRestrictIFramePermissions(); | 343 void forceRestrictIFramePermissions(); |
336 }; | 344 }; |
OLD | NEW |