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

Side by Side Diff: chrome/browser/ui/gtk/infobars/alternate_nav_infobar_gtk.h

Issue 14327008: Add InitWidgets() phase for GTK infobars. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 8 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
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_GTK_INFOBARS_ALTERNATE_NAV_INFOBAR_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_INFOBARS_ALTERNATE_NAV_INFOBAR_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_INFOBARS_ALTERNATE_NAV_INFOBAR_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_INFOBARS_ALTERNATE_NAV_INFOBAR_GTK_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "chrome/browser/ui/gtk/infobars/infobar_gtk.h" 9 #include "chrome/browser/ui/gtk/infobars/infobar_gtk.h"
10 #include "ui/base/gtk/gtk_signal.h" 10 #include "ui/base/gtk/gtk_signal.h"
11 11
12 class AlternateNavInfoBarDelegate; 12 class AlternateNavInfoBarDelegate;
13 13
14 // An infobar that shows a string with an embedded link. 14 // An infobar that shows a string with an embedded link.
15 class AlternateNavInfoBarGtk : public InfoBarGtk { 15 class AlternateNavInfoBarGtk : public InfoBarGtk {
16 public: 16 public:
17 AlternateNavInfoBarGtk(InfoBarService* owner, 17 AlternateNavInfoBarGtk(InfoBarService* owner,
18 AlternateNavInfoBarDelegate* delegate); 18 AlternateNavInfoBarDelegate* delegate);
19 19
20 private: 20 private:
21 virtual ~AlternateNavInfoBarGtk(); 21 virtual ~AlternateNavInfoBarGtk();
22 22
23 // InfoBarGtk:
24 virtual void InitWidgets() OVERRIDE;
25
23 CHROMEGTK_CALLBACK_0(AlternateNavInfoBarGtk, void, OnLinkClicked); 26 CHROMEGTK_CALLBACK_0(AlternateNavInfoBarGtk, void, OnLinkClicked);
24 27
25 AlternateNavInfoBarDelegate* GetDelegate(); 28 AlternateNavInfoBarDelegate* GetDelegate();
26 29
27 DISALLOW_COPY_AND_ASSIGN(AlternateNavInfoBarGtk); 30 DISALLOW_COPY_AND_ASSIGN(AlternateNavInfoBarGtk);
28 }; 31 };
29 32
30 #endif // CHROME_BROWSER_UI_GTK_INFOBARS_ALTERNATE_NAV_INFOBAR_GTK_H_ 33 #endif // CHROME_BROWSER_UI_GTK_INFOBARS_ALTERNATE_NAV_INFOBAR_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698