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

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

Issue 3461019: FBTF: Move virtual methods to implementation files. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Win+chromeos+mac fixes Created 10 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/tab_contents/infobar_delegate.h" 9 #include "chrome/browser/tab_contents/infobar_delegate.h"
10 10
(...skipping 23 matching lines...) Expand all
34 Extension* extension() { return extension_; } 34 Extension* extension() { return extension_; }
35 ExtensionHost* extension_host() { return extension_host_.get(); } 35 ExtensionHost* extension_host() { return extension_host_.get(); }
36 36
37 void set_observer(DelegateObserver* observer) { observer_ = observer; } 37 void set_observer(DelegateObserver* observer) { observer_ = observer; }
38 38
39 // Overridden from InfoBarDelegate: 39 // Overridden from InfoBarDelegate:
40 virtual void InfoBarDismissed() { closing_ = true; } 40 virtual void InfoBarDismissed() { closing_ = true; }
41 virtual bool EqualsDelegate(InfoBarDelegate* delegate) const; 41 virtual bool EqualsDelegate(InfoBarDelegate* delegate) const;
42 virtual void InfoBarClosed(); 42 virtual void InfoBarClosed();
43 virtual InfoBar* CreateInfoBar(); 43 virtual InfoBar* CreateInfoBar();
44 virtual ExtensionInfoBarDelegate* AsExtensionInfoBarDelegate() { 44 virtual ExtensionInfoBarDelegate* AsExtensionInfoBarDelegate();
45 return this; 45 virtual Type GetInfoBarType();
46 }
47 virtual Type GetInfoBarType() {
48 return PAGE_ACTION_TYPE;
49 }
50 46
51 // Overridden from NotificationObserver: 47 // Overridden from NotificationObserver:
52 virtual void Observe(NotificationType type, 48 virtual void Observe(NotificationType type,
53 const NotificationSource& source, 49 const NotificationSource& source,
54 const NotificationDetails& details); 50 const NotificationDetails& details);
55 51
56 bool closing() { return closing_; } 52 bool closing() { return closing_; }
57 private: 53 private:
58 // The extension host we are showing the InfoBar for. The delegate needs to 54 // The extension host we are showing the InfoBar for. The delegate needs to
59 // own this since the InfoBar gets deleted and recreated when you switch tabs 55 // own this since the InfoBar gets deleted and recreated when you switch tabs
(...skipping 11 matching lines...) Expand all
71 NotificationRegistrar registrar_; 67 NotificationRegistrar registrar_;
72 68
73 // Whether we are currently animating to close. This is used to ignore 69 // Whether we are currently animating to close. This is used to ignore
74 // ExtensionView::PreferredSizeChanged notifications. 70 // ExtensionView::PreferredSizeChanged notifications.
75 bool closing_; 71 bool closing_;
76 72
77 DISALLOW_COPY_AND_ASSIGN(ExtensionInfoBarDelegate); 73 DISALLOW_COPY_AND_ASSIGN(ExtensionInfoBarDelegate);
78 }; 74 };
79 75
80 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INFOBAR_DELEGATE_H_ 76 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INFOBAR_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698