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

Side by Side Diff: WebCore/bindings/v8/V8ObjectEventListener.h

Issue 174381: Merge Webkit 47001 - 20090810 Vitaly Repeshko <vitalyr@quad.spb.corp.google... (Closed) Base URL: svn://chrome-svn/chrome/branches/WebKit/195/
Patch Set: Created 11 years, 4 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 | « WebCore/bindings/v8/V8DOMWrapper.cpp ('k') | WebCore/bindings/v8/V8ObjectEventListener.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) 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
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
OLDNEW
« no previous file with comments | « WebCore/bindings/v8/V8DOMWrapper.cpp ('k') | WebCore/bindings/v8/V8ObjectEventListener.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698