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

Unified Diff: chrome/browser/ui/panels/panel.cc

Issue 10825210: Accelerator support for browserless panels on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix win_aura Created 8 years, 4 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 | chrome/browser/ui/panels/panel_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/panel.cc
diff --git a/chrome/browser/ui/panels/panel.cc b/chrome/browser/ui/panels/panel.cc
index de62398f50cc4087f777b791b8b7ff79873ab3df..1f63a80b934c6dcad48135262439935de4190f27 100644
--- a/chrome/browser/ui/panels/panel.cc
+++ b/chrome/browser/ui/panels/panel.cc
@@ -549,6 +549,16 @@ void Panel::ExecuteCommandWithDisposition(int id,
panel_host_->StopLoading();
break;
+ // Window management
+ case IDC_CLOSE_WINDOW:
+ content::RecordAction(UserMetricsAction("CloseWindow"));
+ Close();
+ break;
+ case IDC_EXIT:
+ content::RecordAction(UserMetricsAction("Exit"));
+ browser::AttemptUserExit();
+ break;
+
// Clipboard
case IDC_COPY:
content::RecordAction(UserMetricsAction("Copy"));
« no previous file with comments | « no previous file | chrome/browser/ui/panels/panel_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698