Chromium Code Reviews| Index: chrome/browser/infobars/alternate_nav_infobar_delegate.h |
| diff --git a/chrome/browser/infobars/alternate_nav_infobar_delegate.h b/chrome/browser/infobars/alternate_nav_infobar_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c9788941265a8db6fdc3937aba738996f6674c24 |
| --- /dev/null |
| +++ b/chrome/browser/infobars/alternate_nav_infobar_delegate.h |
| @@ -0,0 +1,37 @@ |
| +// Copyright 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_INFOBARS_ALTERNATE_NAV_INFOBAR_DELEGATE_H_ |
|
Peter Kasting
2013/01/04 01:09:07
I'm torn on this, but I think this delegate should
tfarina
2013/01/08 21:43:00
I've opened a new CL to address this here:
https:
|
| +#define CHROME_BROWSER_INFOBARS_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; |
| + |
|
Peter Kasting
2013/01/04 01:09:07
Nit: Extra blank line (2 places)
|
| + virtual string16 GetLinkText() const; |
| + |
| + virtual bool LinkClicked(WindowOpenDisposition disposition); |
| + |
| + private: |
| + // InfoBarDelegate: |
| + virtual InfoBar* CreateInfoBar(InfoBarService* owner) OVERRIDE; |
| + virtual AlternateNavInfoBarDelegate* AsAlternateNavInfoBarDelegate() OVERRIDE; |
|
Peter Kasting
2013/01/04 01:09:07
Nit: Belongs below the next two functions
|
| + virtual gfx::Image* GetIcon() const OVERRIDE; |
| + virtual Type GetInfoBarType() const OVERRIDE; |
| + |
| + GURL alternate_nav_url_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(AlternateNavInfoBarDelegate); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_INFOBARS_ALTERNATE_NAV_INFOBAR_DELEGATE_H_ |