#ifndef UI_EVENTS_TEST_KEYBOARD_LAYOUT_H_
#define UI_EVENTS_TEST_KEYBOARD_LAYOUT_H_
#include "build/build_config.h"
#if BUILDFLAG(IS_WIN)
#include <windows.h>
#elif BUILDFLAG(IS_MAC)
#include <Carbon/Carbon.h>
#include "base/apple/scoped_cftyperef.h"
#elif BUILDFLAG(IS_OZONE)
#include "ui/events/ozone/layout/scoped_keyboard_layout_engine.h"
#endif
namespace ui {
enum KeyboardLayout { … };
#if BUILDFLAG(IS_WIN)
using PlatformKeyboardLayout = HKL;
#elif BUILDFLAG(IS_MAC)
using PlatformKeyboardLayout = base::apple::ScopedCFTypeRef<TISInputSourceRef>;
#endif
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC)
PlatformKeyboardLayout GetPlatformKeyboardLayout(KeyboardLayout layout);
#endif
class ScopedKeyboardLayout { … };
}
#endif