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

Unified Diff: chrome/browser/cocoa/infobar_test_helper.h

Issue 1127001: Implement the confirm infobar with link for mac.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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
« no previous file with comments | « chrome/browser/cocoa/infobar_controller_unittest.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/infobar_test_helper.h
===================================================================
--- chrome/browser/cocoa/infobar_test_helper.h (revision 41951)
+++ chrome/browser/cocoa/infobar_test_helper.h (working copy)
@@ -100,6 +100,7 @@
icon_accessed(false),
ok_clicked(false),
cancel_clicked(false),
+ link_clicked(false),
closed(false),
closes_on_action(true) {
}
@@ -139,12 +140,23 @@
closed = true;
}
+ virtual std::wstring GetLinkText() {
+ link_text_accessed = true;
+ return std::wstring();
+ }
+
+ virtual bool LinkClicked(WindowOpenDisposition disposition) {
+ link_clicked = true;
+ return closes_on_action;
+ }
+
// These are declared mutable to get around const-ness issues.
mutable bool message_text_accessed;
mutable bool link_text_accessed;
mutable bool icon_accessed;
bool ok_clicked;
bool cancel_clicked;
+ bool link_clicked;
bool closed;
// Determines whether the infobar closes when an action is taken or not.
« no previous file with comments | « chrome/browser/cocoa/infobar_controller_unittest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698