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

Side by Side Diff: Source/bindings/tests/results/V8TestCallbackInterface.h

Issue 138613002: Make generated Callback bindings classes FINAL (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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
« no previous file with comments | « Source/bindings/templates/callback_interface.h ('k') | no next file » | 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 24 matching lines...) Expand all
35 35
36 #include "bindings/tests/idls/TestCallbackInterface.h" 36 #include "bindings/tests/idls/TestCallbackInterface.h"
37 #include "bindings/v8/ActiveDOMCallback.h" 37 #include "bindings/v8/ActiveDOMCallback.h"
38 #include "bindings/v8/DOMWrapperWorld.h" 38 #include "bindings/v8/DOMWrapperWorld.h"
39 #include "bindings/v8/ScopedPersistent.h" 39 #include "bindings/v8/ScopedPersistent.h"
40 40
41 namespace WebCore { 41 namespace WebCore {
42 42
43 class ExecutionContext; 43 class ExecutionContext;
44 44
45 class V8TestCallbackInterface : public TestCallbackInterface, public ActiveDOMCa llback { 45 class V8TestCallbackInterface FINAL : public TestCallbackInterface, public Activ eDOMCallback {
46 public: 46 public:
47 static PassOwnPtr<V8TestCallbackInterface> create(v8::Handle<v8::Function> c allback, ExecutionContext* context) 47 static PassOwnPtr<V8TestCallbackInterface> create(v8::Handle<v8::Function> c allback, ExecutionContext* context)
48 { 48 {
49 ASSERT(context); 49 ASSERT(context);
50 return adoptPtr(new V8TestCallbackInterface(callback, context)); 50 return adoptPtr(new V8TestCallbackInterface(callback, context));
51 } 51 }
52 52
53 virtual ~V8TestCallbackInterface(); 53 virtual ~V8TestCallbackInterface();
54 54
55 virtual void voidMethod(); 55 virtual void voidMethod() OVERRIDE;
56 virtual bool booleanMethod(); 56 virtual bool booleanMethod() OVERRIDE;
57 virtual void voidMethodBooleanArg(bool boolArg); 57 virtual void voidMethodBooleanArg(bool boolArg) OVERRIDE;
58 virtual void voidMethodSequenceArg(const Vector<RefPtr<TestInterfaceEmpty> > & sequenceArg); 58 virtual void voidMethodSequenceArg(const Vector<RefPtr<TestInterfaceEmpty> > & sequenceArg) OVERRIDE;
59 virtual void voidMethodFloatArg(float floatArg); 59 virtual void voidMethodFloatArg(float floatArg) OVERRIDE;
60 virtual void voidMethodTestInterfaceEmptyArg(TestInterfaceEmpty* testInterfa ceEmptyArg); 60 virtual void voidMethodTestInterfaceEmptyArg(TestInterfaceEmpty* testInterfa ceEmptyArg) OVERRIDE;
61 virtual void voidMethodTestInterfaceEmptyStringArg(TestInterfaceEmpty* testI nterfaceEmptyArg, const String& stringArg); 61 virtual void voidMethodTestInterfaceEmptyStringArg(TestInterfaceEmpty* testI nterfaceEmptyArg, const String& stringArg) OVERRIDE;
62 virtual void callbackWithThisValueVoidMethodStringArg(ScriptValue thisValue, const String& stringArg); 62 virtual void callbackWithThisValueVoidMethodStringArg(ScriptValue thisValue, const String& stringArg) OVERRIDE;
63 virtual void customVoidMethodTestInterfaceEmptyArg(TestInterfaceEmpty* testI nterfaceEmptyArg); 63 virtual void customVoidMethodTestInterfaceEmptyArg(TestInterfaceEmpty* testI nterfaceEmptyArg) OVERRIDE;
64 private: 64 private:
65 V8TestCallbackInterface(v8::Handle<v8::Function>, ExecutionContext*); 65 V8TestCallbackInterface(v8::Handle<v8::Function>, ExecutionContext*);
66 66
67 ScopedPersistent<v8::Function> m_callback; 67 ScopedPersistent<v8::Function> m_callback;
68 RefPtr<DOMWrapperWorld> m_world; 68 RefPtr<DOMWrapperWorld> m_world;
69 }; 69 };
70 70
71 } 71 }
72 #endif // V8TestCallbackInterface_h 72 #endif // V8TestCallbackInterface_h
OLDNEW
« no previous file with comments | « Source/bindings/templates/callback_interface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698