1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/parser/htmlparser/public/nsITokenizer.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,44 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 + 1.10 +/** 1.11 + * MODULE NOTES: 1.12 + * @update gess 4/1/98 1.13 + * 1.14 + */ 1.15 + 1.16 +#ifndef __NSITOKENIZER__ 1.17 +#define __NSITOKENIZER__ 1.18 + 1.19 +#include "nsISupports.h" 1.20 + 1.21 +class nsScanner; 1.22 + 1.23 +#define NS_ITOKENIZER_IID \ 1.24 +{ 0Xae98a348, 0X5e91, 0X41a8, \ 1.25 + { 0Xa5, 0Xb4, 0Xd2, 0X20, 0Xf3, 0X1f, 0Xc4, 0Xab } } 1.26 + 1.27 +/*************************************************************** 1.28 + Notes: 1.29 + ***************************************************************/ 1.30 + 1.31 + 1.32 +class nsITokenizer : public nsISupports { 1.33 +public: 1.34 + NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITOKENIZER_IID) 1.35 + 1.36 + NS_IMETHOD WillTokenize(bool aIsFinalChunk)=0; 1.37 + NS_IMETHOD ConsumeToken(nsScanner& aScanner,bool& aFlushTokens)=0; 1.38 +}; 1.39 + 1.40 +NS_DEFINE_STATIC_IID_ACCESSOR(nsITokenizer, NS_ITOKENIZER_IID) 1.41 + 1.42 +#define NS_DECL_NSITOKENIZER \ 1.43 + NS_IMETHOD WillTokenize(bool aIsFinalChunk);\ 1.44 + NS_IMETHOD ConsumeToken(nsScanner& aScanner,bool& aFlushTokens);\ 1.45 + 1.46 + 1.47 +#endif