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

Side by Side Diff: third_party/WebKit/WebCore/bindings/v8/V8Proxy.h

Issue 21370: Implement deferToInterceptor function to help with readability of the binding... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | third_party/WebKit/WebCore/bindings/v8/custom/V8HTMLPlugInElementCustom.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/WebCore/bindings/v8/custom/V8HTMLPlugInElementCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698