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

Unified Diff: chrome/browser/tab_contents/infobar_delegate.h

Issue 1037006: Finish implementing the geolocation infobar; adds a Learn more link pointing ... (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
Index: chrome/browser/tab_contents/infobar_delegate.h
===================================================================
--- chrome/browser/tab_contents/infobar_delegate.h (revision 41849)
+++ chrome/browser/tab_contents/infobar_delegate.h (working copy)
@@ -241,6 +241,22 @@
// the InfoBarDelegate should be removed from the associated TabContents.
virtual bool Cancel() { return true; }
+ // Returns the text of the link to be displayed, if any. Otherwise returns
+ // and empty string.
+ virtual std::wstring GetLinkText() {
+ return std::wstring();
+ }
+
+ // Called when the Link is clicked. The |disposition| specifies how the
+ // resulting document should be loaded (based on the event flags present when
+ // the link was clicked). This function returns true if the InfoBar should be
+ // closed now or false if it should remain until the user explicitly closes
+ // it.
+ // Will only be called if GetLinkText() returns non-empty string.
+ virtual bool LinkClicked(WindowOpenDisposition disposition) {
+ return true;
+ }
+
// Overridden from InfoBarDelegate:
virtual InfoBar* CreateInfoBar();
virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate() {
« no previous file with comments | « chrome/browser/geolocation/geolocation_permission_context.cc ('k') | chrome/browser/views/infobars/infobars.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698