diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-05 23:50:59 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-05 23:50:59 +0000 |
commit | 7110c8930b89fc05b45029f7751fa5ce06e41f1c (patch) | |
tree | 2b5cc53476a4484789b1a7de47e15a9035b78337 /chrome/browser/ui/views/find_bar_host.h | |
parent | 70833268d3cfae8f2cf6b9cd69cc07c8508ab319 (diff) | |
download | chromium_src-7110c8930b89fc05b45029f7751fa5ce06e41f1c.zip chromium_src-7110c8930b89fc05b45029f7751fa5ce06e41f1c.tar.gz chromium_src-7110c8930b89fc05b45029f7751fa5ce06e41f1c.tar.bz2 |
Replace Textfield::Keystroke with views::KeyEvent.
It looks big, but most of change is simple signature change.
Note: I need your advice on how to deal with WM_CHAR event on Win. Please see my comment below.
BUG=none
TEST=no new functionality. All tests should still pass.
Review URL: http://codereview.chromium.org/6034002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70553 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/views/find_bar_host.h')
-rw-r--r-- | chrome/browser/ui/views/find_bar_host.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/chrome/browser/ui/views/find_bar_host.h b/chrome/browser/ui/views/find_bar_host.h index 6ab11ca..997d2f8 100644 --- a/chrome/browser/ui/views/find_bar_host.h +++ b/chrome/browser/ui/views/find_bar_host.h @@ -40,12 +40,11 @@ class FindBarHost : public DropdownBarHost, explicit FindBarHost(BrowserView* browser_view); virtual ~FindBarHost(); - // Forwards selected keystrokes to the renderer. This is useful to make sure + // Forwards selected key events to the renderer. This is useful to make sure // that arrow keys and PageUp and PageDown result in scrolling, instead of // being eaten because the FindBar has focus. Returns true if the keystroke // was forwarded, false if not. - bool MaybeForwardKeystrokeToWebpage( - const views::Textfield::Keystroke& key_stroke); + bool MaybeForwardKeyEventToWebpage(const views::KeyEvent& key_event); // FindBar implementation: virtual FindBarController* GetFindBarController() const; @@ -116,9 +115,9 @@ class FindBarHost : public DropdownBarHost, // Allows implementation to tweak widget position. void GetWidgetPositionNative(gfx::Rect* avoid_overlapping_rect); - // Allows native implementation to prevent keystrokes from being forwarded. - bool ShouldForwardKeystrokeToWebpageNative( - const views::Textfield::Keystroke& key_stroke); + // Allows native implementation to prevent key events from being forwarded. + bool ShouldForwardKeyEventToWebpageNative( + const views::KeyEvent& key_event); // Returns the FindBarView. FindBarView* find_bar_view(); |