Bug 1169290 - Allow nsIMarionette to be initialised from C++. r?maja_zf draft
authorAndreas Tolfsen <ato@sny.no>
Sat, 27 Jan 2018 19:34:49 +0000
changeset 753897 c2ce4da729c2f9acc429b9d840d49aa97cfa519b
parent 753896 6f37570a152e70287a00f07a1b216412ca7e1ff5
child 753898 9a6c619f6f3390750efa286162f461c0e0192d1c
push id98715
push userbmo:ato@sny.no
push dateMon, 12 Feb 2018 16:37:16 +0000
reviewersmaja_zf
bugs1169290
milestone60.0a1
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
testing/marionette/components/nsIMarionette.idl
--- 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;
 };