summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authornsylvain@google.com <nsylvain@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-07-29 21:54:26 +0000
committernsylvain@google.com <nsylvain@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-07-29 21:54:26 +0000
commit6968c4e063dce2e6befb5db3f67680d64e26c183 (patch)
treef180ee94be63b804e773f44347c5a973be46d443 /chrome/browser
parente2504894ed0be1acaf8f6d753f752d25cc3f9aed (diff)
downloadchromium_src-6968c4e063dce2e6befb5db3f67680d64e26c183.zip
chromium_src-6968c4e063dce2e6befb5db3f67680d64e26c183.tar.gz
chromium_src-6968c4e063dce2e6befb5db3f67680d64e26c183.tar.bz2
Revert revision 73 because it was checked in when the tree was closed.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/views/toolbar_view.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/chrome/browser/views/toolbar_view.cc b/chrome/browser/views/toolbar_view.cc
index c7e9a0d..7b673a3 100644
--- a/chrome/browser/views/toolbar_view.cc
+++ b/chrome/browser/views/toolbar_view.cc
@@ -61,7 +61,6 @@
#include "chrome/views/view_container.h"
#include "chrome/views/background.h"
#include "chrome/views/label.h"
-#include "chrome/views/tooltip_manager.h"
#include "net/base/net_util.h"
#include "generated_resources.h"
@@ -374,9 +373,6 @@ void BrowserToolbarView::DidGainFocus() {
void BrowserToolbarView::WillLoseFocus() {
// Resetting focus state.
acc_focused_view_->SetHotTracked(false);
- // Any tooltips that are active should be hidden when toolbar loses focus.
- if (GetViewContainer() && GetViewContainer()->GetTooltipManager())
- GetViewContainer()->GetTooltipManager()->HideKeyboardTooltip();
acc_focused_view_ = NULL;
}
@@ -400,10 +396,6 @@ bool BrowserToolbarView::OnKeyPressed(const ChromeViews::KeyEvent& e) {
// VK_SPACE is already handled by the default case.
if (acc_focused_view_->GetID() == VIEW_ID_PAGE_MENU ||
acc_focused_view_->GetID() == VIEW_ID_APP_MENU) {
- // If a menu button in toolbar is activated and its menu is displayed,
- // then active tooltip should be hidden.
- if (GetViewContainer()->GetTooltipManager())
- GetViewContainer()->GetTooltipManager()->HideKeyboardTooltip();
// Safe to cast, given to above check.
static_cast<ChromeViews::MenuButton*>(acc_focused_view_)->Activate();
// Re-enable hot-tracking, as Activate() will disable it.
@@ -434,10 +426,6 @@ bool BrowserToolbarView::OnKeyPressed(const ChromeViews::KeyEvent& e) {
int view_id = acc_focused_view_->GetID();
HWND hwnd = GetViewContainer()->GetHWND();
- // Show the tooltip for the view that got the focus.
- if (GetViewContainer()->GetTooltipManager())
- GetViewContainer()->GetTooltipManager()->
- ShowKeyboardTooltip(GetChildViewAt(next_view));
// Notify Access Technology that there was a change in keyboard focus.
::NotifyWinEvent(EVENT_OBJECT_FOCUS, hwnd, OBJID_CLIENT,
static_cast<LONG>(view_id));