| Index: content/public/browser/keyboard_event_processing_result.h
|
| diff --git a/content/public/browser/keyboard_event_processing_result.h b/content/public/browser/keyboard_event_processing_result.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4030a527e7c00654f11ce62e7bf30c88e4fe2e64
|
| --- /dev/null
|
| +++ b/content/public/browser/keyboard_event_processing_result.h
|
| @@ -0,0 +1,30 @@
|
| +// Copyright 2017 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.
|
| +
|
| +#ifndef CONTENT_PUBLIC_BROWSER_KEYBOARD_EVENT_PROCESSING_RESULT_H_
|
| +#define CONTENT_PUBLIC_BROWSER_KEYBOARD_EVENT_PROCESSING_RESULT_H_
|
| +
|
| +namespace content {
|
| +
|
| +enum class KeyboardEventProcessingResult {
|
| + // The event was handled.
|
| + HANDLED,
|
| +
|
| +#if defined(USE_AURA)
|
| + // The event was handled, but don't update the underlying event. A value
|
| + // HANDLED results in calling ui::Event::SetHandled(), where as this does not.
|
| + HANDLED_DONT_UPDATE_EVENT,
|
| +#endif
|
| +
|
| + // The event was not handled and should be forwarded to the renderer.
|
| + NOT_HANDLED,
|
| +
|
| + // The event was not handled and should be forwarded to the renderer.
|
| + // Additionally the KeyEvent corresponds to a shortcut (aka accelerator).
|
| + NOT_HANDLED_IS_SHORTCUT,
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_PUBLIC_BROWSER_KEYBOARD_EVENT_PROCESSING_RESULT_H_
|
|
|