diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-07 15:43:20 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-07 15:43:20 +0000 |
commit | be715074bbee02e0f82f8f747daee860c1988c5d (patch) | |
tree | 785b318915d6712e60739516849973820d3d3661 /chrome/browser/browser.cc | |
parent | cd4f1227d897deba8372622343c1bf52a5bd6f0f (diff) | |
download | chromium_src-be715074bbee02e0f82f8f747daee860c1988c5d.zip chromium_src-be715074bbee02e0f82f8f747daee860c1988c5d.tar.gz chromium_src-be715074bbee02e0f82f8f747daee860c1988c5d.tar.bz2 |
Adds a couple of keybindings.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/155103
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20027 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.cc')
-rw-r--r-- | chrome/browser/browser.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc index b1d5f72..f835795 100644 --- a/chrome/browser/browser.cc +++ b/chrome/browser/browser.cc @@ -1162,6 +1162,14 @@ void Browser::OpenHelpTab() { 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 @@ void Browser::ExecuteCommandWithDisposition( 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 @@ void Browser::InitCommandState() { 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. { |