1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30

content / public / browser / keyboard_event_processing_result.h [blame]

// Copyright 2017 The Chromium Authors
// 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_