| 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 | 223 |
| 224 TypeConversions typeConversions(); | 224 TypeConversions typeConversions(); |
| 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 intended t
o 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 intended to be used in the following order: |
| 247 // startTrackingPaintInvalidationObjects(), trackedPaintInvalidationObjects
(), stopTrackingPaintInvalidationObjects(). |
| 248 void startTrackingPaintInvalidationObjects(); |
| 249 void stopTrackingPaintInvalidationObjects(); |
| 250 |
| 251 // Returns a list of debug strings for objects that were invalidated between |
| 252 // startTrackingPaintInvalidationObjects() and stopTrackingPaintInvalidation
Objects(). |
| 253 // If an object is invalidated multiple times, it will appear in the list mu
ltiple times. |
| 254 DOMString[] trackedPaintInvalidationObjects(); |
| 255 |
| 245 // Returns a list of draggable/non-draggable regions in the document. | 256 // Returns a list of draggable/non-draggable regions in the document. |
| 246 [RaisesException, TypeChecking=Interface] ClientRectList draggableRegions(Do
cument document); | 257 [RaisesException, TypeChecking=Interface] ClientRectList draggableRegions(Do
cument document); |
| 247 [RaisesException, TypeChecking=Interface] ClientRectList nonDraggableRegions
(Document document); | 258 [RaisesException, TypeChecking=Interface] ClientRectList nonDraggableRegions
(Document document); |
| 248 | 259 |
| 249 // Returns a string with information about the mouse cursor used at the spec
ified client location. | 260 // Returns a string with information about the mouse cursor used at the spec
ified client location. |
| 250 [TypeChecking=Interface] DOMString getCurrentCursorInfo(); | 261 [TypeChecking=Interface] DOMString getCurrentCursorInfo(); |
| 251 | 262 |
| 252 readonly attribute boolean cursorUpdatePending; | 263 readonly attribute boolean cursorUpdatePending; |
| 253 | 264 |
| 254 [TypeChecking=Interface] DOMString markerTextForListItem(Element element); | 265 [TypeChecking=Interface] DOMString markerTextForListItem(Element element); |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 | 338 |
| 328 ClientRectList outlineRects(Element element); | 339 ClientRectList outlineRects(Element element); |
| 329 void setCapsLockState(boolean enabled); | 340 void setCapsLockState(boolean enabled); |
| 330 | 341 |
| 331 // Returns whether the scrollbar was able to be shown or hidden; not all pla
tforms | 342 // Returns whether the scrollbar was able to be shown or hidden; not all pla
tforms |
| 332 // support overlay scrollbars. | 343 // support overlay scrollbars. |
| 333 bool setScrollbarVisibilityInScrollableArea(Node node, boolean visible); | 344 bool setScrollbarVisibilityInScrollableArea(Node node, boolean visible); |
| 334 | 345 |
| 335 void forceRestrictIFramePermissions(); | 346 void forceRestrictIFramePermissions(); |
| 336 }; | 347 }; |
| OLD | NEW |