Index: ash/accelerators/accelerator_commands_aura.cc |
diff --git a/ash/accelerators/accelerator_commands.cc b/ash/accelerators/accelerator_commands_aura.cc |
similarity index 72% |
copy from ash/accelerators/accelerator_commands.cc |
copy to ash/accelerators/accelerator_commands_aura.cc |
index b804d9150aaae5ab68b889a8193b9e7007ca8686..6097695d5aad49e0c5870fe7b62f18b3bc3aa4a5 100644 |
--- a/ash/accelerators/accelerator_commands.cc |
+++ b/ash/accelerators/accelerator_commands_aura.cc |
@@ -2,7 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "ash/accelerators/accelerator_commands.h" |
+#include "ash/accelerators/accelerator_commands_aura.h" |
#include "ash/common/wm/mru_window_tracker.h" |
James Cook
2016/07/20 16:08:04
not needed (and several below)
sky
2016/07/20 16:42:49
Done.
|
#include "ash/common/wm/window_state.h" |
@@ -20,41 +20,6 @@ |
namespace ash { |
namespace accelerators { |
-bool ToggleMinimized() { |
- aura::Window* window = wm::GetActiveWindow(); |
- // Attempt to restore the window that would be cycled through next from |
- // the launcher when there is no active window. |
- if (!window) { |
- MruWindowTracker::WindowList mru_windows( |
- WmShell::Get()->mru_window_tracker()->BuildMruWindowList()); |
- if (!mru_windows.empty()) |
- mru_windows.front()->GetWindowState()->Activate(); |
- return true; |
- } |
- wm::WindowState* window_state = wm::GetWindowState(window); |
- if (!window_state->CanMinimize()) |
- return false; |
- window_state->Minimize(); |
- return true; |
-} |
- |
-void ToggleMaximized() { |
- wm::WindowState* window_state = wm::GetActiveWindowState(); |
- if (!window_state) |
- return; |
- base::RecordAction(base::UserMetricsAction("Accel_Toggle_Maximized")); |
- wm::WMEvent event(wm::WM_EVENT_TOGGLE_MAXIMIZE); |
- window_state->OnWMEvent(&event); |
-} |
- |
-void ToggleFullscreen() { |
- wm::WindowState* window_state = wm::GetActiveWindowState(); |
- if (window_state) { |
- const wm::WMEvent event(wm::WM_EVENT_TOGGLE_FULLSCREEN); |
- window_state->OnWMEvent(&event); |
- } |
-} |
- |
void ToggleTouchHudProjection() { |
base::RecordAction(base::UserMetricsAction("Accel_Touch_Hud_Clear")); |
bool enabled = Shell::GetInstance()->is_touch_hud_projection_enabled(); |