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

Side by Side Diff: Source/bindings/core/v8/custom/V8NodeCustom.cpp

Issue 503043003: Rename CustomElementCallbackDispatcher (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: TBR added Created 6 years, 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007-2009 Google Inc. All rights reserved. 2 * Copyright (C) 2007-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 30 matching lines...) Expand all
41 #include "bindings/core/v8/V8DocumentFragment.h" 41 #include "bindings/core/v8/V8DocumentFragment.h"
42 #include "bindings/core/v8/V8DocumentType.h" 42 #include "bindings/core/v8/V8DocumentType.h"
43 #include "bindings/core/v8/V8Element.h" 43 #include "bindings/core/v8/V8Element.h"
44 #include "bindings/core/v8/V8EventListener.h" 44 #include "bindings/core/v8/V8EventListener.h"
45 #include "bindings/core/v8/V8HTMLElement.h" 45 #include "bindings/core/v8/V8HTMLElement.h"
46 #include "bindings/core/v8/V8ProcessingInstruction.h" 46 #include "bindings/core/v8/V8ProcessingInstruction.h"
47 #include "bindings/core/v8/V8SVGElement.h" 47 #include "bindings/core/v8/V8SVGElement.h"
48 #include "bindings/core/v8/V8ShadowRoot.h" 48 #include "bindings/core/v8/V8ShadowRoot.h"
49 #include "bindings/core/v8/V8Text.h" 49 #include "bindings/core/v8/V8Text.h"
50 #include "core/dom/Document.h" 50 #include "core/dom/Document.h"
51 #include "core/dom/custom/CustomElementCallbackDispatcher.h"
52 #include "core/dom/shadow/ShadowRoot.h" 51 #include "core/dom/shadow/ShadowRoot.h"
53 #include "core/events/EventListener.h" 52 #include "core/events/EventListener.h"
54 #include "wtf/RefPtr.h" 53 #include "wtf/RefPtr.h"
55 54
56 namespace blink { 55 namespace blink {
57 56
58 // These functions are custom to prevent a wrapper lookup of the return value wh ich is always 57 // These functions are custom to prevent a wrapper lookup of the return value wh ich is always
59 // part of the arguments. 58 // part of the arguments.
60 v8::Handle<v8::Object> wrap(Node* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) 59 v8::Handle<v8::Object> wrap(Node* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
61 { 60 {
(...skipping 22 matching lines...) Expand all
84 return wrap(toDocumentType(impl), creationContext, isolate); 83 return wrap(toDocumentType(impl), creationContext, isolate);
85 case Node::DOCUMENT_FRAGMENT_NODE: 84 case Node::DOCUMENT_FRAGMENT_NODE:
86 if (impl->isShadowRoot()) 85 if (impl->isShadowRoot())
87 return wrap(toShadowRoot(impl), creationContext, isolate); 86 return wrap(toShadowRoot(impl), creationContext, isolate);
88 return wrap(toDocumentFragment(impl), creationContext, isolate); 87 return wrap(toDocumentFragment(impl), creationContext, isolate);
89 } 88 }
90 ASSERT_NOT_REACHED(); 89 ASSERT_NOT_REACHED();
91 return V8Node::createWrapper(impl, creationContext, isolate); 90 return V8Node::createWrapper(impl, creationContext, isolate);
92 } 91 }
93 } // namespace blink 92 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/CustomElementConstructorBuilder.cpp ('k') | Source/bindings/scripts/v8_attributes.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698