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

Unified Diff: chrome/browser/browser.cc

Issue 155103: Adds a couple of keybindings. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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/browser.h ('k') | chrome/browser/gtk/browser_window_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser.cc
===================================================================
--- chrome/browser/browser.cc (revision 19945)
+++ chrome/browser/browser.cc (working copy)
@@ -1162,6 +1162,14 @@
false, NULL);
}
+#if defined(LINUX2)
+void Browser::ShowControlPanel() {
+ GURL url("http://localhost:8080");
+ AddTabWithURL(url, GURL(), PageTransition::AUTO_BOOKMARK, true, -1,
+ false, NULL);
+}
+#endif
+
///////////////////////////////////////////////////////////////////////////////
// static
@@ -1362,6 +1370,9 @@
case IDC_IMPORT_SETTINGS: OpenImportSettingsDialog(); break;
case IDC_ABOUT: OpenAboutChromeDialog(); break;
case IDC_HELP_PAGE: OpenHelpTab(); break;
+#if defined(LINUX2)
+ case IDC_CONTROL_PANEL: ShowControlPanel(); break;
+#endif
default:
LOG(WARNING) << "Received Unimplemented Command: " << id;
@@ -2099,6 +2110,9 @@
command_updater_.UpdateCommandEnabled(IDC_SHOW_BOOKMARK_MANAGER, true);
command_updater_.UpdateCommandEnabled(IDC_SHOW_DOWNLOADS, true);
command_updater_.UpdateCommandEnabled(IDC_HELP_PAGE, true);
+#if defined(LINUX2)
+ command_updater_.UpdateCommandEnabled(IDC_CONTROL_PANEL, true);
+#endif
// Initialize other commands based on the window type.
{
« no previous file with comments | « chrome/browser/browser.h ('k') | chrome/browser/gtk/browser_window_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698