| Index: chrome/browser/ui/views/autofill/decorated_textfield.h
|
| diff --git a/chrome/browser/ui/views/autofill/decorated_textfield.h b/chrome/browser/ui/views/autofill/decorated_textfield.h
|
| index 5602c9f16e92f5e52300d953e8ada3c42b1fcd5e..b7b0f141a9ea4bc1a9b08894fb10e128092e481b 100644
|
| --- a/chrome/browser/ui/views/autofill/decorated_textfield.h
|
| +++ b/chrome/browser/ui/views/autofill/decorated_textfield.h
|
| @@ -9,6 +9,7 @@
|
| #include "base/strings/string16.h"
|
| #include "ui/gfx/image/image.h"
|
| #include "ui/views/controls/textfield/textfield.h"
|
| +#include "ui/views/view_targeter_delegate.h"
|
|
|
| namespace views {
|
| class ImageView;
|
| @@ -19,7 +20,8 @@ namespace autofill {
|
|
|
| // A class which holds a textfield and draws extra stuff on top, like
|
| // invalid content indications.
|
| -class DecoratedTextfield : public views::Textfield {
|
| +class DecoratedTextfield : public views::Textfield,
|
| + public views::ViewTargeterDelegate {
|
| public:
|
| static const char kViewClassName[];
|
|
|
| @@ -50,11 +52,14 @@ class DecoratedTextfield : public views::Textfield {
|
| virtual const char* GetClassName() const OVERRIDE;
|
| virtual gfx::Size GetPreferredSize() const OVERRIDE;
|
| virtual void Layout() OVERRIDE;
|
| - virtual views::View* GetEventHandlerForRect(const gfx::Rect& rect) OVERRIDE;
|
|
|
| private:
|
| FRIEND_TEST_ALL_PREFIXES(DecoratedTextfieldTest, HeightMatchesButton);
|
|
|
| + // views::ViewTargeterDelegate:
|
| + virtual views::View* TargetForRect(views::View* root,
|
| + const gfx::Rect& rect) OVERRIDE;
|
| +
|
| // Updates the background after its color may have changed.
|
| void UpdateBackground();
|
|
|
|
|