summaryrefslogtreecommitdiffstats
path: root/tools/json_schema_compiler/test/idl_reserved_words.idl
blob: 411973e611dff73522aa382b419d5e6c2263ef59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Tests 'reserved words' in various places in IDL.

namespace reserved_words {

  enum Foo { _float, _DOMString };

  enum _enum {
    _callback,
    _namespace
  };

  dictionary _dictionary {
    long _long;
  };

  dictionary MyType {
    DOMString _interface;
  };

  interface Functions {
    static void _static(Foo foo, _enum e);
  };
};