]>
git.saurik.com Git - iphone-api.git/blob - WebCore/DocumentMarker.h
2 * This file is part of the DOM implementation for WebCore.
4 * Copyright (C) 2006 Apple Computer, Inc.
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
23 #ifndef DocumentMarker_h
24 #define DocumentMarker_h
26 #include "PlatformString.h"
31 // A range of a node within a document that is "marked", such as the range of a misspelled word.
32 // It optionally includes a description that could be displayed in the user interface.
33 struct DocumentMarker
{
47 bool operator==(const DocumentMarker
& o
) const
49 return type
== o
.type
&& startOffset
== o
.startOffset
&& endOffset
== o
.endOffset
;
52 bool operator!=(const DocumentMarker
& o
) const
58 } // namespace WebCore
60 #endif // DocumentMarker_h