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

Side by Side Diff: Source/WebCore/dom/MicroDataItemList.h

Issue 14028014: Remove MicroData implementation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Also delete all the tests Created 7 years, 8 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/WebCore/dom/LiveNodeList.cpp ('k') | Source/WebCore/dom/MicroDataItemList.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2011 Motorola Mobility, Inc. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 *
13 * THIS SOFTWARE IS PROVIDED BY MOTOROLA MOBILITY, INC. AND ITS CONTRIBUTORS
14 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED T O,
15 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL MOTOROLA MOBILITY, INC. OR ITS
17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
20 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
21 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHER WISE)
22 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
23 * THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26 #ifndef MicroDataItemList_h
27 #define MicroDataItemList_h
28
29 #if ENABLE(MICRODATA)
30
31 #include "LiveNodeList.h"
32 #include "Node.h"
33 #include "SpaceSplitString.h"
34
35 namespace WebCore {
36
37 class MicroDataItemList : public LiveNodeList {
38 public:
39 static PassRefPtr<MicroDataItemList> create(PassRefPtr<Node> rootNode, const String& typeNames)
40 {
41 return adoptRef(new MicroDataItemList(rootNode, typeNames));
42 }
43
44 virtual ~MicroDataItemList();
45
46 static const String& undefinedItemType();
47
48 private:
49 MicroDataItemList(PassRefPtr<Node> rootNode, const String& typeNames);
50
51 virtual bool nodeMatches(Element*) const;
52
53 SpaceSplitString m_typeNames;
54 String m_originalTypeNames;
55 };
56
57 } // namespace WebCore
58
59 #endif // ENABLE(MICRODATA)
60 #endif // MicroDataItemList_h
OLDNEW
« no previous file with comments | « Source/WebCore/dom/LiveNodeList.cpp ('k') | Source/WebCore/dom/MicroDataItemList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698