| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 class ScriptExecutionContext; | 49 class ScriptExecutionContext; |
| 50 class ScriptState; | 50 class ScriptState; |
| 51 | 51 |
| 52 // Use an array to hold dependents. It works like a ref-counted scheme. A va
lue can be added more than once to the DOM object. | 52 // Use an array to hold dependents. It works like a ref-counted scheme. A va
lue can be added more than once to the DOM object. |
| 53 void createHiddenDependency(v8::Handle<v8::Object>, v8::Local<v8::Value>, in
t cacheIndex); | 53 void createHiddenDependency(v8::Handle<v8::Object>, v8::Local<v8::Value>, in
t cacheIndex); |
| 54 void removeHiddenDependency(v8::Handle<v8::Object>, v8::Local<v8::Value>, in
t cacheIndex); | 54 void removeHiddenDependency(v8::Handle<v8::Object>, v8::Local<v8::Value>, in
t cacheIndex); |
| 55 | 55 |
| 56 // Combo create/remove, for generated event-handler-setter bindings: | 56 // Combo create/remove, for generated event-handler-setter bindings: |
| 57 void transferHiddenDependency(v8::Handle<v8::Object>, EventListener* oldValu
e, v8::Local<v8::Value> newValue, int cacheIndex); | 57 void transferHiddenDependency(v8::Handle<v8::Object>, EventListener* oldValu
e, v8::Local<v8::Value> newValue, int cacheIndex); |
| 58 | 58 |
| 59 bool shouldAllowNavigation(Frame*); | |
| 60 KURL completeURL(const String& relativeURL); | 59 KURL completeURL(const String& relativeURL); |
| 61 | 60 |
| 62 ScriptExecutionContext* getScriptExecutionContext(); | 61 ScriptExecutionContext* getScriptExecutionContext(); |
| 63 | 62 |
| 64 void throwTypeMismatchException(); | 63 void throwTypeMismatchException(); |
| 65 | 64 |
| 66 enum CallbackAllowedValueFlag { | 65 enum CallbackAllowedValueFlag { |
| 67 CallbackAllowUndefined = 1, | 66 CallbackAllowUndefined = 1, |
| 68 CallbackAllowNull = 1 << 1 | 67 CallbackAllowNull = 1 << 1 |
| 69 }; | 68 }; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 throwTypeMismatchException(); | 105 throwTypeMismatchException(); |
| 107 return 0; | 106 return 0; |
| 108 } | 107 } |
| 109 | 108 |
| 110 return V8CallbackType::create(value, getScriptExecutionContext()); | 109 return V8CallbackType::create(value, getScriptExecutionContext()); |
| 111 } | 110 } |
| 112 | 111 |
| 113 } // namespace WebCore | 112 } // namespace WebCore |
| 114 | 113 |
| 115 #endif // V8Utilities_h | 114 #endif // V8Utilities_h |
| OLD | NEW |