michael@0: /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: /** michael@0: * This interface remains only for the constants, for a context, use the michael@0: * WebIDL/Paris bindings instead (CanvasRenderingContext2D.webidl). michael@0: * The constants are used by CanvasRenderingContext2D::DrawWindow and are michael@0: * used in WindowsPreviewPerTab.jsm and some extensions. The constants can michael@0: * be referenced directly via a canvas context 2d rather than this interface, michael@0: * and that should be preferred in new code. michael@0: */ michael@0: [scriptable, uuid(4417cab7-c7eb-4e0c-b00a-c43842f0cba8)] michael@0: interface nsIDOMCanvasRenderingContext2D : nsISupports michael@0: { michael@0: // Show the caret if appropriate when drawing michael@0: const unsigned long DRAWWINDOW_DRAW_CARET = 0x01; michael@0: // Don't flush pending layout notifications that could otherwise michael@0: // be batched up michael@0: const unsigned long DRAWWINDOW_DO_NOT_FLUSH = 0x02; michael@0: // Draw scrollbars and scroll the viewport if they are present michael@0: const unsigned long DRAWWINDOW_DRAW_VIEW = 0x04; michael@0: // Use the widget layer manager if available. This means hardware michael@0: // acceleration may be used, but it might actually be slower or michael@0: // lower quality than normal. It will however more accurately reflect michael@0: // the pixels rendered to the screen. michael@0: const unsigned long DRAWWINDOW_USE_WIDGET_LAYERS = 0x08; michael@0: // Don't synchronously decode images - draw what we have michael@0: const unsigned long DRAWWINDOW_ASYNC_DECODE_IMAGES = 0x10; michael@0: };