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

Side by Side Diff: chrome/browser/tab_contents/simple_alert_infobar_delegate.h

Issue 8539006: Cleanup: Remove unneeded forward declarations from various chrome/browser subdirectories. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 9 years, 1 month 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_TAB_CONTENTS_SIMPLE_ALERT_INFOBAR_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_SIMPLE_ALERT_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_SIMPLE_ALERT_INFOBAR_DELEGATE_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_SIMPLE_ALERT_INFOBAR_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/string16.h" 11 #include "base/string16.h"
12 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" 12 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h"
13 13
14 class SkBitmap;
15 class TabContents;
16
17 class SimpleAlertInfoBarDelegate : public ConfirmInfoBarDelegate { 14 class SimpleAlertInfoBarDelegate : public ConfirmInfoBarDelegate {
18 public: 15 public:
19 SimpleAlertInfoBarDelegate(InfoBarTabHelper* infobar_helper, 16 SimpleAlertInfoBarDelegate(InfoBarTabHelper* infobar_helper,
20 gfx::Image* icon, // May be NULL. 17 gfx::Image* icon, // May be NULL.
21 const string16& message, 18 const string16& message,
22 bool auto_expire); 19 bool auto_expire);
23 20
24 private: 21 private:
25 virtual ~SimpleAlertInfoBarDelegate(); 22 virtual ~SimpleAlertInfoBarDelegate();
26 23
27 // ConfirmInfoBarDelegate: 24 // ConfirmInfoBarDelegate:
28 virtual bool ShouldExpire( 25 virtual bool ShouldExpire(
29 const content::LoadCommittedDetails& details) const OVERRIDE; 26 const content::LoadCommittedDetails& details) const OVERRIDE;
30 virtual gfx::Image* GetIcon() const OVERRIDE; 27 virtual gfx::Image* GetIcon() const OVERRIDE;
31 virtual string16 GetMessageText() const OVERRIDE; 28 virtual string16 GetMessageText() const OVERRIDE;
32 virtual int GetButtons() const OVERRIDE; 29 virtual int GetButtons() const OVERRIDE;
33 30
34 gfx::Image* icon_; 31 gfx::Image* icon_;
35 string16 message_; 32 string16 message_;
36 bool auto_expire_; // Should it expire automatically on navigation? 33 bool auto_expire_; // Should it expire automatically on navigation?
37 34
38 DISALLOW_COPY_AND_ASSIGN(SimpleAlertInfoBarDelegate); 35 DISALLOW_COPY_AND_ASSIGN(SimpleAlertInfoBarDelegate);
39 }; 36 };
40 37
41 #endif // CHROME_BROWSER_TAB_CONTENTS_SIMPLE_ALERT_INFOBAR_DELEGATE_H_ 38 #endif // CHROME_BROWSER_TAB_CONTENTS_SIMPLE_ALERT_INFOBAR_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/search_engines/template_url_service.h ('k') | chrome/browser/tab_contents/spelling_menu_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698