158537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Copyright 2013 The Chromium Authors. All rights reserved.
258537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
358537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// found in the LICENSE file.
458537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)
558537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)#ifndef ASH_ACCELERATORS_ACCELERATOR_COMMANDS_H_
658537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)#define ASH_ACCELERATORS_ACCELERATOR_COMMANDS_H_
758537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)
858537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)#include "ash/ash_export.h"
958537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)
1058537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// This file contains implementations of commands that are bound to keyboard
1158537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// shortcuts in Ash or in the embedding application (e.g. Chrome).
1258537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)namespace ash {
1358537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)namespace accelerators {
1458537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)
1558537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Minimizes the active window, if present. If no windows are active, restores
1658537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// the first unminimized window. Returns true if a window was minimized or
1758537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// restored.
1858537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)ASH_EXPORT bool ToggleMinimized();
1958537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)
208bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// Toggles the maxmized state. If the window is in fulllscreen, it exits
218bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// fullscreen mode.
228bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)ASH_EXPORT void ToggleMaximized();
238bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)
241e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// Toggles the fullscreen state. The behavior can be overridden
251e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// by WindowStateDelegate::ToggleFullscreen().
261e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)ASH_EXPORT void ToggleFullscreen();
271e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
2858537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)}  // namespace accelerators
2958537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)}  // namespace ash
3058537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)
3158537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)#endif  // ASH_ACCELERATORS_ACCELERATOR_COMMANDS_H_
32