| OLD | NEW |
| (Empty) |
| 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 #include "chrome/browser/ui/views/autofill/tooltip_icon.h" | |
| 6 | |
| 7 #include "grit/theme_resources.h" | |
| 8 #include "ui/base/resource/resource_bundle.h" | |
| 9 | |
| 10 TooltipIcon::TooltipIcon(const base::string16& tooltip) : tooltip_(tooltip) { | |
| 11 SetImage(ui::ResourceBundle::GetSharedInstance().GetImageNamed( | |
| 12 IDR_AUTOFILL_TOOLTIP_ICON).ToImageSkia()); | |
| 13 } | |
| 14 | |
| 15 TooltipIcon::~TooltipIcon() {} | |
| 16 | |
| 17 bool TooltipIcon::GetTooltipText(const gfx::Point& p, | |
| 18 base::string16* tooltip) const { | |
| 19 *tooltip = tooltip_; | |
| 20 return !tooltip_.empty(); | |
| 21 } | |
| OLD | NEW |