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

Unified Diff: chrome/browser/ui/views/toolbar_view.cc

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 | « chrome/browser/ui/views/app_menu_button_win.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/toolbar_view.cc
diff --git a/chrome/browser/ui/views/toolbar_view.cc b/chrome/browser/ui/views/toolbar_view.cc
index d9c1958b6e74847919105a2ca2211c45091558e0..b1edf03aeb33b93cda89a0d0772aa860257c4518 100644
--- a/chrome/browser/ui/views/toolbar_view.cc
+++ b/chrome/browser/ui/views/toolbar_view.cc
@@ -39,6 +39,7 @@
#if defined(OS_WIN)
#include "chrome/browser/enumerate_modules_model_win.h"
+#include "chrome/browser/ui/views/app_menu_button_win.h"
#endif
// static
@@ -165,7 +166,11 @@ void ToolbarView::Init(Profile* profile) {
browser_actions_ = new BrowserActionsContainer(browser_, this);
+#if defined(OS_WIN)
+ app_menu_ = new AppMenuButtonWin(this);
+#else
app_menu_ = new views::MenuButton(NULL, std::wstring(), this, false);
+#endif
app_menu_->set_border(NULL);
app_menu_->EnableCanvasFlippingForRTLUI(true);
app_menu_->SetAccessibleName(l10n_util::GetStringUTF16(IDS_ACCNAME_APP));
« no previous file with comments | « chrome/browser/ui/views/app_menu_button_win.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698