summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/find_bar_view.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-21 03:43:45 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-21 03:43:45 +0000
commiteea372e5ae883c1a9853086e54b43896aa72df36 (patch)
treef8345aa56206a072496d69554f805fe189483011 /chrome/browser/views/find_bar_view.h
parentb343f1c73ce201d34fe41037734f57f68dffe2f6 (diff)
downloadchromium_src-eea372e5ae883c1a9853086e54b43896aa72df36.zip
chromium_src-eea372e5ae883c1a9853086e54b43896aa72df36.tar.gz
chromium_src-eea372e5ae883c1a9853086e54b43896aa72df36.tar.bz2
Try to make TextField::Controller implementors cross-platform by abstracting
away the keystroke message that is passed. It turns out implementoars only ever check for enter and escape messages, so I wrote two functions in TextField that will decode the new Keyboard event. This design is not optimal. Ideally we would have something more like the WebInputEvent so that callers can check for anything in a cross-platform way. This was branched off from the original review: http://codereview.chromium.org/113639 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16577 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/find_bar_view.h')
-rw-r--r--chrome/browser/views/find_bar_view.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/views/find_bar_view.h b/chrome/browser/views/find_bar_view.h
index e56af0e..00ba8fe1 100644
--- a/chrome/browser/views/find_bar_view.h
+++ b/chrome/browser/views/find_bar_view.h
@@ -67,8 +67,8 @@ class FindBarView : public views::View,
// Overridden from views::TextField::Controller:
virtual void ContentsChanged(views::TextField* sender,
const std::wstring& new_contents);
- virtual bool HandleKeystroke(views::TextField* sender, UINT message,
- TCHAR key, UINT repeat_count, UINT flags);
+ virtual bool HandleKeystroke(views::TextField* sender,
+ const views::TextField::Keystroke& key);
// Set whether or not we're attempting to blend with the toolbar.
void set_toolbar_blend(bool toolbar_blend) { toolbar_blend_ = toolbar_blend; }