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

Side by Side Diff: trunk/src/chrome/browser/ui/views/infobars/alternate_nav_infobar_view.h

Issue 102163002: Revert 238283 "Infobar system refactor." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_ALTERNATE_NAV_INFOBAR_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_ALTERNATE_NAV_INFOBAR_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_ALTERNATE_NAV_INFOBAR_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_ALTERNATE_NAV_INFOBAR_VIEW_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
9 #include "chrome/browser/ui/views/infobars/infobar_view.h" 10 #include "chrome/browser/ui/views/infobars/infobar_view.h"
10 #include "ui/views/controls/link_listener.h" 11 #include "ui/views/controls/link_listener.h"
11 12
12 class AlternateNavInfoBarDelegate; 13 class AlternateNavInfoBarDelegate;
13 14
14 // An infobar that shows a string with an embedded link. 15 // An infobar that shows a string with an embedded link.
15 class AlternateNavInfoBarView : public InfoBarView, 16 class AlternateNavInfoBarView : public InfoBarView,
16 public views::LinkListener { 17 public views::LinkListener {
17 public: 18 public:
18 explicit AlternateNavInfoBarView( 19 AlternateNavInfoBarView(InfoBarService* owner,
19 scoped_ptr<AlternateNavInfoBarDelegate> delegate); 20 AlternateNavInfoBarDelegate* delegate);
20 21
21 private: 22 private:
22 virtual ~AlternateNavInfoBarView(); 23 virtual ~AlternateNavInfoBarView();
23 24
24 // InfoBarView: 25 // InfoBarView:
25 virtual void Layout() OVERRIDE; 26 virtual void Layout() OVERRIDE;
26 virtual void ViewHierarchyChanged( 27 virtual void ViewHierarchyChanged(
27 const ViewHierarchyChangedDetails& details) OVERRIDE; 28 const ViewHierarchyChangedDetails& details) OVERRIDE;
28 29
29 // views::LinkListener: 30 // views::LinkListener:
30 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; 31 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE;
31 32
32 AlternateNavInfoBarDelegate* GetDelegate(); 33 AlternateNavInfoBarDelegate* GetDelegate();
33 34
34 views::Label* label_1_; 35 views::Label* label_1_;
35 views::Link* link_; 36 views::Link* link_;
36 views::Label* label_2_; 37 views::Label* label_2_;
37 38
38 DISALLOW_COPY_AND_ASSIGN(AlternateNavInfoBarView); 39 DISALLOW_COPY_AND_ASSIGN(AlternateNavInfoBarView);
39 }; 40 };
40 41
41 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_ALTERNATE_NAV_INFOBAR_VIEW_H_ 42 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_ALTERNATE_NAV_INFOBAR_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698