1// Copyright 2014 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5// Tests function and callback types in various places in IDL. 6 7namespace idl_function_types { 8 callback MyCallback = void(long x); 9 callback MyUnionCallback = void ((long or DOMString) x); 10 callback MyOptionalUnionCallback = void (optional (long or DOMString) x); 11 12 interface Functions { 13 static void whatever(MyCallback[] callbacks); 14 static void blah(MyUnionCallback callback); 15 static void badabish(MyOptionalUnionCallback callback); 16 static void union_params((long or DOMString) x); 17 }; 18}; 19