keyboard_shortcut_viewer.h 657 B

1234567891011121314151617181920
  1. // Copyright 2019 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. #ifndef ASH_PUBLIC_CPP_KEYBOARD_SHORTCUT_VIEWER_H_
  5. #define ASH_PUBLIC_CPP_KEYBOARD_SHORTCUT_VIEWER_H_
  6. #include "ash/public/cpp/ash_public_export.h"
  7. namespace ash {
  8. // Toggle the Keyboard Shortcut Viewer window.
  9. // 1. Show the window if it is not open.
  10. // 2. Activate the window if it is open but not active.
  11. // 3. Close the window if it is open and active.
  12. void ASH_PUBLIC_EXPORT ToggleKeyboardShortcutViewer();
  13. } // namespace ash
  14. #endif // ASH_PUBLIC_CPP_KEYBOARD_SHORTCUT_VIEWER_H_