Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Side by Side Diff: content/public/browser/keyboard_event_processing_result.h

Issue 2775553002: Adds the ability for WebContentsDelegate to decide if event should be updated (Closed)
Patch Set: Fix compile Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/public/browser/BUILD.gn ('k') | content/public/browser/web_contents_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « content/public/browser/BUILD.gn ('k') | content/public/browser/web_contents_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698