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

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

Issue 18258003: Pow __proto__, sock :unresolved, and clunk the created callback at once. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Try to be nicer to MSVC. Created 7 years, 5 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) 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 26 matching lines...) Expand all
37 #include "core/dom/CustomElementLifecycleCallbacks.h" 37 #include "core/dom/CustomElementLifecycleCallbacks.h"
38 #include <v8.h> 38 #include <v8.h>
39 39
40 namespace WebCore { 40 namespace WebCore {
41 41
42 class Element; 42 class Element;
43 class ScriptExecutionContext; 43 class ScriptExecutionContext;
44 44
45 class V8CustomElementLifecycleCallbacks : public CustomElementLifecycleCallbacks , ActiveDOMCallback { 45 class V8CustomElementLifecycleCallbacks : public CustomElementLifecycleCallbacks , ActiveDOMCallback {
46 public: 46 public:
47 static PassRefPtr<V8CustomElementLifecycleCallbacks> create(ScriptExecutionC ontext*, v8::Handle<v8::Object> owner, v8::Handle<v8::Function> created); 47 static PassRefPtr<V8CustomElementLifecycleCallbacks> create(ScriptExecutionC ontext*, v8::Handle<v8::Object> prototype, v8::Handle<v8::Function> created);
48 48
49 virtual ~V8CustomElementLifecycleCallbacks() { } 49 virtual ~V8CustomElementLifecycleCallbacks() { }
50 50
51 private: 51 private:
52 V8CustomElementLifecycleCallbacks(ScriptExecutionContext*, v8::Handle<v8::Fu nction> created); 52 V8CustomElementLifecycleCallbacks(ScriptExecutionContext*, v8::Handle<v8::Ob ject> prototype, v8::Handle<v8::Function> created);
53 53
54 virtual void created(Element*) OVERRIDE; 54 virtual void created(Element*) OVERRIDE;
55 55
56 RefPtr<DOMWrapperWorld> m_world; 56 RefPtr<DOMWrapperWorld> m_world;
57 ScopedPersistent<v8::Object> m_prototype;
57 ScopedPersistent<v8::Function> m_created; 58 ScopedPersistent<v8::Function> m_created;
58 }; 59 };
59 60
60 } 61 }
61 62
62 #endif // V8CustomElementLifecycleCallbacks_h 63 #endif // V8CustomElementLifecycleCallbacks_h
OLDNEW
« no previous file with comments | « Source/bindings/v8/CustomElementHelpers.cpp ('k') | Source/bindings/v8/V8CustomElementLifecycleCallbacks.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698