michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef mozilla_dom_Text_h michael@0: #define mozilla_dom_Text_h michael@0: michael@0: #include "nsGenericDOMDataNode.h" michael@0: #include "mozilla/ErrorResult.h" michael@0: michael@0: namespace mozilla { michael@0: namespace dom { michael@0: michael@0: class Text : public nsGenericDOMDataNode michael@0: { michael@0: public: michael@0: Text(already_AddRefed& aNodeInfo) michael@0: : nsGenericDOMDataNode(aNodeInfo) michael@0: {} michael@0: michael@0: Text(already_AddRefed&& aNodeInfo) michael@0: : nsGenericDOMDataNode(aNodeInfo) michael@0: {} michael@0: michael@0: using nsGenericDOMDataNode::GetWholeText; michael@0: michael@0: // WebIDL API michael@0: already_AddRefed SplitText(uint32_t aOffset, ErrorResult& rv); michael@0: void GetWholeText(nsAString& aWholeText, ErrorResult& rv) michael@0: { michael@0: rv = GetWholeText(aWholeText); michael@0: } michael@0: michael@0: static already_AddRefed michael@0: Constructor(const GlobalObject& aGlobal, michael@0: const nsAString& aData, ErrorResult& aRv); michael@0: }; michael@0: michael@0: } // namespace dom michael@0: } // namespace mozilla michael@0: michael@0: #endif // mozilla_dom_Text_h