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

Unified Diff: chrome/browser/ui/views/app_menu_button_win.h

Issue 7237032: Changes wrench menu button to show system menu on space. This matches (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tweak comment Created 9 years, 5 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/views/app_menu_button_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/app_menu_button_win.h
diff --git a/chrome/browser/ui/views/app_menu_button_win.h b/chrome/browser/ui/views/app_menu_button_win.h
new file mode 100644
index 0000000000000000000000000000000000000000..30c11a9d72516048d5f41fc65ffdba0eeb0896fd
--- /dev/null
+++ b/chrome/browser/ui/views/app_menu_button_win.h
@@ -0,0 +1,24 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_VIEWS_APP_MENU_BUTTON_WIN_H_
+#define CHROME_BROWSER_UI_VIEWS_APP_MENU_BUTTON_WIN_H_
+#pragma once
+
+#include "views/controls/button/menu_button.h"
+
+// Button used for showing the app menu. Special cases space to show the system
+// menu.
+class AppMenuButtonWin : public views::MenuButton {
+ public:
+ explicit AppMenuButtonWin(views::ViewMenuDelegate* menu_delegate);
+
+ // MenuButton:
+ virtual bool OnKeyPressed(const views::KeyEvent& event) OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(AppMenuButtonWin);
+};
+
+#endif // CHROME_BROWSER_UI_VIEWS_APP_MENU_BUTTON_WIN_H_
« no previous file with comments | « no previous file | chrome/browser/ui/views/app_menu_button_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698