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

Unified Diff: chrome/browser/ui/views/autofill/tooltip_icon.h

Issue 981293003: Autofill - Add tooltip icon to cvc verification dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix bad rebase Created 5 years, 9 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/autofill/tooltip_icon.h
diff --git a/chrome/browser/ui/views/autofill/tooltip_icon.h b/chrome/browser/ui/views/autofill/tooltip_icon.h
index 377addc1be1c7184c9e1c1844172da3560a6ea4a..6f0826300e8ee2932c05ba32dbc15dc0ef6fc6f8 100644
--- a/chrome/browser/ui/views/autofill/tooltip_icon.h
+++ b/chrome/browser/ui/views/autofill/tooltip_icon.h
@@ -11,6 +11,7 @@
#include "base/scoped_observer.h"
#include "base/strings/string16.h"
#include "base/timer/timer.h"
+#include "ui/views/bubble/bubble_border.h"
#include "ui/views/controls/image_view.h"
#include "ui/views/mouse_watcher.h"
#include "ui/views/widget/widget_observer.h"
@@ -42,6 +43,10 @@ class TooltipIcon : public views::ImageView,
// views::WidgetObserver:
void OnWidgetDestroyed(views::Widget* widget) override;
+ void set_bubble_arrow(views::BubbleBorder::Arrow arrow) {
+ bubble_arrow_ = arrow;
+ }
+
private:
// Changes this view's image to the resource indicated by |idr|.
void ChangeImageTo(int idr);
@@ -62,6 +67,9 @@ class TooltipIcon : public views::ImageView,
// A bubble shown on hover. Weak; owns itself. NULL while hiding.
InfoBubble* bubble_;
+ // The position of the bubble's arrow.
+ views::BubbleBorder::Arrow bubble_arrow_;
+
// A timer to delay showing |bubble_|.
base::OneShotTimer<TooltipIcon> show_timer_;
« no previous file with comments | « chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc ('k') | chrome/browser/ui/views/autofill/tooltip_icon.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698