dom/interfaces/canvas/nsIDOMCanvasRenderingContext2D.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/interfaces/canvas/nsIDOMCanvasRenderingContext2D.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,33 @@
     1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#include "nsISupports.idl"
    1.10 +
    1.11 +/**
    1.12 + * This interface remains only for the constants, for a context, use the
    1.13 + * WebIDL/Paris bindings instead (CanvasRenderingContext2D.webidl).
    1.14 + * The constants are used by CanvasRenderingContext2D::DrawWindow and are
    1.15 + * used in WindowsPreviewPerTab.jsm and some extensions. The constants can
    1.16 + * be referenced directly via a canvas context 2d rather than this interface,
    1.17 + * and that should be preferred in new code. 
    1.18 + */
    1.19 +[scriptable, uuid(4417cab7-c7eb-4e0c-b00a-c43842f0cba8)]
    1.20 +interface nsIDOMCanvasRenderingContext2D : nsISupports
    1.21 +{
    1.22 +  // Show the caret if appropriate when drawing
    1.23 +  const unsigned long DRAWWINDOW_DRAW_CARET   = 0x01;
    1.24 +  // Don't flush pending layout notifications that could otherwise
    1.25 +  // be batched up
    1.26 +  const unsigned long DRAWWINDOW_DO_NOT_FLUSH = 0x02;
    1.27 +  // Draw scrollbars and scroll the viewport if they are present
    1.28 +  const unsigned long DRAWWINDOW_DRAW_VIEW    = 0x04;
    1.29 +  // Use the widget layer manager if available. This means hardware
    1.30 +  // acceleration may be used, but it might actually be slower or
    1.31 +  // lower quality than normal. It will however more accurately reflect
    1.32 +  // the pixels rendered to the screen.
    1.33 +  const unsigned long DRAWWINDOW_USE_WIDGET_LAYERS = 0x08;
    1.34 +  // Don't synchronously decode images - draw what we have
    1.35 +  const unsigned long DRAWWINDOW_ASYNC_DECODE_IMAGES = 0x10;
    1.36 +};

mercurial