Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Unified Diff: ash/accelerators/accelerator_commands.h

Issue 23611005: ash: Allow web pages to use the Ctrl-M minimize shortcut (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ash/accelerators/accelerator_commands.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/accelerator_commands.h
diff --git a/ash/accelerators/accelerator_commands.h b/ash/accelerators/accelerator_commands.h
new file mode 100644
index 0000000000000000000000000000000000000000..5fe2775bdbd6f00f528ea80efc9037d03df16443
--- /dev/null
+++ b/ash/accelerators/accelerator_commands.h
@@ -0,0 +1,23 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
James Cook 2013/09/04 17:58:07 I introduced this file because accelerator_control
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_ACCELERATORS_ACCELERATOR_COMMANDS_H_
+#define ASH_ACCELERATORS_ACCELERATOR_COMMANDS_H_
+
+#include "ash/ash_export.h"
+
+// This file contains implementations of commands that are bound to keyboard
+// shortcuts in Ash or in the embedding application (e.g. Chrome).
+namespace ash {
+namespace accelerators {
+
+// Minimizes the active window, if present. If no windows are active, restores
+// the first unminimized window. Returns true if a window was minimized or
+// restored.
+ASH_EXPORT bool ToggleMinimized();
+
+} // namespace accelerators
+} // namespace ash
+
+#endif // ASH_ACCELERATORS_ACCELERATOR_COMMANDS_H_
« no previous file with comments | « no previous file | ash/accelerators/accelerator_commands.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698