From c56f820bfbad49ad02710292034d0f1c7184c619 Mon Sep 17 00:00:00 2001 From: "pinkerton@chromium.org" Date: Thu, 19 Mar 2009 20:53:07 +0000 Subject: Implement focusing location bar with cmd-L on mac. Removes some more platform ifdefs that are no longer necessary in Browser. Patch from thakis@google.com. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12155 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/browser.cc | 4 ---- chrome/browser/browser.h | 2 -- 2 files changed, 6 deletions(-) (limited to 'chrome/browser') diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc index 0ecc721..ff5f52e 100644 --- a/chrome/browser/browser.cc +++ b/chrome/browser/browser.cc @@ -905,7 +905,6 @@ void Browser::FocusToolbar() { } #endif -#if defined(OS_WIN) || defined(OS_LINUX) void Browser::FocusLocationBar() { UserMetrics::RecordAction(L"FocusLocation", profile_); window_->SetFocusToLocationBar(); @@ -916,7 +915,6 @@ void Browser::FocusSearch() { UserMetrics::RecordAction(L"FocusSearch", profile_); window_->GetLocationBar()->FocusSearch(); } -#endif #if defined(OS_WIN) || defined(OS_LINUX) void Browser::OpenFile() { @@ -1229,10 +1227,8 @@ void Browser::ExecuteCommand(int id) { #if defined(OS_WIN) case IDC_FOCUS_TOOLBAR: FocusToolbar(); break; #endif -#if defined(OS_WIN) || defined(OS_LINUX) case IDC_FOCUS_LOCATION: FocusLocationBar(); break; case IDC_FOCUS_SEARCH: FocusSearch(); break; -#endif // Show various bits of UI #if defined(OS_WIN)|| defined(OS_LINUX) diff --git a/chrome/browser/browser.h b/chrome/browser/browser.h index 9bf94b0..17d11d7 100644 --- a/chrome/browser/browser.h +++ b/chrome/browser/browser.h @@ -312,10 +312,8 @@ class Browser : public TabStripModelDelegate, // Focus various bits of UI void FocusToolbar(); #endif -#if defined(OS_WIN) || defined(OS_LINUX) void FocusLocationBar(); void FocusSearch(); -#endif // Show various bits of UI #if defined(OS_WIN) || defined(OS_LINUX) -- cgit v1.1