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

Unified Diff: chrome/browser/ui/cocoa/infobars/mock_alternate_nav_infobar_delegate.h

Issue 11721003: Eliminate the LinkInfoBar[Delegate] classes entirely. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: kill LinkInfoBar classes Created 8 years 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/cocoa/infobars/mock_alternate_nav_infobar_delegate.h
diff --git a/chrome/browser/ui/cocoa/infobars/mock_link_infobar_delegate.h b/chrome/browser/ui/cocoa/infobars/mock_alternate_nav_infobar_delegate.h
similarity index 69%
rename from chrome/browser/ui/cocoa/infobars/mock_link_infobar_delegate.h
rename to chrome/browser/ui/cocoa/infobars/mock_alternate_nav_infobar_delegate.h
index 078d6d7c04cac9e3ffb0321d39e3af26d6932522..9c5d6f783fe3abbbed78525ff0f1605ae7bb3563 100644
--- a/chrome/browser/ui/cocoa/infobars/mock_link_infobar_delegate.h
+++ b/chrome/browser/ui/cocoa/infobars/mock_alternate_nav_infobar_delegate.h
@@ -2,15 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_COCOA_INFOBARS_MOCK_LINK_INFOBAR_DELEGATE_H_
-#define CHROME_BROWSER_UI_COCOA_INFOBARS_MOCK_LINK_INFOBAR_DELEGATE_H_
+#ifndef CHROME_BROWSER_UI_COCOA_INFOBARS_MOCK_ALTERNATE_NAV_INFOBAR_DELEGATE_H_
+#define CHROME_BROWSER_UI_COCOA_INFOBARS_MOCK_ALTERNATE_NAV_INFOBAR_DELEGATE_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/string16.h"
-#include "chrome/browser/api/infobars/link_infobar_delegate.h"
+#include "chrome/browser/alternate_nav_infobar_delegate.h"
-class MockLinkInfoBarDelegate : public LinkInfoBarDelegate {
+class MockAlternateNavInfoBarDelegate : public AlternateNavInfoBarDelegate {
public:
// Called when |this| is about to be destroyed.
class Owner {
@@ -21,8 +21,8 @@ class MockLinkInfoBarDelegate : public LinkInfoBarDelegate {
virtual ~Owner() {}
};
- explicit MockLinkInfoBarDelegate(Owner* owner);
- virtual ~MockLinkInfoBarDelegate();
+ explicit MockAlternateNavInfoBarDelegate(Owner* owner);
+ virtual ~MockAlternateNavInfoBarDelegate();
void set_dont_close_on_action() { closes_on_action_ = false; }
bool icon_accessed() const { return icon_accessed_; }
@@ -34,7 +34,7 @@ class MockLinkInfoBarDelegate : public LinkInfoBarDelegate {
static const char kLink[];
private:
- // LinkInfoBarDelegate:
+ // AlternateNavInfoBarDelegate:
virtual gfx::Image* GetIcon() const OVERRIDE;
virtual string16 GetMessageTextWithOffset(size_t* link_offset) const OVERRIDE;
virtual string16 GetLinkText() const OVERRIDE;
@@ -48,7 +48,7 @@ class MockLinkInfoBarDelegate : public LinkInfoBarDelegate {
mutable bool link_text_accessed_;
bool link_clicked_;
- DISALLOW_COPY_AND_ASSIGN(MockLinkInfoBarDelegate);
+ DISALLOW_COPY_AND_ASSIGN(MockAlternateNavInfoBarDelegate);
};
-#endif // CHROME_BROWSER_UI_COCOA_INFOBARS_MOCK_LINK_INFOBAR_DELEGATE_H_
+#endif // CHROME_BROWSER_UI_COCOA_INFOBARS_MOCK_ALTERNATE_NAV_INFOBAR_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698