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

Side by Side Diff: Source/core/html/HTMLElement.cpp

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLElement.h ('k') | Source/core/html/HTMLEmbedElement.h » ('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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2004-2008, 2013, 2014 Apple Inc. All rights reserved. 4 * Copyright (C) 2004-2008, 2013, 2014 Apple Inc. All rights reserved.
5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
6 * Copyright (C) 2011 Motorola Mobility. All rights reserved. 6 * Copyright (C) 2011 Motorola Mobility. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 12 matching lines...) Expand all
23 */ 23 */
24 24
25 #include "config.h" 25 #include "config.h"
26 #include "core/html/HTMLElement.h" 26 #include "core/html/HTMLElement.h"
27 27
28 #include "bindings/core/v8/ExceptionState.h" 28 #include "bindings/core/v8/ExceptionState.h"
29 #include "bindings/core/v8/ScriptEventListener.h" 29 #include "bindings/core/v8/ScriptEventListener.h"
30 #include "core/CSSPropertyNames.h" 30 #include "core/CSSPropertyNames.h"
31 #include "core/CSSValueKeywords.h" 31 #include "core/CSSValueKeywords.h"
32 #include "core/HTMLNames.h" 32 #include "core/HTMLNames.h"
33 #include "core/V8HTMLElementWrapperFactory.h" // FIXME: should be bindings/core/ v8
33 #include "core/XMLNames.h" 34 #include "core/XMLNames.h"
34 #include "core/css/CSSMarkup.h" 35 #include "core/css/CSSMarkup.h"
35 #include "core/css/CSSValuePool.h" 36 #include "core/css/CSSValuePool.h"
36 #include "core/css/StylePropertySet.h" 37 #include "core/css/StylePropertySet.h"
37 #include "core/dom/DocumentFragment.h" 38 #include "core/dom/DocumentFragment.h"
38 #include "core/dom/ElementTraversal.h" 39 #include "core/dom/ElementTraversal.h"
39 #include "core/dom/ExceptionCode.h" 40 #include "core/dom/ExceptionCode.h"
40 #include "core/dom/NodeTraversal.h" 41 #include "core/dom/NodeTraversal.h"
41 #include "core/dom/Text.h" 42 #include "core/dom/Text.h"
42 #include "core/dom/shadow/ElementShadow.h" 43 #include "core/dom/shadow/ElementShadow.h"
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 event->setDefaultHandled(); 983 event->setDefaultHandled();
983 } 984 }
984 } 985 }
985 986
986 const AtomicString& HTMLElement::eventParameterName() 987 const AtomicString& HTMLElement::eventParameterName()
987 { 988 {
988 DEFINE_STATIC_LOCAL(const AtomicString, eventString, ("event", AtomicString: :ConstructFromLiteral)); 989 DEFINE_STATIC_LOCAL(const AtomicString, eventString, ("event", AtomicString: :ConstructFromLiteral));
989 return eventString; 990 return eventString;
990 } 991 }
991 992
993 v8::Handle<v8::Object> HTMLElement::wrap(v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
994 {
995 return createV8HTMLWrapper(this, creationContext, isolate);
996 }
997
992 } // namespace blink 998 } // namespace blink
993 999
994 #ifndef NDEBUG 1000 #ifndef NDEBUG
995 1001
996 // For use in the debugger 1002 // For use in the debugger
997 void dumpInnerHTML(blink::HTMLElement*); 1003 void dumpInnerHTML(blink::HTMLElement*);
998 1004
999 void dumpInnerHTML(blink::HTMLElement* element) 1005 void dumpInnerHTML(blink::HTMLElement* element)
1000 { 1006 {
1001 printf("%s\n", element->innerHTML().ascii().data()); 1007 printf("%s\n", element->innerHTML().ascii().data());
1002 } 1008 }
1003 #endif 1009 #endif
OLDNEW
« no previous file with comments | « Source/core/html/HTMLElement.h ('k') | Source/core/html/HTMLEmbedElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698