2016-01-19 21:09:01 +01:00
|
|
|
// Copyright 2016 The Chromium Embedded Framework Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be found
|
|
|
|
// in the LICENSE file.
|
|
|
|
|
2024-07-02 20:16:55 +02:00
|
|
|
#ifndef CEF_LIBCEF_BROWSER_BROWSER_EVENT_UTIL_H_
|
|
|
|
#define CEF_LIBCEF_BROWSER_BROWSER_EVENT_UTIL_H_
|
2016-01-19 21:09:01 +01:00
|
|
|
#pragma once
|
|
|
|
|
2024-04-30 17:45:07 +02:00
|
|
|
#include "cef/include/internal/cef_types_wrappers.h"
|
2016-01-19 21:09:01 +01:00
|
|
|
|
2024-06-14 19:01:45 +02:00
|
|
|
namespace input {
|
2016-01-19 21:09:01 +01:00
|
|
|
struct NativeWebKeyboardEvent;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace ui {
|
|
|
|
class KeyEvent;
|
|
|
|
}
|
|
|
|
|
2024-06-14 19:01:45 +02:00
|
|
|
// Convert a input::NativeWebKeyboardEvent to a CefKeyEvent.
|
|
|
|
bool GetCefKeyEvent(const input::NativeWebKeyboardEvent& event,
|
2016-01-19 21:09:01 +01:00
|
|
|
CefKeyEvent& cef_event);
|
|
|
|
|
|
|
|
// Convert a ui::KeyEvent to a CefKeyEvent.
|
2017-05-17 11:29:28 +02:00
|
|
|
bool GetCefKeyEvent(const ui::KeyEvent& event, CefKeyEvent& cef_event);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
2024-07-02 20:16:55 +02:00
|
|
|
#endif // CEF_LIBCEF_BROWSER_BROWSER_EVENT_UTIL_H_
|