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

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

Issue 7812020: Moved the following IPC messages used by the chrome NPAPI plugin installer out of content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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/confirm_infobar_delegate.h" 9 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h"
10 #include "ui/gfx/native_widget_types.h"
10 11
11 class TabContents; 12 class TabContents;
12 13
13 // The main purpose for this class is to popup/close the infobar when there is 14 // The main purpose for this class is to popup/close the infobar when there is
14 // a missing plugin. 15 // a missing plugin.
15 class PluginInstallerInfoBarDelegate : public ConfirmInfoBarDelegate { 16 class PluginInstallerInfoBarDelegate : public ConfirmInfoBarDelegate {
16 public: 17 public:
17 explicit PluginInstallerInfoBarDelegate(TabContents* tab_contents); 18 PluginInstallerInfoBarDelegate(TabContents* tab_contents,
19 gfx::NativeWindow window);
18 20
19 private: 21 private:
20 virtual ~PluginInstallerInfoBarDelegate(); 22 virtual ~PluginInstallerInfoBarDelegate();
21 23
22 // ConfirmInfoBarDelegate: 24 // ConfirmInfoBarDelegate:
23 virtual gfx::Image* GetIcon() const OVERRIDE; 25 virtual gfx::Image* GetIcon() const OVERRIDE;
24 virtual PluginInstallerInfoBarDelegate* 26 virtual PluginInstallerInfoBarDelegate*
25 AsPluginInstallerInfoBarDelegate() OVERRIDE; 27 AsPluginInstallerInfoBarDelegate() OVERRIDE;
26 virtual string16 GetMessageText() const OVERRIDE; 28 virtual string16 GetMessageText() const OVERRIDE;
27 virtual int GetButtons() const OVERRIDE; 29 virtual int GetButtons() const OVERRIDE;
28 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; 30 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE;
29 virtual bool Accept() OVERRIDE; 31 virtual bool Accept() OVERRIDE;
30 virtual string16 GetLinkText() const OVERRIDE; 32 virtual string16 GetLinkText() const OVERRIDE;
31 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE; 33 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE;
32 34
33 // The containing TabContents 35 // The containing TabContents
34 TabContents* tab_contents_; 36 TabContents* tab_contents_;
37 gfx::NativeWindow window_;
35 38
36 DISALLOW_COPY_AND_ASSIGN(PluginInstallerInfoBarDelegate); 39 DISALLOW_COPY_AND_ASSIGN(PluginInstallerInfoBarDelegate);
37 }; 40 };
38 41
39 #endif // CHROME_BROWSER_PLUGIN_INSTALLER_INFOBAR_DELEGATE_H_ 42 #endif // CHROME_BROWSER_PLUGIN_INSTALLER_INFOBAR_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_plugin_message_filter.cc ('k') | chrome/browser/plugin_installer_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698