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

Side by Side Diff: WebCore/bindings/v8/V8AbstractEventListener.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/scripts/CodeGeneratorV8.pm ('k') | WebCore/bindings/v8/V8DOMWrapper.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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 virtual v8::Local<v8::Object> getListenerObject() 58 virtual v8::Local<v8::Object> getListenerObject()
59 { 59 {
60 return v8::Local<v8::Object>::New(m_listener); 60 return v8::Local<v8::Object>::New(m_listener);
61 } 61 }
62 62
63 // Dispose listener object and clear the handle. 63 // Dispose listener object and clear the handle.
64 void disposeListenerObject(); 64 void disposeListenerObject();
65 65
66 virtual bool disconnected() const { return !m_frame; } 66 virtual bool disconnected() const { return !m_frame; }
67 67
68 virtual bool isObjectListener() const { return false; }
69
68 protected: 70 protected:
69 v8::Persistent<v8::Object> m_listener; 71 v8::Persistent<v8::Object> m_listener;
70 72
71 // Indicates if this is an HTML type listener. 73 // Indicates if this is an HTML type listener.
72 bool m_isAttribute; 74 bool m_isAttribute;
73 75
74 private: 76 private:
75 V8AbstractEventListener(Frame*, bool isInline); 77 V8AbstractEventListener(Frame*, bool isInline);
76 78
77 virtual v8::Local<v8::Value> callListenerFunction(v8::Handle<v8::Value> jsevent, Event*, bool isWindowEvent) = 0; 79 virtual v8::Local<v8::Value> callListenerFunction(v8::Handle<v8::Value> jsevent, Event*, bool isWindowEvent) = 0;
(...skipping 11 matching lines...) Expand all
89 int m_columnNumber; 91 int m_columnNumber;
90 92
91 friend class V8EventListener; 93 friend class V8EventListener;
92 friend class V8ObjectEventListener; 94 friend class V8ObjectEventListener;
93 friend class V8LazyEventListener; 95 friend class V8LazyEventListener;
94 }; 96 };
95 97
96 } // namespace WebCore 98 } // namespace WebCore
97 99
98 #endif // V8AbstractEventListener_h 100 #endif // V8AbstractEventListener_h
OLDNEW
« no previous file with comments | « WebCore/bindings/scripts/CodeGeneratorV8.pm ('k') | WebCore/bindings/v8/V8DOMWrapper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698