xpcom/base/nsIProgrammingLanguage.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xpcom/base/nsIProgrammingLanguage.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,33 @@
     1.4 +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
     1.5 + *
     1.6 + * This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#include "nsISupports.idl"
    1.11 +
    1.12 +/**
    1.13 + * Enumeration of Programming Languages
    1.14 + */
    1.15 +
    1.16 +[scriptable, uuid(ea604e90-40ba-11d5-90bb-0010a4e73d9a)]
    1.17 +interface nsIProgrammingLanguage : nsISupports
    1.18 +{
    1.19 +    /**
    1.20 +     * Identifiers for programming languages.
    1.21 +     */
    1.22 +    const uint32_t UNKNOWN     = 0;
    1.23 +    const uint32_t CPLUSPLUS   = 1;
    1.24 +    const uint32_t JAVASCRIPT  = 2;
    1.25 +    const uint32_t PYTHON      = 3;
    1.26 +    const uint32_t PERL        = 4;
    1.27 +    const uint32_t JAVA        = 5;
    1.28 +    const uint32_t ZX81_BASIC  = 6;  // it could happen :)
    1.29 +    const uint32_t JAVASCRIPT2 = 7;
    1.30 +    const uint32_t RUBY =        8;
    1.31 +    const uint32_t PHP =         9;
    1.32 +    const uint32_t TCL =         10;
    1.33 +    // This list can grow indefinitely. Just don't ever change an existing item.
    1.34 +    const uint32_t MAX         = 10; // keep this as the largest index.
    1.35 +    
    1.36 +};

mercurial