diff options
author | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-01 02:10:42 +0000 |
---|---|---|
committer | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-01 02:10:42 +0000 |
commit | c868a5251e1251a5b555c181ffb9e6804dc3e84f (patch) | |
tree | 75f4e77c78a2a7c156b62326bbf910f93c98300c /chrome/browser/views/dropdown_bar_host.h | |
parent | 442d293cc0b415c6f20231ea2a577b316162c5be (diff) | |
download | chromium_src-c868a5251e1251a5b555c181ffb9e6804dc3e84f.zip chromium_src-c868a5251e1251a5b555c181ffb9e6804dc3e84f.tar.gz chromium_src-c868a5251e1251a5b555c181ffb9e6804dc3e84f.tar.bz2 |
Wire up Ctrl+Enter for Find on ToolkitViews to match GTK.
BUG=38366
TEST=Find a link, press Ctrl+Enter. Find box should close chrome should navigate the link.
Review URL: http://codereview.chromium.org/1562006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43308 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/dropdown_bar_host.h')
-rw-r--r-- | chrome/browser/views/dropdown_bar_host.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/chrome/browser/views/dropdown_bar_host.h b/chrome/browser/views/dropdown_bar_host.h index 2528e7f..e77ffa5 100644 --- a/chrome/browser/views/dropdown_bar_host.h +++ b/chrome/browser/views/dropdown_bar_host.h @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -88,13 +88,15 @@ class DropdownBarHost : public views::AcceleratorTarget, // Returns the browser view that the dropdown belongs to. BrowserView* browser_view() const { return browser_view_; } - // Registers this class as the handler for when Escape is pressed. We will - // unregister once we loose focus. See also: SetFocusChangeListener(). - void RegisterEscAccelerator(); + // Registers this class as the handler for when Escape is pressed. Once we + // loose focus we will unregister Escape and (any accelerators the derived + // classes registers by using overrides of RegisterAccelerators). See also: + // SetFocusChangeListener(). + virtual void RegisterAccelerators(); - // When we loose focus, we unregister the handler for Escape. See - // also: SetFocusChangeListener(). - void UnregisterEscAccelerator(); + // When we loose focus, we unregister all accelerator handlers. See also: + // SetFocusChangeListener(). + virtual void UnregisterAccelerators(); protected: // Returns the dropdown bar view. |