accelerator_commands.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. // Copyright 2013 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_ACCELERATORS_ACCELERATOR_COMMANDS_H_
  5. #define ASH_ACCELERATORS_ACCELERATOR_COMMANDS_H_
  6. #include "ash/ash_export.h"
  7. // This file contains implementations of commands that are bound to keyboard
  8. // shortcuts in Ash or in the embedding application (e.g. Chrome).
  9. //
  10. // Keep the functions in this file in alphabetical order.
  11. namespace ash {
  12. namespace accelerators {
  13. // Logs a dump of CalendarModel internal data.
  14. ASH_EXPORT void DumpCalendarModel();
  15. // Cycle backwards in the MRU window list. Usually Alt-Shift-Tab.
  16. ASH_EXPORT void CycleBackwardMru();
  17. // Cycle forwards in the MRU window list. Usually Alt-Tab.
  18. ASH_EXPORT void CycleForwardMru();
  19. // Disable caps-lock.
  20. ASH_EXPORT void DisableCapsLock();
  21. // Focus the PiP window if it is present.
  22. ASH_EXPORT void FocusPip();
  23. // Launch the nth(0-7) app on the shelf.
  24. ASH_EXPORT void LaunchAppN(int n);
  25. // Launch the right-most app on the shelf.
  26. ASH_EXPORT void LaunchLastApp();
  27. // Lock the screen.
  28. ASH_EXPORT void LockScreen();
  29. // Fast-forward playing media.
  30. ASH_EXPORT void MediaFastForward();
  31. // Go to the next media track.
  32. ASH_EXPORT void MediaNextTrack();
  33. // Pause media.
  34. ASH_EXPORT void MediaPause();
  35. // Play media.
  36. ASH_EXPORT void MediaPlay();
  37. // Toggle pause or play on media.
  38. ASH_EXPORT void MediaPlayPause();
  39. // To to the previous media track.
  40. ASH_EXPORT void MediaPrevTrack();
  41. // Rewind playing media.
  42. ASH_EXPORT void MediaRewind();
  43. // Stop playing media.
  44. ASH_EXPORT void MediaStop();
  45. // Toggle microphone mute.
  46. ASH_EXPORT void MicrophoneMuteToggle();
  47. // Open a new incognito browser window.
  48. ASH_EXPORT void NewIncognitoWindow();
  49. // Open a new browser window.
  50. ASH_EXPORT void NewWindow();
  51. // Open the calculator app.
  52. ASH_EXPORT void OpenCalculator();
  53. // Open Crosh.
  54. ASH_EXPORT void OpenCrosh();
  55. // Open the diagnostics app.
  56. ASH_EXPORT void OpenDiagnostics();
  57. // Open the feedback app.
  58. ASH_EXPORT void OpenFeedbackPage();
  59. // Open the file manager app.
  60. ASH_EXPORT void OpenFileManager();
  61. // Open the help/explore app.
  62. ASH_EXPORT void OpenHelp();
  63. // Reset the display zooming to the default state.
  64. ASH_EXPORT void ResetDisplayZoom();
  65. // Restore the last closed tab in the browser.
  66. ASH_EXPORT void RestoreTab();
  67. // Change primary display to the secondary display next to current primary
  68. // display
  69. ASH_EXPORT void ShiftPrimaryDisplay();
  70. // Toogles to show and hide the calendar widget.
  71. ASH_EXPORT void ToggleCalendar();
  72. // Toggles the fullscreen state. The behavior can be overridden
  73. // by WindowStateDelegate::ToggleFullscreen().
  74. ASH_EXPORT void ToggleFullscreen();
  75. // Toggle keyboard backlight.
  76. ASH_EXPORT void ToggleKeyboardBacklight();
  77. // Toggles the maxmized state. If the window is in fulllscreen, it exits
  78. // fullscreen mode.
  79. ASH_EXPORT void ToggleMaximized();
  80. // Minimizes the active window, if present. If no windows are active, restores
  81. // the first unminimized window. Returns true if a window was minimized or
  82. // restored.
  83. ASH_EXPORT bool ToggleMinimized();
  84. // Toggles the resize lock mode menu for a focused ARC++ resize-locked app if
  85. // present.
  86. ASH_EXPORT void ToggleResizeLockMenu();
  87. // If a window is pinned (aka forced fullscreen), exit from pinned mode.
  88. ASH_EXPORT void UnpinWindow();
  89. // Change the display zooming up or down.
  90. ASH_EXPORT bool ZoomDisplay(bool up);
  91. } // namespace accelerators
  92. } // namespace ash
  93. #endif // ASH_ACCELERATORS_ACCELERATOR_COMMANDS_H_