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

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

Issue 6926001: Replace the virtual InfoBarDelegate::InfoBarClosed() function with a non-virtual one. This is a ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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_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; 14 class SkBitmap;
15 class TabContents; 15 class TabContents;
16 16
17 class SimpleAlertInfoBarDelegate : public ConfirmInfoBarDelegate { 17 class SimpleAlertInfoBarDelegate : public ConfirmInfoBarDelegate {
18 public: 18 public:
19 SimpleAlertInfoBarDelegate(TabContents* contents, 19 SimpleAlertInfoBarDelegate(TabContents* contents,
20 gfx::Image* icon, // May be NULL. 20 gfx::Image* icon, // May be NULL.
21 const string16& message, 21 const string16& message,
22 bool auto_expire); 22 bool auto_expire);
23 23
24 private: 24 private:
25 virtual ~SimpleAlertInfoBarDelegate(); 25 virtual ~SimpleAlertInfoBarDelegate();
26 26
27 // ConfirmInfoBarDelegate: 27 // ConfirmInfoBarDelegate:
28 virtual bool ShouldExpire( 28 virtual bool ShouldExpire(
29 const NavigationController::LoadCommittedDetails& details) const OVERRIDE; 29 const NavigationController::LoadCommittedDetails& details) const OVERRIDE;
30 virtual void InfoBarClosed() OVERRIDE;
31 virtual gfx::Image* GetIcon() const OVERRIDE; 30 virtual gfx::Image* GetIcon() const OVERRIDE;
32 virtual string16 GetMessageText() const OVERRIDE; 31 virtual string16 GetMessageText() const OVERRIDE;
33 virtual int GetButtons() const OVERRIDE; 32 virtual int GetButtons() const OVERRIDE;
34 33
35 gfx::Image* icon_; 34 gfx::Image* icon_;
36 string16 message_; 35 string16 message_;
37 bool auto_expire_; // Should it expire automatically on navigation? 36 bool auto_expire_; // Should it expire automatically on navigation?
38 37
39 DISALLOW_COPY_AND_ASSIGN(SimpleAlertInfoBarDelegate); 38 DISALLOW_COPY_AND_ASSIGN(SimpleAlertInfoBarDelegate);
40 }; 39 };
41 40
42 #endif // CHROME_BROWSER_TAB_CONTENTS_SIMPLE_ALERT_INFOBAR_DELEGATE_H_ 41 #endif // CHROME_BROWSER_TAB_CONTENTS_SIMPLE_ALERT_INFOBAR_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/infobar_delegate.cc ('k') | chrome/browser/tab_contents/simple_alert_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698