OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_KEYBOARD_EVENT_PROCESSING_RESULT_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_KEYBOARD_EVENT_PROCESSING_RESULT_H_ |
| 7 |
| 8 namespace content { |
| 9 |
| 10 enum class KeyboardEventProcessingResult { |
| 11 // The event was handled. |
| 12 HANDLED, |
| 13 |
| 14 #if defined(USE_AURA) |
| 15 // The event was handled, but don't update the underlying event. A value |
| 16 // HANDLED results in calling ui::Event::SetHandled(), where as this does not. |
| 17 HANDLED_DONT_UPDATE_EVENT, |
| 18 #endif |
| 19 |
| 20 // The event was not handled and should be forwarded to the renderer. |
| 21 NOT_HANDLED, |
| 22 |
| 23 // The event was not handled and should be forwarded to the renderer. |
| 24 // Additionally the KeyEvent corresponds to a shortcut (aka accelerator). |
| 25 NOT_HANDLED_IS_SHORTCUT, |
| 26 }; |
| 27 |
| 28 } // namespace content |
| 29 |
| 30 #endif // CONTENT_PUBLIC_BROWSER_KEYBOARD_EVENT_PROCESSING_RESULT_H_ |
OLD | NEW |