OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 19 matching lines...) Expand all Loading... | |
30 | 30 |
31 #ifndef V8Proxy_h | 31 #ifndef V8Proxy_h |
32 #define V8Proxy_h | 32 #define V8Proxy_h |
33 | 33 |
34 // FIXME: This is a temporary forwarding header until all bindings have migrated | 34 // FIXME: This is a temporary forwarding header until all bindings have migrated |
35 // over and v8_proxy actually becomes V8Proxy. | 35 // over and v8_proxy actually becomes V8Proxy. |
36 #include "v8_proxy.h" | 36 #include "v8_proxy.h" |
37 | 37 |
38 namespace WebCore { | 38 namespace WebCore { |
39 | 39 |
40 // Used by a bindings function to inform its interceptor that it's up to the | |
41 // interceptor to provide the result of this call. | |
42 inline static v8::Local<v8::Object> deferToInterceptor() | |
Mads Ager (chromium)
2009/02/16 06:46:11
We should name this differently. The NamedPropert
| |
43 { | |
44 return v8::Local<v8::Object>(); | |
45 } | |
46 | |
40 inline v8::Handle<v8::Primitive> throwError(const char* message, V8Proxy::Er rorType type = V8Proxy::TYPE_ERROR) | 47 inline v8::Handle<v8::Primitive> throwError(const char* message, V8Proxy::Er rorType type = V8Proxy::TYPE_ERROR) |
41 { | 48 { |
42 V8Proxy::ThrowError(type, message); | 49 V8Proxy::ThrowError(type, message); |
43 return v8::Undefined(); | 50 return v8::Undefined(); |
44 } | 51 } |
45 | 52 |
46 } | 53 } |
47 | 54 |
48 #endif // V8Proxy_h | 55 #endif // V8Proxy_h |
OLD | NEW |