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

Side by Side Diff: Source/bindings/v8/V8AbstractEventListener.h

Issue 137603004: Update more bindings classes to use OVERRIDE / FINAL when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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
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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 119
120 void setListenerObject(v8::Handle<v8::Object> listener); 120 void setListenerObject(v8::Handle<v8::Object> listener);
121 121
122 void invokeEventHandler(ExecutionContext*, Event*, v8::Local<v8::Value> jsEvent); 122 void invokeEventHandler(ExecutionContext*, Event*, v8::Local<v8::Value> jsEvent);
123 123
124 // Get the receiver object to use for event listener call. 124 // Get the receiver object to use for event listener call.
125 v8::Local<v8::Object> getReceiverObject(ExecutionContext*, Event*); 125 v8::Local<v8::Object> getReceiverObject(ExecutionContext*, Event*);
126 126
127 private: 127 private:
128 // Implementation of EventListener function. 128 // Implementation of EventListener function.
129 virtual bool virtualisAttribute() const { return m_isAttribute; } 129 virtual bool virtualisAttribute() const OVERRIDE { return m_isAttribute; }
130 130
131 virtual v8::Local<v8::Value> callListenerFunction(ExecutionContext*, v8: :Handle<v8::Value> jsevent, Event*) = 0; 131 virtual v8::Local<v8::Value> callListenerFunction(ExecutionContext*, v8: :Handle<v8::Value> jsevent, Event*) = 0;
132 132
133 virtual bool shouldPreventDefault(v8::Local<v8::Value> returnValue); 133 virtual bool shouldPreventDefault(v8::Local<v8::Value> returnValue);
134 134
135 static void setWeakCallback(const v8::WeakCallbackData<v8::Object, V8Abs tractEventListener>&); 135 static void setWeakCallback(const v8::WeakCallbackData<v8::Object, V8Abs tractEventListener>&);
136 136
137 ScopedPersistent<v8::Object> m_listener; 137 ScopedPersistent<v8::Object> m_listener;
138 138
139 // Indicates if this is an HTML type listener. 139 // Indicates if this is an HTML type listener.
140 bool m_isAttribute; 140 bool m_isAttribute;
141 141
142 RefPtr<DOMWrapperWorld> m_world; 142 RefPtr<DOMWrapperWorld> m_world;
143 v8::Isolate* m_isolate; 143 v8::Isolate* m_isolate;
144 }; 144 };
145 145
146 } // namespace WebCore 146 } // namespace WebCore
147 147
148 #endif // V8AbstractEventListener_h 148 #endif // V8AbstractEventListener_h
OLDNEW
« no previous file with comments | « Source/bindings/v8/SerializedScriptValue.cpp ('k') | Source/bindings/v8/WorkerScriptDebugServer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698