Bug 1169290 - Allow nsIMarionette to be initialised from C++. r?maja_zf
It can be useful to let nsIMarionette be initialised from C++,
and this will cause a nsIMarionette.h file with the component's
contract ID to be generated.
MozReview-Commit-ID: IcFU2B2Wrzu
--- a/testing/marionette/components/nsIMarionette.idl
+++ b/testing/marionette/components/nsIMarionette.idl
@@ -1,13 +1,17 @@
/* 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"
+%{C++
+#define NS_MARIONETTE_CONTRACTID "@mozilla.org/remote/marionette;1"
+%}
+
/** Interface for accessing the Marionette server instance. */
[scriptable, uuid(13fa7d76-f976-4711-a00c-29ac9c1881e1)]
interface nsIMarionette : nsISupports
{
/** Indicates whether the remote protocol is enabled. */
readonly attribute boolean running;
};