dom/interfaces/canvas/nsIDOMCanvasRenderingContext2D.idl

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

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

mercurial