| 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 29 matching lines...) Expand all Loading... |
| 40 class Frame; | 40 class Frame; |
| 41 | 41 |
| 42 // V8ObjectEventListener is a special listener wrapper for objects not in th
e DOM. It keeps the JS listener as a weak pointer. | 42 // V8ObjectEventListener is a special listener wrapper for objects not in th
e DOM. It keeps the JS listener as a weak pointer. |
| 43 class V8ObjectEventListener : public V8EventListener { | 43 class V8ObjectEventListener : public V8EventListener { |
| 44 public: | 44 public: |
| 45 static PassRefPtr<V8ObjectEventListener> create(Frame* frame, v8::Local<
v8::Object> listener, bool isInline) | 45 static PassRefPtr<V8ObjectEventListener> create(Frame* frame, v8::Local<
v8::Object> listener, bool isInline) |
| 46 { | 46 { |
| 47 return adoptRef(new V8ObjectEventListener(frame, listener, isInline)
); | 47 return adoptRef(new V8ObjectEventListener(frame, listener, isInline)
); |
| 48 } | 48 } |
| 49 | 49 |
| 50 virtual bool isObjectListener() const { return true; } |
| 51 |
| 50 private: | 52 private: |
| 51 V8ObjectEventListener(Frame*, v8::Local<v8::Object> listener, bool isInl
ine); | 53 V8ObjectEventListener(Frame*, v8::Local<v8::Object> listener, bool isInl
ine); |
| 52 virtual ~V8ObjectEventListener(); | 54 virtual ~V8ObjectEventListener(); |
| 53 }; | 55 }; |
| 54 | 56 |
| 55 } // namespace WebCore | 57 } // namespace WebCore |
| 56 | 58 |
| 57 #endif // V8ObjectEventListener_h | 59 #endif // V8ObjectEventListener_h |
| OLD | NEW |