| Index: ash/accelerators/accelerator_commands.cc
|
| diff --git a/ash/accelerators/accelerator_commands.cc b/ash/accelerators/accelerator_commands.cc
|
| index 73f1b1a54387283c54298bb379c5143e60476bf4..86f010125b7f5910f6010c4256306c335d2c134e 100644
|
| --- a/ash/accelerators/accelerator_commands.cc
|
| +++ b/ash/accelerators/accelerator_commands.cc
|
| @@ -42,5 +42,16 @@ void ToggleMaximized() {
|
| window_state->ToggleMaximized();
|
| }
|
|
|
| +void ToggleFullscreen() {
|
| + wm::WindowState* window_state = wm::GetActiveWindowState();
|
| + if (!window_state)
|
| + return;
|
| +
|
| + if (window_state->maximize_when_fullscreen())
|
| + window_state->ToggleMaximized();
|
| + else
|
| + Shell::GetInstance()->delegate()->ToggleFullscreen();
|
| +}
|
| +
|
| } // namespace accelerators
|
| } // namespace ash
|
|
|