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_compositionstringsynthesizer_h__ michael@0: #define mozilla_dom_compositionstringsynthesizer_h__ michael@0: michael@0: #include "nsICompositionStringSynthesizer.h" michael@0: #include "nsString.h" michael@0: #include "nsWeakReference.h" michael@0: #include "mozilla/Attributes.h" michael@0: #include "mozilla/TextRange.h" michael@0: michael@0: class nsIWidget; michael@0: class nsPIDOMWindow; michael@0: michael@0: namespace mozilla { michael@0: namespace dom { michael@0: michael@0: class CompositionStringSynthesizer MOZ_FINAL : michael@0: public nsICompositionStringSynthesizer michael@0: { michael@0: public: michael@0: CompositionStringSynthesizer(nsPIDOMWindow* aWindow); michael@0: ~CompositionStringSynthesizer(); michael@0: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSICOMPOSITIONSTRINGSYNTHESIZER michael@0: michael@0: private: michael@0: nsWeakPtr mWindow; // refers an instance of nsPIDOMWindow michael@0: nsString mString; michael@0: nsRefPtr mClauses; michael@0: TextRange mCaret; michael@0: michael@0: nsIWidget* GetWidget(); michael@0: void ClearInternal(); michael@0: }; michael@0: michael@0: } // namespace dom michael@0: } // namespace mozilla michael@0: michael@0: #endif // #ifndef mozilla_dom_compositionstringsynthesizer_h__