xpcom/base/nsIProgrammingLanguage.idl

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
     2  *
     3  * This Source Code Form is subject to the terms of the Mozilla Public
     4  * License, v. 2.0. If a copy of the MPL was not distributed with this
     5  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     7 #include "nsISupports.idl"
     9 /**
    10  * Enumeration of Programming Languages
    11  */
    13 [scriptable, uuid(ea604e90-40ba-11d5-90bb-0010a4e73d9a)]
    14 interface nsIProgrammingLanguage : nsISupports
    15 {
    16     /**
    17      * Identifiers for programming languages.
    18      */
    19     const uint32_t UNKNOWN     = 0;
    20     const uint32_t CPLUSPLUS   = 1;
    21     const uint32_t JAVASCRIPT  = 2;
    22     const uint32_t PYTHON      = 3;
    23     const uint32_t PERL        = 4;
    24     const uint32_t JAVA        = 5;
    25     const uint32_t ZX81_BASIC  = 6;  // it could happen :)
    26     const uint32_t JAVASCRIPT2 = 7;
    27     const uint32_t RUBY =        8;
    28     const uint32_t PHP =         9;
    29     const uint32_t TCL =         10;
    30     // This list can grow indefinitely. Just don't ever change an existing item.
    31     const uint32_t MAX         = 10; // keep this as the largest index.
    33 };

mercurial