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