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

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

Issue 12893007: Implementing VERIFY_CVV required action. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ahutter@ review Created 7 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/autofill_dialog_views.h
diff --git a/chrome/browser/ui/views/autofill/autofill_dialog_views.h b/chrome/browser/ui/views/autofill/autofill_dialog_views.h
index 634ca66330626f2003f0ff2b3cffa58515c6709c..86347bbab2dfd6cb24d35e8c5bedf2380232cab4 100644
--- a/chrome/browser/ui/views/autofill/autofill_dialog_views.h
+++ b/chrome/browser/ui/views/autofill/autofill_dialog_views.h
@@ -250,6 +250,10 @@ class AutofillDialogViews : public AutofillDialogView,
// when showing the menu or hovered by the mouse cursor).
void SetActive(bool active);
+ // Whether this section can be actively styled or not. If |can_activate| is
Evan Stade 2013/03/26 19:29:54 I don't know what "actively styled" means.
Dan Beam 2013/03/27 00:38:27 s/actively styled/active/
+ // false and this view is currently active, it's deactivated.
+ void SetCanActivate(bool can_activate);
+
// Sets whether mouse events should be forwarded to |proxy_button_|.
void SetForwardMouseEvents(bool forward);
@@ -260,6 +264,8 @@ class AutofillDialogViews : public AutofillDialogView,
virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE;
+ bool can_activate() const { return can_activate_; }
+
private:
// Converts |event| to one suitable for |proxy_button_|.
static ui::MouseEvent ProxyEvent(const ui::MouseEvent& event);
@@ -267,6 +273,9 @@ class AutofillDialogViews : public AutofillDialogView,
// Mouse events on |this| are sent to this button.
views::Button* proxy_button_; // Weak reference.
+ // When true, this section container can be actively styled.
+ bool can_activate_;
+
// When true, mouse events will be forwarded to |proxy_button_|.
bool forward_mouse_events_;

Powered by Google App Engine
This is Rietveld 408576698