Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: Source/bindings/tests/idls/core/TestObject.idl

Issue 1315663004: [bindings] Bindings should only support the prescribed types for constants. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 24 matching lines...) Expand all
35 35
36 // No extended attributes on the interface; those go in TestInterface.idl 36 // No extended attributes on the interface; those go in TestInterface.idl
37 interface TestObject { 37 interface TestObject {
38 // Constants 38 // Constants
39 const unsigned short CONST_VALUE_0 = 0; 39 const unsigned short CONST_VALUE_0 = 0;
40 const unsigned short CONST_VALUE_1 = 1; 40 const unsigned short CONST_VALUE_1 = 1;
41 const unsigned short CONST_VALUE_2 = 2; 41 const unsigned short CONST_VALUE_2 = 2;
42 const unsigned short CONST_VALUE_4 = 4; 42 const unsigned short CONST_VALUE_4 = 4;
43 const unsigned short CONST_VALUE_8 = 8; 43 const unsigned short CONST_VALUE_8 = 8;
44 const short CONST_VALUE_9 = -1; 44 const short CONST_VALUE_9 = -1;
45 const DOMString CONST_VALUE_10 = "my constant string";
46 const unsigned short CONST_VALUE_11 = 0xffffffff; 45 const unsigned short CONST_VALUE_11 = 0xffffffff;
47 const unsigned short CONST_VALUE_12 = 0x01; 46 const unsigned short CONST_VALUE_12 = 0x01;
48 const unsigned short CONST_VALUE_13 = 0X20; 47 const unsigned short CONST_VALUE_13 = 0X20;
49 const unsigned short CONST_VALUE_14 = 0x1abc; 48 const unsigned short CONST_VALUE_14 = 0x1abc;
50 const unsigned short CONST_VALUE_15 = 010; 49 const unsigned short CONST_VALUE_15 = 010;
51 const unsigned short CONST_VALUE_16 = -010; 50 const unsigned short CONST_VALUE_16 = -010;
52 const unsigned short CONST_VALUE_16 = -0x1A; 51 const unsigned short CONST_VALUE_16 = -0x1A;
53 const unsigned short CONST_VALUE_17 = -0X1a; 52 const unsigned short CONST_VALUE_17 = -0X1a;
54 const double CONST_VALUE_18 = 0.123; 53 const double CONST_VALUE_18 = 0.123;
55 const double CONST_VALUE_19 = 4e9; 54 const double CONST_VALUE_19 = 4e9;
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 [ImplementedInPrivateScript] attribute DOMString stringAttribute; 607 [ImplementedInPrivateScript] attribute DOMString stringAttribute;
609 [ImplementedInPrivateScript] attribute Node nodeAttribute; 608 [ImplementedInPrivateScript] attribute Node nodeAttribute;
610 [OnlyExposedToPrivateScript] short methodImplementedInCPPForPrivateScriptOnl y(short value1, short value2); 609 [OnlyExposedToPrivateScript] short methodImplementedInCPPForPrivateScriptOnl y(short value1, short value2);
611 [OnlyExposedToPrivateScript] attribute DOMString attributeImplementedInCPPFo rPrivateScriptOnly; 610 [OnlyExposedToPrivateScript] attribute DOMString attributeImplementedInCPPFo rPrivateScriptOnly;
612 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] short methodForPriv ateScriptOnly(short value1, short value2); 611 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] short methodForPriv ateScriptOnly(short value1, short value2);
613 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] attribute DOMString attributeForPrivateScriptOnly; 612 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] attribute DOMString attributeForPrivateScriptOnly;
614 [ImplementedInPrivateScript] attribute TestEnum enumForPrivateScript; 613 [ImplementedInPrivateScript] attribute TestEnum enumForPrivateScript;
615 614
616 maplike<long, DOMStringOrDouble>; 615 maplike<long, DOMStringOrDouble>;
617 }; 616 };
OLDNEW
« no previous file with comments | « Source/bindings/templates/constants.cpp ('k') | Source/bindings/tests/results/core/V8TestException.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698