diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /dom/interfaces/canvas | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'dom/interfaces/canvas')
-rw-r--r-- | dom/interfaces/canvas/moz.build | 13 | ||||
-rw-r--r-- | dom/interfaces/canvas/nsIDOMCanvasRenderingContext2D.idl | 33 | ||||
-rw-r--r-- | dom/interfaces/canvas/nsIDOMWebGLRenderingContext.idl | 15 |
3 files changed, 61 insertions, 0 deletions
diff --git a/dom/interfaces/canvas/moz.build b/dom/interfaces/canvas/moz.build new file mode 100644 index 000000000..26f24c75d --- /dev/null +++ b/dom/interfaces/canvas/moz.build @@ -0,0 +1,13 @@ +# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# 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/. + +XPIDL_SOURCES += [ + 'nsIDOMCanvasRenderingContext2D.idl', + 'nsIDOMWebGLRenderingContext.idl', +] + +XPIDL_MODULE = 'dom_canvas' + diff --git a/dom/interfaces/canvas/nsIDOMCanvasRenderingContext2D.idl b/dom/interfaces/canvas/nsIDOMCanvasRenderingContext2D.idl new file mode 100644 index 000000000..a26e81563 --- /dev/null +++ b/dom/interfaces/canvas/nsIDOMCanvasRenderingContext2D.idl @@ -0,0 +1,33 @@ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* 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/. */ + +#include "nsISupports.idl" + +/** + * 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. + */ +[uuid(4417cab7-c7eb-4e0c-b00a-c43842f0cba8)] +interface nsIDOMCanvasRenderingContext2D : nsISupports +{ + // 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; + // Draw scrollbars and scroll the viewport if they are present + const unsigned long DRAWWINDOW_DRAW_VIEW = 0x04; + // 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; + // Don't synchronously decode images - draw what we have + const unsigned long DRAWWINDOW_ASYNC_DECODE_IMAGES = 0x10; +}; diff --git a/dom/interfaces/canvas/nsIDOMWebGLRenderingContext.idl b/dom/interfaces/canvas/nsIDOMWebGLRenderingContext.idl new file mode 100644 index 000000000..a6d75e722 --- /dev/null +++ b/dom/interfaces/canvas/nsIDOMWebGLRenderingContext.idl @@ -0,0 +1,15 @@ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* 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/. */ + +#include "nsISupports.idl" + +[builtinclass, uuid(f1a2fd3a-c6ac-4ee2-a700-5d285d5e3fff)] +interface nsIDOMWebGLRenderingContext : nsISupports +{ + // get an underlying GL parameter, without any WebGL intervention. + // Most useful for querying GL_VENDOR/GL_RENDERER for identifying + // the underlying renderer to the user. + [noscript] DOMString mozGetUnderlyingParamString(in unsigned long pname); +}; |