Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(344)

Side by Side Diff: chrome/browser/ui/views/autofill/tooltip_icon.cc

Issue 55243005: Implement learn more bubble on views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698