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

Side by Side Diff: chrome/browser/plugin_installer_infobar_delegate.h

Issue 6598057: Split infobar_delegate.[cc,h] into separate pieces for the different classes defined within, so that (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac Created 9 years, 9 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_PLUGIN_INSTALLER_INFOBAR_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_PLUGIN_INSTALLER_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_PLUGIN_INSTALLER_INFOBAR_DELEGATE_H_ 6 #define CHROME_BROWSER_PLUGIN_INSTALLER_INFOBAR_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/tab_contents/infobar_delegate.h" 9 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h"
10 10
11 class TabContents; 11 class TabContents;
12 12
13 // The main purpose for this class is to popup/close the infobar when there is 13 // The main purpose for this class is to popup/close the infobar when there is
14 // a missing plugin. 14 // a missing plugin.
15 class PluginInstallerInfoBarDelegate : public ConfirmInfoBarDelegate { 15 class PluginInstallerInfoBarDelegate : public ConfirmInfoBarDelegate {
16 public: 16 public:
17 explicit PluginInstallerInfoBarDelegate(TabContents* tab_contents); 17 explicit PluginInstallerInfoBarDelegate(TabContents* tab_contents);
18 18
19 private: 19 private:
20 virtual ~PluginInstallerInfoBarDelegate(); 20 virtual ~PluginInstallerInfoBarDelegate();
21 21
22 // ConfirmInfoBarDelegate: 22 // ConfirmInfoBarDelegate:
23 virtual SkBitmap* GetIcon() const; 23 virtual SkBitmap* GetIcon() const;
24 virtual PluginInstallerInfoBarDelegate* AsPluginInstallerInfoBarDelegate(); 24 virtual PluginInstallerInfoBarDelegate* AsPluginInstallerInfoBarDelegate();
25 virtual string16 GetMessageText() const; 25 virtual string16 GetMessageText() const;
26 virtual int GetButtons() const; 26 virtual int GetButtons() const;
27 virtual string16 GetButtonLabel(InfoBarButton button) const; 27 virtual string16 GetButtonLabel(InfoBarButton button) const;
28 virtual bool Accept(); 28 virtual bool Accept();
29 virtual string16 GetLinkText(); 29 virtual string16 GetLinkText();
30 virtual bool LinkClicked(WindowOpenDisposition disposition); 30 virtual bool LinkClicked(WindowOpenDisposition disposition);
31 31
32 // The containing TabContents 32 // The containing TabContents
33 TabContents* tab_contents_; 33 TabContents* tab_contents_;
34 34
35 DISALLOW_COPY_AND_ASSIGN(PluginInstallerInfoBarDelegate); 35 DISALLOW_COPY_AND_ASSIGN(PluginInstallerInfoBarDelegate);
36 }; 36 };
37 37
38 #endif // CHROME_BROWSER_PLUGIN_INSTALLER_INFOBAR_DELEGATE_H_ 38 #endif // CHROME_BROWSER_PLUGIN_INSTALLER_INFOBAR_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698