Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef __nsBidiKeyboard
8 #define __nsBidiKeyboard
9 #include "nsIBidiKeyboard.h"
10 #include <windows.h>
12 class nsBidiKeyboard : public nsIBidiKeyboard
13 {
14 public:
15 NS_DECL_ISUPPORTS
16 NS_DECL_NSIBIDIKEYBOARD
18 nsBidiKeyboard();
19 virtual ~nsBidiKeyboard();
21 protected:
23 nsresult SetupBidiKeyboards();
24 bool IsRTLLanguage(HKL aLocale);
26 bool mInitialized;
27 bool mHaveBidiKeyboards;
28 wchar_t mLTRKeyboard[KL_NAMELENGTH];
29 wchar_t mRTLKeyboard[KL_NAMELENGTH];
30 wchar_t mCurrentLocaleName[KL_NAMELENGTH];
31 };
34 #endif // __nsBidiKeyboard