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

Side by Side Diff: Source/WebCore/bindings/v8/V8Utilities.h

Issue 9963061: Merge 112184 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 years, 8 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) 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
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
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
OLDNEW
« no previous file with comments | « Source/WebCore/bindings/generic/BindingSecurity.h ('k') | Source/WebCore/bindings/v8/V8Utilities.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698