| Index: ui/events/x/events_x_utils.h
|
| diff --git a/ui/events/x/events_x_utils.h b/ui/events/x/events_x_utils.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2e1a441b6dce470c88b37c9f71910ccd76505cb6
|
| --- /dev/null
|
| +++ b/ui/events/x/events_x_utils.h
|
| @@ -0,0 +1,21 @@
|
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "ui/events/event_constants.h"
|
| +#include "ui/events/events_export.h"
|
| +#include "ui/events/keycodes/keyboard_codes.h"
|
| +#include "ui/gfx/x/x11_types.h"
|
| +
|
| +typedef union _XEvent XEvent;
|
| +
|
| +namespace ui {
|
| +
|
| +// Initializes a XEvent that holds XKeyEvent for testing. Note that ui::EF_
|
| +// flags should be passed as |flags|, not the native ones in <X11/X.h>.
|
| +EVENTS_EXPORT void InitXKeyEventForTesting(EventType type,
|
| + KeyboardCode key_code,
|
| + int flags,
|
| + XEvent* event);
|
| +
|
| +} // namespace ui
|
|
|