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

Side by Side Diff: Source/core/dom/Node.h

Issue 542113003: bindings: Introduces ScriptWrappable::associateWithWrapper in addition to wrap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
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 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved.
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
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 643 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 void setAlreadySpellChecked(bool flag) { setFlag(flag, AlreadySpellCheckedFl ag); } 654 void setAlreadySpellChecked(bool flag) { setFlag(flag, AlreadySpellCheckedFl ag); }
655 bool isAlreadySpellChecked() { return getFlag(AlreadySpellCheckedFlag); } 655 bool isAlreadySpellChecked() { return getFlag(AlreadySpellCheckedFlag); }
656 656
657 bool isFinishedParsingChildren() const { return getFlag(IsFinishedParsingChi ldrenFlag); } 657 bool isFinishedParsingChildren() const { return getFlag(IsFinishedParsingChi ldrenFlag); }
658 658
659 virtual void trace(Visitor*) OVERRIDE; 659 virtual void trace(Visitor*) OVERRIDE;
660 660
661 unsigned lengthOfContents() const; 661 unsigned lengthOfContents() const;
662 662
663 virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext, v8::Isolate*) OVERRIDE; 663 virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext, v8::Isolate*) OVERRIDE;
664 v8::Handle<v8::Object> associateWithWrapper(const WrapperTypeInfo*, v8::Hand le<v8::Object> wrapper, v8::Isolate*);
664 665
665 private: 666 private:
666 enum NodeFlags { 667 enum NodeFlags {
667 HasRareDataFlag = 1, 668 HasRareDataFlag = 1,
668 669
669 // Node type flags. These never change once created. 670 // Node type flags. These never change once created.
670 IsTextFlag = 1 << 1, 671 IsTextFlag = 1 << 1,
671 IsContainerFlag = 1 << 2, 672 IsContainerFlag = 1 << 2,
672 IsElementFlag = 1 << 3, 673 IsElementFlag = 1 << 3,
673 IsHTMLFlag = 1 << 4, 674 IsHTMLFlag = 1 << 4,
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
886 } // namespace blink 887 } // namespace blink
887 888
888 #ifndef NDEBUG 889 #ifndef NDEBUG
889 // Outside the WebCore namespace for ease of invocation from gdb. 890 // Outside the WebCore namespace for ease of invocation from gdb.
890 void showNode(const blink::Node*); 891 void showNode(const blink::Node*);
891 void showTree(const blink::Node*); 892 void showTree(const blink::Node*);
892 void showNodePath(const blink::Node*); 893 void showNodePath(const blink::Node*);
893 #endif 894 #endif
894 895
895 #endif // Node_h 896 #endif // Node_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698