- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / views / autofill / tooltip_icon.h
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_TOOLTIP_ICON_H_
6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_TOOLTIP_ICON_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "base/strings/string16.h"
11 #include "ui/views/controls/image_view.h"
12
13 // A tooltip icon (just an ImageView with a tooltip). Looks like (?).
14 class TooltipIcon : public views::ImageView {
15  public:
16   explicit TooltipIcon(const base::string16& tooltip);
17   virtual ~TooltipIcon();
18
19   // views::View implementation
20   virtual bool GetTooltipText(const gfx::Point& p,
21                               base::string16* tooltip) const OVERRIDE;
22  private:
23   base::string16 tooltip_;
24
25   DISALLOW_COPY_AND_ASSIGN(TooltipIcon);
26 };
27
28 #endif  // CHROME_BROWSER_UI_VIEWS_AUTOFILL_TOOLTIP_ICON_H_