Commit 784b1fe2 authored by hyatt@apple.com's avatar hyatt@apple.com

2009-06-22 David Hyatt <hyatt@apple.com>

        Reviewed by Sam Weinig.

        https://bugs.webkit.org/show_bug.cgi?id=26607

        Add IDL for HTMLDataGridRowElement.

        * DerivedSources.make:
        * GNUmakefile.am:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * WebCoreSources.bkl:
        * html/HTMLAttributeNames.in:
        * html/HTMLDataGridColElement.cpp:
        (WebCore::HTMLDataGridColElement::primary):
        (WebCore::HTMLDataGridColElement::setPrimary):
        * html/HTMLDataGridColElement.h:
        * html/HTMLDataGridColElement.idl:
        * html/HTMLDataGridElement.cpp:
        (WebCore::HTMLDataGridElement::checkDTD):
        (WebCore::HTMLDataGridElement::multiple):
        (WebCore::HTMLDataGridElement::setMultiple):
        * html/HTMLDataGridElement.h:
        * html/HTMLDataGridElement.idl:
        * html/HTMLDataGridRowElement.cpp: Added.
        (WebCore::HTMLDataGridRowElement::HTMLDataGridRowElement):
        (WebCore::HTMLDataGridRowElement::selected):
        (WebCore::HTMLDataGridRowElement::setSelected):
        (WebCore::HTMLDataGridRowElement::focused):
        (WebCore::HTMLDataGridRowElement::setFocused):
        * html/HTMLDataGridRowElement.h: Added.
        (WebCore::HTMLDataGridRowElement::tagPriority):
        * html/HTMLDataGridRowElement.idl: Added.
        * html/HTMLTagNames.in:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@44937 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 549196cc
2009-06-22 David Hyatt <hyatt@apple.com>
Reviewed by Sam Weinig.
https://bugs.webkit.org/show_bug.cgi?id=26607
Add IDL for HTMLDataGridRowElement.
* DerivedSources.make:
* GNUmakefile.am:
* WebCore.pro:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
* WebCoreSources.bkl:
* html/HTMLAttributeNames.in:
* html/HTMLDataGridColElement.cpp:
(WebCore::HTMLDataGridColElement::primary):
(WebCore::HTMLDataGridColElement::setPrimary):
* html/HTMLDataGridColElement.h:
* html/HTMLDataGridColElement.idl:
* html/HTMLDataGridElement.cpp:
(WebCore::HTMLDataGridElement::checkDTD):
(WebCore::HTMLDataGridElement::multiple):
(WebCore::HTMLDataGridElement::setMultiple):
* html/HTMLDataGridElement.h:
* html/HTMLDataGridElement.idl:
* html/HTMLDataGridRowElement.cpp: Added.
(WebCore::HTMLDataGridRowElement::HTMLDataGridRowElement):
(WebCore::HTMLDataGridRowElement::selected):
(WebCore::HTMLDataGridRowElement::setSelected):
(WebCore::HTMLDataGridRowElement::focused):
(WebCore::HTMLDataGridRowElement::setFocused):
* html/HTMLDataGridRowElement.h: Added.
(WebCore::HTMLDataGridRowElement::tagPriority):
* html/HTMLDataGridRowElement.idl: Added.
* html/HTMLTagNames.in:
2009-06-19 Yael Aharon <yael.aharon@nokia.com>
Reviewed by Holger Freyther.
......
......@@ -112,6 +112,7 @@ DOM_CLASSES = \
HTMLCollection \
HTMLDataGridElement \
HTMLDataGridColElement \
HTMLDataGridRowElement \
HTMLDListElement \
HTMLDirectoryElement \
HTMLDivElement \
......
......@@ -170,6 +170,7 @@ IDL_BINDINGS += \
WebCore/html/HTMLCollection.idl \
WebCore/html/HTMLDataGridElement.idl \
WebCore/html/HTMLDataGridColElement.idl \
WebCore/html/HTMLDataGridRowElement.idl \
WebCore/html/HTMLDListElement.idl \
WebCore/html/HTMLDirectoryElement.idl \
WebCore/html/HTMLDivElement.idl \
......@@ -924,10 +925,12 @@ webcore_sources += \
WebCore/html/HTMLCanvasElement.h \
WebCore/html/HTMLCollection.cpp \
WebCore/html/HTMLCollection.h \
WebCore/html/HTMLDataGridColElement.cpp \
WebCore/html/HTMLDataGridColElement.h \
WebCore/html/HTMLDataGridElement.cpp \
WebCore/html/HTMLDataGridElement.h \
WebCore/html/HTMLDataGridColElement.cpp \
WebCore/html/HTMLDataGridColElement.h \
WebCore/html/HTMLDataGridRowElement.cpp \
WebCore/html/HTMLDataGridRowElement.h \
WebCore/html/HTMLDListElement.cpp \
WebCore/html/HTMLDListElement.h \
WebCore/html/HTMLDirectoryElement.cpp \
......
......@@ -347,6 +347,7 @@ IDL_BINDINGS += \
html/HTMLCollection.idl \
html/HTMLDataGridElement.idl \
html/HTMLDataGridColElement.idl \
html/HTMLDataGridRowElement.idl \
html/HTMLDirectoryElement.idl \
html/HTMLDivElement.idl \
html/HTMLDListElement.idl \
......@@ -759,6 +760,7 @@ SOURCES += \
html/HTMLCollection.cpp \
html/HTMLDataGridElement.cpp \
html/HTMLDataGridColElement.cpp \
html/HTMLDataGridRowElement.cpp \
html/HTMLDirectoryElement.cpp \
html/HTMLDivElement.cpp \
html/HTMLDListElement.cpp \
......
......@@ -3493,6 +3493,54 @@
RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSHTMLDataGridColElement.h"
>
</File>
<File
RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSHTMLDataGridRowElement.cpp"
>
<FileConfiguration
Name="Debug|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Debug_Internal|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Debug_Cairo|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Release_Cairo|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
</File>
<File
RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSHTMLDataGridRowElement.h"
>
</File>
<File
RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSHTMLDirectoryElement.cpp"
>
......@@ -23263,19 +23311,19 @@
>
</File>
<File
RelativePath="..\dom\MessagePortChannel.cpp"
>
</File>
<File
RelativePath="..\dom\MessagePortChannel.h"
>
</File>
<File
RelativePath="..\dom\default\PlatformMessagePortChannel.cpp"
>
</File>
<File
RelativePath="..\dom\default\PlatformMessagePortChannel.h"
RelativePath="..\dom\MessagePortChannel.cpp"
>
</File>
<File
RelativePath="..\dom\MessagePortChannel.h"
>
</File>
<File
RelativePath="..\dom\default\PlatformMessagePortChannel.cpp"
>
</File>
<File
RelativePath="..\dom\default\PlatformMessagePortChannel.h"
>
</File>
<File
......@@ -24814,6 +24862,54 @@
RelativePath="..\html\HTMLDataGridColElement.h"
>
</File>
<File
RelativePath="..\html\HTMLDataGridRowElement.cpp"
>
<FileConfiguration
Name="Debug|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Debug_Internal|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Debug_Cairo|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Release_Cairo|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\html\HTMLDataGridRowElement.h"
>
</File>
<File
RelativePath="..\html\HTMLDirectoryElement.cpp"
>
......
......@@ -4041,6 +4041,11 @@
BC77CBAA0FEBF6C90070887B /* HTMLDataGridColElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC77CBA90FEBF6C90070887B /* HTMLDataGridColElement.cpp */; };
BC77CBD30FEBF8310070887B /* JSHTMLDataGridColElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC77CBD10FEBF8310070887B /* JSHTMLDataGridColElement.cpp */; };
BC77CBD40FEBF8310070887B /* JSHTMLDataGridColElement.h in Headers */ = {isa = PBXBuildFile; fileRef = BC77CBD20FEBF8310070887B /* JSHTMLDataGridColElement.h */; };
BC77CC6C0FEC3D5F0070887B /* HTMLDataGridRowElement.idl in Resources */ = {isa = PBXBuildFile; fileRef = BC77CC6B0FEC3D5F0070887B /* HTMLDataGridRowElement.idl */; };
BC77CCEE0FEFDE6C0070887B /* HTMLDataGridRowElement.h in Headers */ = {isa = PBXBuildFile; fileRef = BC77CCED0FEFDE6C0070887B /* HTMLDataGridRowElement.h */; };
BC77CD420FEFE0C40070887B /* HTMLDataGridRowElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC77CD410FEFE0C40070887B /* HTMLDataGridRowElement.cpp */; };
BC77CD4E0FEFE1610070887B /* JSHTMLDataGridRowElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC77CD4C0FEFE1610070887B /* JSHTMLDataGridRowElement.cpp */; };
BC77CD4F0FEFE1610070887B /* JSHTMLDataGridRowElement.h in Headers */ = {isa = PBXBuildFile; fileRef = BC77CD4D0FEFE1610070887B /* JSHTMLDataGridRowElement.h */; };
BC7F44A80B9E324E00A9D081 /* ImageObserver.h in Headers */ = {isa = PBXBuildFile; fileRef = BC7F44A70B9E324E00A9D081 /* ImageObserver.h */; settings = {ATTRIBUTES = (Private, ); }; };
BC7FA6200D1F0CBD00DB22A9 /* DynamicNodeList.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC7FA61E0D1F0CBD00DB22A9 /* DynamicNodeList.cpp */; };
BC7FA6210D1F0CBD00DB22A9 /* DynamicNodeList.h in Headers */ = {isa = PBXBuildFile; fileRef = BC7FA61F0D1F0CBD00DB22A9 /* DynamicNodeList.h */; };
......@@ -8835,6 +8840,11 @@
BC77CBA90FEBF6C90070887B /* HTMLDataGridColElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = HTMLDataGridColElement.cpp; sourceTree = "<group>"; };
BC77CBD10FEBF8310070887B /* JSHTMLDataGridColElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLDataGridColElement.cpp; sourceTree = "<group>"; };
BC77CBD20FEBF8310070887B /* JSHTMLDataGridColElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSHTMLDataGridColElement.h; sourceTree = "<group>"; };
BC77CC6B0FEC3D5F0070887B /* HTMLDataGridRowElement.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = HTMLDataGridRowElement.idl; sourceTree = "<group>"; };
BC77CCED0FEFDE6C0070887B /* HTMLDataGridRowElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HTMLDataGridRowElement.h; sourceTree = "<group>"; };
BC77CD410FEFE0C40070887B /* HTMLDataGridRowElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = HTMLDataGridRowElement.cpp; sourceTree = "<group>"; };
BC77CD4C0FEFE1610070887B /* JSHTMLDataGridRowElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLDataGridRowElement.cpp; sourceTree = "<group>"; };
BC77CD4D0FEFE1610070887B /* JSHTMLDataGridRowElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSHTMLDataGridRowElement.h; sourceTree = "<group>"; };
BC7B2AF80450824100A8000F /* Scrollbar.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = Scrollbar.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
BC7F44A70B9E324E00A9D081 /* ImageObserver.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ImageObserver.h; sourceTree = "<group>"; };
BC7FA61E0D1F0CBD00DB22A9 /* DynamicNodeList.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DynamicNodeList.cpp; sourceTree = "<group>"; };
......@@ -11649,6 +11659,9 @@
BC77CBA90FEBF6C90070887B /* HTMLDataGridColElement.cpp */,
BC77CB860FEBF5AF0070887B /* HTMLDataGridColElement.h */,
BC77CB880FEBF5BA0070887B /* HTMLDataGridColElement.idl */,
BC77CD410FEFE0C40070887B /* HTMLDataGridRowElement.cpp */,
BC77CCED0FEFDE6C0070887B /* HTMLDataGridRowElement.h */,
BC77CC6B0FEC3D5F0070887B /* HTMLDataGridRowElement.idl */,
A8EA79E90A1916DF00A8EF5F /* HTMLDListElement.cpp */,
A8EA79EB0A1916DF00A8EF5F /* HTMLDListElement.h */,
1A85B1D10A1B235B00D8C87C /* HTMLDListElement.idl */,
......@@ -11920,6 +11933,8 @@
BC212A400FE83A1800EC3708 /* JSHTMLDataGridElement.h */,
BC77CBD10FEBF8310070887B /* JSHTMLDataGridColElement.cpp */,
BC77CBD20FEBF8310070887B /* JSHTMLDataGridColElement.h */,
BC77CD4C0FEFE1610070887B /* JSHTMLDataGridRowElement.cpp */,
BC77CD4D0FEFE1610070887B /* JSHTMLDataGridRowElement.h */,
1A85B1E20A1B240500D8C87C /* JSHTMLDListElement.cpp */,
1A85B1E30A1B240500D8C87C /* JSHTMLDListElement.h */,
1A85B1E00A1B240500D8C87C /* JSHTMLDirectoryElement.cpp */,
......@@ -16847,6 +16862,8 @@
BC77CB870FEBF5AF0070887B /* HTMLDataGridColElement.h in Headers */,
BC77CBD40FEBF8310070887B /* JSHTMLDataGridColElement.h in Headers */,
97DD4D870FDF4D6E00ECF9A4 /* XSSAuditor.h in Headers */,
BC77CCEE0FEFDE6C0070887B /* HTMLDataGridRowElement.h in Headers */,
BC77CD4F0FEFE1610070887B /* JSHTMLDataGridRowElement.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
......@@ -16951,6 +16968,7 @@
1AB1AE7B0C051FDE00139F4F /* zoomOutCursor.png in Resources */,
BC212A240FE8345D00EC3708 /* HTMLDataGridElement.idl in Resources */,
BC77CB890FEBF5BA0070887B /* HTMLDataGridColElement.idl in Resources */,
BC77CC6C0FEC3D5F0070887B /* HTMLDataGridRowElement.idl in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
......@@ -18849,6 +18867,8 @@
BC77CBAA0FEBF6C90070887B /* HTMLDataGridColElement.cpp in Sources */,
BC77CBD30FEBF8310070887B /* JSHTMLDataGridColElement.cpp in Sources */,
97DD4D860FDF4D6E00ECF9A4 /* XSSAuditor.cpp in Sources */,
BC77CD420FEFE0C40070887B /* HTMLDataGridRowElement.cpp in Sources */,
BC77CD4E0FEFE1610070887B /* JSHTMLDataGridRowElement.cpp in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
......@@ -296,6 +296,7 @@ This file contains the list of files needed to build WebCore.
DerivedSources/WebCore/JSHTMLCollection.cpp
DerivedSources/WebCore/JSHTMLDataGridElement.cpp
DerivedSources/WebCore/JSHTMLDataGridColElement.cpp
DerivedSources/WebCore/JSHTMLDataGridRowElement.cpp
DerivedSources/WebCore/JSHTMLDListElement.cpp
DerivedSources/WebCore/JSHTMLDirectoryElement.cpp
DerivedSources/WebCore/JSHTMLDivElement.cpp
......@@ -580,6 +581,7 @@ This file contains the list of files needed to build WebCore.
html/HTMLCollection.cpp
html/HTMLDataGridElement.cpp
html/HTMLDataGridColElement.cpp
html/HTMLDataGridRowElement.cpp
html/HTMLDListElement.cpp
html/HTMLDirectoryElement.cpp
html/HTMLDivElement.cpp
......
......@@ -68,6 +68,7 @@ disabled
enctype
end
face
focused
for
frame
frameborder
......@@ -161,6 +162,7 @@ placeholder
pluginurl
poster
precision
primary
profile
prompt
readonly
......
......@@ -78,14 +78,14 @@ void HTMLDataGridColElement::setSortDirection(const String& sortDirection)
setAttribute(sortdirectionAttr, sortDirection);
}
bool HTMLDataGridColElement::selected() const
bool HTMLDataGridColElement::primary() const
{
return hasAttribute(selectedAttr);
return hasAttribute(primaryAttr);
}
void HTMLDataGridColElement::setSelected(bool selected)
void HTMLDataGridColElement::setPrimary(bool primary)
{
setAttribute(selectedAttr, selected ? "" : 0);
setAttribute(primaryAttr, primary ? "" : 0);
}
}
......
......@@ -50,8 +50,8 @@ public:
String sortDirection() const;
void setSortDirection(const String&);
bool selected() const;
void setSelected(bool);
bool primary() const;
void setPrimary(bool);
};
} //namespace
......
......@@ -32,7 +32,7 @@ interface [GenerateConstructor] HTMLDataGridColElement : HTMLElement {
attribute boolean sortable; // Whether or not the column can be sorted.
attribute DOMString sortDirection; // The sort direction for the column. Valid values are ascending, descending and natural (no sort applied).
attribute boolean selected; // Whether or not the column as a whole has been selected.
attribute boolean primary; // Whether or not this is the primary column of the tree (this will be where the disclosure triangle and connecting tree lines will display)
};
}
......@@ -42,7 +42,17 @@ bool HTMLDataGridElement::checkDTD(const Node* newChild)
{
if (newChild->isTextNode())
return static_cast<const Text*>(newChild)->containsOnlyWhitespace();
return newChild->hasTagName(datagridcolTag);
return newChild->hasTagName(dcolTag) || newChild->hasTagName(drowTag);
}
bool HTMLDataGridElement::multiple() const
{
return hasAttribute(multipleAttr);
}
void HTMLDataGridElement::setMultiple(bool multiple)
{
setAttribute(multipleAttr, multiple ? "" : 0);
}
}
......@@ -37,6 +37,9 @@ public:
virtual int tagPriority() const { return 6; } // Same as <select>s
virtual bool checkDTD(const Node*);
bool multiple() const;
void setMultiple(bool);
};
} //namespace
......
......@@ -26,6 +26,7 @@
module html {
interface [GenerateConstructor] HTMLDataGridElement : HTMLElement {
attribute boolean multiple; // Whether or not the datagrid supports multiple selection.
};
}
/*
* Copyright (C) 2009 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
#include "HTMLDataGridRowElement.h"
#include "HTMLNames.h"
namespace WebCore {
using namespace HTMLNames;
HTMLDataGridRowElement::HTMLDataGridRowElement(const QualifiedName& name, Document* doc)
: HTMLElement(name, doc)
{
}
bool HTMLDataGridRowElement::selected() const
{
return hasAttribute(selectedAttr);
}
void HTMLDataGridRowElement::setSelected(bool selected)
{
setAttribute(selectedAttr, selected ? "" : 0);
}
bool HTMLDataGridRowElement::focused() const
{
return hasAttribute(focusedAttr);
}
void HTMLDataGridRowElement::setFocused(bool focused)
{
setAttribute(focusedAttr, focused ? "" : 0);
}
}
/*
* Copyright (C) 2009 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef HTMLDataGridRowElement_h
#define HTMLDataGridRowElement_h
#include "HTMLElement.h"
namespace WebCore {
class HTMLDataGridRowElement : public HTMLElement
{
public:
HTMLDataGridRowElement(const QualifiedName&, Document*);
virtual int tagPriority() const { return 2; } // Same as <option>s.
bool selected() const;
void setSelected(bool);
bool focused() const;
void setFocused(bool);
};
} // namespace WebCore
#endif // HTMLDataGridRowElement_h
/*
* Copyright (C) 2009 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
module html {
interface [GenerateConstructor] HTMLDataGridRowElement : HTMLElement {
attribute boolean selected; // Whether or not the row is currently selected.
attribute boolean focused; // Whether or not the row is the current object in the tree for keyboard navigation (or as the principal item of a multiple selection).
};
}
......@@ -26,7 +26,8 @@ code interfaceName=HTMLElement
col interfaceName=HTMLTableColElement
colgroup interfaceName=HTMLTableColElement
datagrid interfaceName=HTMLDataGridElement
datagridcol interfaceName=HTMLDataGridColElement
dcol interfaceName=HTMLDataGridColElement
drow interfaceName=HTMLDataGridRowElement
dd interfaceName=HTMLElement
del interfaceName=HTMLModElement
dfn interfaceName=HTMLElement
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment