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

Unified Diff: chrome/browser/ui/views/infobars/link_infobar.h

Issue 11721003: Eliminate the LinkInfoBar[Delegate] classes entirely. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address some nits - testing-automation matters? Created 7 years, 12 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/ui/views/infobars/link_infobar.h
diff --git a/chrome/browser/ui/views/infobars/link_infobar.h b/chrome/browser/ui/views/infobars/link_infobar.h
deleted file mode 100644
index 8024ae6391936d19965be02dd1ed36d0f0242973..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/infobars/link_infobar.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) 2011 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_UI_VIEWS_INFOBARS_LINK_INFOBAR_H_
-#define CHROME_BROWSER_UI_VIEWS_INFOBARS_LINK_INFOBAR_H_
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "chrome/browser/ui/views/infobars/infobar_view.h"
-#include "ui/views/controls/link_listener.h"
-
-class LinkInfoBarDelegate;
-
-// An infobar that shows a string with an embedded link.
-class LinkInfoBar : public InfoBarView,
- public views::LinkListener {
- public:
- LinkInfoBar(InfoBarService* owner, LinkInfoBarDelegate* delegate);
-
- private:
- virtual ~LinkInfoBar();
-
- // InfoBarView:
- virtual void Layout() OVERRIDE;
- virtual void ViewHierarchyChanged(bool is_add,
- View* parent,
- View* child) OVERRIDE;
-
- // views::LinkListener:
- virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE;
-
- LinkInfoBarDelegate* GetDelegate();
-
- views::Label* label_1_;
- views::Link* link_;
- views::Label* label_2_;
-
- DISALLOW_COPY_AND_ASSIGN(LinkInfoBar);
-};
-
-#endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_LINK_INFOBAR_H_
« no previous file with comments | « chrome/browser/ui/views/infobars/alternate_nav_infobar_view.cc ('k') | chrome/browser/ui/views/infobars/link_infobar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698