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

Side by Side Diff: sky/engine/public/web/WebNode.h

Issue 697773002: Remove Element#attributes. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix template binding. Created 6 years, 1 month 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 | « sky/engine/core/frame/UseCounter.h ('k') | sky/engine/web/AssertMatchingEnums.cpp » ('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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 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
11 * copyright notice, this list of conditions and the following disclaimer 11 * copyright notice, this list of conditions and the following disclaimer
12 * in the documentation and/or other materials provided with the 12 * in the documentation and/or other materials provided with the
13 * distribution. 13 * distribution.z
14 * * Neither the name of Google Inc. nor the names of its 14 * * Neither the name of Google Inc. nor the names of its
15 * contributors may be used to endorse or promote products derived from 15 * contributors may be used to endorse or promote products derived from
16 * this software without specific prior written permission. 16 * this software without specific prior written permission.
17 * 17 *
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 BLINK_EXPORT bool equals(const WebNode&) const; 66 BLINK_EXPORT bool equals(const WebNode&) const;
67 // Required for using WebNodes in std maps. Note the order used is 67 // Required for using WebNodes in std maps. Note the order used is
68 // arbitrary and should not be expected to have any specific meaning. 68 // arbitrary and should not be expected to have any specific meaning.
69 BLINK_EXPORT bool lessThan(const WebNode&) const; 69 BLINK_EXPORT bool lessThan(const WebNode&) const;
70 70
71 bool isNull() const { return m_private.isNull(); } 71 bool isNull() const { return m_private.isNull(); }
72 72
73 enum NodeType { 73 enum NodeType {
74 ElementNode = 1, 74 ElementNode = 1,
75 AttributeNode = 2,
76 TextNode = 3, 75 TextNode = 3,
77 CDataSectionNode = 4, 76 CDataSectionNode = 4,
78 // EntityReferenceNodes are impossible to create in Blink. 77 // EntityReferenceNodes are impossible to create in Blink.
79 // EntityNodes are impossible to create in Blink. 78 // EntityNodes are impossible to create in Blink.
80 ProcessingInstructionsNode = 7, 79 ProcessingInstructionsNode = 7,
81 CommentNode = 8, 80 CommentNode = 8,
82 DocumentNode = 9, 81 DocumentNode = 9,
83 DocumentTypeNode = 10, 82 DocumentTypeNode = 10,
84 DocumentFragmentNode = 11, 83 DocumentFragmentNode = 11,
85 // NotationNodes are impossible to create in Blink. 84 // NotationNodes are impossible to create in Blink.
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 } 164 }
166 165
167 inline bool operator<(const WebNode& a, const WebNode& b) 166 inline bool operator<(const WebNode& a, const WebNode& b)
168 { 167 {
169 return a.lessThan(b); 168 return a.lessThan(b);
170 } 169 }
171 170
172 } // namespace blink 171 } // namespace blink
173 172
174 #endif 173 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/frame/UseCounter.h ('k') | sky/engine/web/AssertMatchingEnums.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698