widget/windows/nsBidiKeyboard.h
author Lucas Rocha <lucasr@lucasr.org>
Mon, 13 Oct 2014 15:50:39 +0100
changeset 225773 47ef137f046fd0f9a4ea00e9a0fee0e72c0a8eb2
parent 215611 bc39c9162ca97497980230168798c1f8c14f215a
child 323738 c8d83343c57b7c139b449d3ba106f741d60ce650
permissions -rw-r--r--
Bug 1058660 - Use consistent bg color in about:home's tab strip. r=margaret, a=lmandel

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef __nsBidiKeyboard
#define __nsBidiKeyboard
#include "nsIBidiKeyboard.h"
#include <windows.h>

class nsBidiKeyboard : public nsIBidiKeyboard
{
  virtual ~nsBidiKeyboard();

public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIBIDIKEYBOARD

  nsBidiKeyboard();

protected:

  nsresult SetupBidiKeyboards();
  bool IsRTLLanguage(HKL aLocale);

  bool mInitialized;
  bool mHaveBidiKeyboards;
  wchar_t  mLTRKeyboard[KL_NAMELENGTH];
  wchar_t  mRTLKeyboard[KL_NAMELENGTH];
  wchar_t  mCurrentLocaleName[KL_NAMELENGTH];
};


#endif // __nsBidiKeyboard