Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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