Chromium Code Reviews| Index: chrome/browser/alternate_nav_infobar_delegate.h |
| diff --git a/chrome/browser/alternate_nav_infobar_delegate.h b/chrome/browser/alternate_nav_infobar_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..d022b8425d5b6a840ec25056e58e994fe9031045 |
| --- /dev/null |
| +++ b/chrome/browser/alternate_nav_infobar_delegate.h |
| @@ -0,0 +1,37 @@ |
| +// Copyright 2012 The Chromium Authors. All rights reserved. |
|
Peter Kasting
2013/01/02 19:32:52
These should live in chrome/browser/infobars.
tfarina
2013/01/02 21:01:24
Done.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_ALTERNATE_NAV_INFOBAR_DELEGATE_H_ |
| +#define CHROME_BROWSER_ALTERNATE_NAV_INFOBAR_DELEGATE_H_ |
| + |
| +#include "base/basictypes.h" |
| +#include "base/compiler_specific.h" |
| +#include "chrome/browser/api/infobars/infobar_delegate.h" |
| +#include "googleurl/src/gurl.h" |
| + |
| +class AlternateNavInfoBarDelegate : public InfoBarDelegate { |
| + public: |
| + AlternateNavInfoBarDelegate(InfoBarService* owner, |
| + const GURL& alternate_nav_url); |
| + virtual ~AlternateNavInfoBarDelegate(); |
| + |
| + virtual string16 GetMessageTextWithOffset(size_t* link_offset) const; |
| + |
| + virtual string16 GetLinkText() const; |
| + |
| + virtual bool LinkClicked(WindowOpenDisposition disposition); |
| + |
| + private: |
| + // InfoBarDelegate: |
| + virtual InfoBar* CreateInfoBar(InfoBarService* owner) OVERRIDE; |
| + virtual AlternateNavInfoBarDelegate* AsAlternateNavInfoBarDelegate() OVERRIDE; |
| + virtual gfx::Image* GetIcon() const OVERRIDE; |
| + virtual Type GetInfoBarType() const OVERRIDE; |
| + |
| + GURL alternate_nav_url_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(AlternateNavInfoBarDelegate); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_ALTERNATE_NAV_INFOBAR_DELEGATE_H_ |