widget/windows/nsBidiKeyboard.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/widget/windows/nsBidiKeyboard.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,34 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
     1.5 + *
     1.6 + * This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#ifndef __nsBidiKeyboard
    1.11 +#define __nsBidiKeyboard
    1.12 +#include "nsIBidiKeyboard.h"
    1.13 +#include <windows.h>
    1.14 +
    1.15 +class nsBidiKeyboard : public nsIBidiKeyboard
    1.16 +{
    1.17 +public:
    1.18 +  NS_DECL_ISUPPORTS
    1.19 +  NS_DECL_NSIBIDIKEYBOARD
    1.20 +
    1.21 +  nsBidiKeyboard();
    1.22 +  virtual ~nsBidiKeyboard();
    1.23 +
    1.24 +protected:
    1.25 +
    1.26 +  nsresult SetupBidiKeyboards();
    1.27 +  bool IsRTLLanguage(HKL aLocale);
    1.28 +
    1.29 +  bool mInitialized;
    1.30 +  bool mHaveBidiKeyboards;
    1.31 +  wchar_t  mLTRKeyboard[KL_NAMELENGTH];
    1.32 +  wchar_t  mRTLKeyboard[KL_NAMELENGTH];
    1.33 +  wchar_t  mCurrentLocaleName[KL_NAMELENGTH];
    1.34 +};
    1.35 +
    1.36 +
    1.37 +#endif // __nsBidiKeyboard

mercurial