OLD | NEW |
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_PROTECTOR_SETTINGS_CHANGE_GLOBAL_ERROR_H_ | 5 #ifndef CHROME_BROWSER_PROTECTOR_SETTINGS_CHANGE_GLOBAL_ERROR_H_ |
6 #define CHROME_BROWSER_PROTECTOR_SETTINGS_CHANGE_GLOBAL_ERROR_H_ | 6 #define CHROME_BROWSER_PROTECTOR_SETTINGS_CHANGE_GLOBAL_ERROR_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" |
(...skipping 25 matching lines...) Expand all Loading... |
36 void ShowForProfile(Profile* profile); | 36 void ShowForProfile(Profile* profile); |
37 | 37 |
38 // Removes global error from its profile. | 38 // Removes global error from its profile. |
39 void RemoveFromProfile(); | 39 void RemoveFromProfile(); |
40 | 40 |
41 // Browser that the bubble has been last time shown for. | 41 // Browser that the bubble has been last time shown for. |
42 Browser* browser() const { return browser_; } | 42 Browser* browser() const { return browser_; } |
43 | 43 |
44 // GlobalError implementation. | 44 // GlobalError implementation. |
45 virtual bool HasBadge() OVERRIDE; | 45 virtual bool HasBadge() OVERRIDE; |
| 46 virtual int GetBadgeResourceID() OVERRIDE; |
46 virtual bool HasMenuItem() OVERRIDE; | 47 virtual bool HasMenuItem() OVERRIDE; |
47 virtual int MenuItemCommandID() OVERRIDE; | 48 virtual int MenuItemCommandID() OVERRIDE; |
48 virtual string16 MenuItemLabel() OVERRIDE; | 49 virtual string16 MenuItemLabel() OVERRIDE; |
| 50 virtual int MenuItemIconResourceID() OVERRIDE; |
49 virtual void ExecuteMenuItem(Browser* browser) OVERRIDE; | 51 virtual void ExecuteMenuItem(Browser* browser) OVERRIDE; |
50 virtual bool HasBubbleView() OVERRIDE; | 52 virtual bool HasBubbleView() OVERRIDE; |
| 53 virtual int GetBubbleViewIconResourceID() OVERRIDE; |
51 virtual string16 GetBubbleViewTitle() OVERRIDE; | 54 virtual string16 GetBubbleViewTitle() OVERRIDE; |
52 virtual string16 GetBubbleViewMessage() OVERRIDE; | 55 virtual string16 GetBubbleViewMessage() OVERRIDE; |
53 virtual string16 GetBubbleViewAcceptButtonLabel() OVERRIDE; | 56 virtual string16 GetBubbleViewAcceptButtonLabel() OVERRIDE; |
54 virtual string16 GetBubbleViewCancelButtonLabel() OVERRIDE; | 57 virtual string16 GetBubbleViewCancelButtonLabel() OVERRIDE; |
55 virtual void BubbleViewDidClose() OVERRIDE; | 58 virtual void BubbleViewDidClose() OVERRIDE; |
56 virtual void BubbleViewAcceptButtonPressed() OVERRIDE; | 59 virtual void BubbleViewAcceptButtonPressed() OVERRIDE; |
57 virtual void BubbleViewCancelButtonPressed() OVERRIDE; | 60 virtual void BubbleViewCancelButtonPressed() OVERRIDE; |
58 | 61 |
59 private: | 62 private: |
60 // Helper called on the UI thread to add this global error to the default | 63 // Helper called on the UI thread to add this global error to the default |
(...skipping 23 matching lines...) Expand all Loading... |
84 bool closed_by_button_; | 87 bool closed_by_button_; |
85 | 88 |
86 base::WeakPtrFactory<SettingsChangeGlobalError> weak_factory_; | 89 base::WeakPtrFactory<SettingsChangeGlobalError> weak_factory_; |
87 | 90 |
88 DISALLOW_COPY_AND_ASSIGN(SettingsChangeGlobalError); | 91 DISALLOW_COPY_AND_ASSIGN(SettingsChangeGlobalError); |
89 }; | 92 }; |
90 | 93 |
91 } // namespace protector | 94 } // namespace protector |
92 | 95 |
93 #endif // CHROME_BROWSER_PROTECTOR_SETTINGS_CHANGE_GLOBAL_ERROR_H_ | 96 #endif // CHROME_BROWSER_PROTECTOR_SETTINGS_CHANGE_GLOBAL_ERROR_H_ |
OLD | NEW |