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

Side by Side Diff: chrome/browser/extensions/extension_infobar_delegate.h

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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_EXTENSIONS_EXTENSION_INFOBAR_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INFOBAR_DELEGATE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INFOBAR_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" 10 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 virtual ~ExtensionInfoBarDelegate(); 47 virtual ~ExtensionInfoBarDelegate();
48 48
49 // InfoBarDelegate: 49 // InfoBarDelegate:
50 virtual InfoBar* CreateInfoBar(TabContentsWrapper* owner) OVERRIDE; 50 virtual InfoBar* CreateInfoBar(TabContentsWrapper* owner) OVERRIDE;
51 virtual bool EqualsDelegate(InfoBarDelegate* delegate) const OVERRIDE; 51 virtual bool EqualsDelegate(InfoBarDelegate* delegate) const OVERRIDE;
52 virtual void InfoBarDismissed() OVERRIDE; 52 virtual void InfoBarDismissed() OVERRIDE;
53 virtual Type GetInfoBarType() const OVERRIDE; 53 virtual Type GetInfoBarType() const OVERRIDE;
54 virtual ExtensionInfoBarDelegate* AsExtensionInfoBarDelegate() OVERRIDE; 54 virtual ExtensionInfoBarDelegate* AsExtensionInfoBarDelegate() OVERRIDE;
55 55
56 // NotificationObserver: 56 // NotificationObserver:
57 virtual void Observe(NotificationType type, 57 virtual void Observe(int type,
58 const NotificationSource& source, 58 const NotificationSource& source,
59 const NotificationDetails& details) OVERRIDE; 59 const NotificationDetails& details) OVERRIDE;
60 60
61 // The extension host we are showing the InfoBar for. The delegate needs to 61 // The extension host we are showing the InfoBar for. The delegate needs to
62 // own this since the InfoBar gets deleted and recreated when you switch tabs 62 // own this since the InfoBar gets deleted and recreated when you switch tabs
63 // and come back (and we don't want the user's interaction with the InfoBar to 63 // and come back (and we don't want the user's interaction with the InfoBar to
64 // get lost at that point). 64 // get lost at that point).
65 scoped_ptr<ExtensionHost> extension_host_; 65 scoped_ptr<ExtensionHost> extension_host_;
66 66
67 // The observer monitoring when the delegate dies. 67 // The observer monitoring when the delegate dies.
68 DelegateObserver* observer_; 68 DelegateObserver* observer_;
69 69
70 const Extension* extension_; 70 const Extension* extension_;
71 TabContents* tab_contents_; 71 TabContents* tab_contents_;
72 NotificationRegistrar registrar_; 72 NotificationRegistrar registrar_;
73 73
74 // Whether we are currently animating to close. This is used to ignore 74 // Whether we are currently animating to close. This is used to ignore
75 // ExtensionView::PreferredSizeChanged notifications. 75 // ExtensionView::PreferredSizeChanged notifications.
76 bool closing_; 76 bool closing_;
77 77
78 DISALLOW_COPY_AND_ASSIGN(ExtensionInfoBarDelegate); 78 DISALLOW_COPY_AND_ASSIGN(ExtensionInfoBarDelegate);
79 }; 79 };
80 80
81 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INFOBAR_DELEGATE_H_ 81 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INFOBAR_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_host.cc ('k') | chrome/browser/extensions/extension_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698