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

Side by Side 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, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_LINK_INFOBAR_H_
6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_LINK_INFOBAR_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "chrome/browser/ui/views/infobars/infobar_view.h"
11 #include "ui/views/controls/link_listener.h"
12
13 class LinkInfoBarDelegate;
14
15 // An infobar that shows a string with an embedded link.
16 class LinkInfoBar : public InfoBarView,
17 public views::LinkListener {
18 public:
19 LinkInfoBar(InfoBarService* owner, LinkInfoBarDelegate* delegate);
20
21 private:
22 virtual ~LinkInfoBar();
23
24 // InfoBarView:
25 virtual void Layout() OVERRIDE;
26 virtual void ViewHierarchyChanged(bool is_add,
27 View* parent,
28 View* child) OVERRIDE;
29
30 // views::LinkListener:
31 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE;
32
33 LinkInfoBarDelegate* GetDelegate();
34
35 views::Label* label_1_;
36 views::Link* link_;
37 views::Label* label_2_;
38
39 DISALLOW_COPY_AND_ASSIGN(LinkInfoBar);
40 };
41
42 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_LINK_INFOBAR_H_
OLDNEW
« 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