summaryrefslogtreecommitdiffstats
path: root/webkit/port/bindings/v8/v8_proxy.h
diff options
context:
space:
mode:
authorjianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-03 20:51:16 +0000
committerjianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-03 20:51:16 +0000
commit933a23d23270bba7b6a3a26c2424b299386b548e (patch)
tree3c42d8b6d0cd5053cdb9390a2d02b4df6ec73243 /webkit/port/bindings/v8/v8_proxy.h
parentf16576d5803e57d36bf625cc3f23c9530f683dcd (diff)
downloadchromium_src-933a23d23270bba7b6a3a26c2424b299386b548e.zip
chromium_src-933a23d23270bba7b6a3a26c2424b299386b548e.tar.gz
chromium_src-933a23d23270bba7b6a3a26c2424b299386b548e.tar.bz2
Chrome side change to use V8EventListenerList from upstream. This involves removing V8EventListenerList from v8_proxy and change the project files to compile V8EventListenerList.
Review URL: http://codereview.chromium.org/60102 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13107 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port/bindings/v8/v8_proxy.h')
-rw-r--r--webkit/port/bindings/v8/v8_proxy.h30
1 files changed, 1 insertions, 29 deletions
diff --git a/webkit/port/bindings/v8/v8_proxy.h b/webkit/port/bindings/v8/v8_proxy.h
index d1a7a9f..3c4e833 100644
--- a/webkit/port/bindings/v8/v8_proxy.h
+++ b/webkit/port/bindings/v8/v8_proxy.h
@@ -16,6 +16,7 @@
#include "ScriptSourceCode.h" // for WebCore::ScriptSourceCode
#include "SecurityOrigin.h" // for WebCore::SecurityOrigin
#include "V8DOMMap.h"
+#include "V8EventListenerList.h"
#include <wtf/Assertions.h>
#include <wtf/PassRefPtr.h> // so generated bindings don't have to
#include <wtf/Vector.h>
@@ -77,35 +78,6 @@ class SVGElementInstance;
class V8EventListener;
class V8ObjectEventListener;
-// This is a container for V8EventListener objects that also does some
-// caching to speed up finding entries by v8::Object.
-class V8EventListenerList {
- public:
- static const size_t kMaxKeyNameLength = 254;
- // The name should be distinct from any other V8EventListenerList
- // within the same process, and <= kMaxKeyNameLength characters.
- explicit V8EventListenerList(const char* name);
- ~V8EventListenerList();
-
- typedef Vector<V8EventListener*>::iterator iterator;
- V8EventListenerList::iterator begin();
- iterator end();
-
- // In addition to adding the listener to this list, this also caches the
- // V8EventListener as a hidden property on its wrapped v8 listener object,
- // so we can quickly look it up later.
- void add(V8EventListener*);
- void remove(V8EventListener*);
- V8EventListener* find(v8::Local<v8::Object>, bool isInline);
- void clear();
-
- private:
- v8::Handle<v8::String> getKey(bool isInline);
- v8::Persistent<v8::String> m_inlineKey;
- v8::Persistent<v8::String> m_nonInlineKey;
- Vector<V8EventListener*> m_list;
-};
-
// TODO(fqian): use standard logging facilities in WebCore.
void log_info(Frame* frame, const String& msg, const String& url);