OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_ERROR_UI_DEFAULT_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_ERROR_UI_DEFAULT_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_ERROR_UI_DEFAULT_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_ERROR_UI_DEFAULT_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "chrome/browser/extensions/extension_error_ui.h" | 10 #include "chrome/browser/extensions/extension_error_ui.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 public: | 29 public: |
30 explicit ExtensionGlobalError(ExtensionErrorUIDefault* error_ui); | 30 explicit ExtensionGlobalError(ExtensionErrorUIDefault* error_ui); |
31 | 31 |
32 private: | 32 private: |
33 // GlobalError methods. | 33 // GlobalError methods. |
34 virtual bool HasMenuItem() OVERRIDE; | 34 virtual bool HasMenuItem() OVERRIDE; |
35 virtual int MenuItemCommandID() OVERRIDE; | 35 virtual int MenuItemCommandID() OVERRIDE; |
36 virtual string16 MenuItemLabel() OVERRIDE; | 36 virtual string16 MenuItemLabel() OVERRIDE; |
37 virtual void ExecuteMenuItem(Browser* browser) OVERRIDE; | 37 virtual void ExecuteMenuItem(Browser* browser) OVERRIDE; |
38 virtual bool HasBubbleView() OVERRIDE; | 38 virtual bool HasBubbleView() OVERRIDE; |
| 39 virtual gfx::Image GetBubbleViewIcon() OVERRIDE; |
39 virtual string16 GetBubbleViewTitle() OVERRIDE; | 40 virtual string16 GetBubbleViewTitle() OVERRIDE; |
40 virtual std::vector<string16> GetBubbleViewMessages() OVERRIDE; | 41 virtual std::vector<string16> GetBubbleViewMessages() OVERRIDE; |
41 virtual string16 GetBubbleViewAcceptButtonLabel() OVERRIDE; | 42 virtual string16 GetBubbleViewAcceptButtonLabel() OVERRIDE; |
42 virtual string16 GetBubbleViewCancelButtonLabel() OVERRIDE; | 43 virtual string16 GetBubbleViewCancelButtonLabel() OVERRIDE; |
43 virtual void OnBubbleViewDidClose(Browser* browser) OVERRIDE; | 44 virtual void OnBubbleViewDidClose(Browser* browser) OVERRIDE; |
44 virtual void BubbleViewAcceptButtonPressed(Browser* browser) OVERRIDE; | 45 virtual void BubbleViewAcceptButtonPressed(Browser* browser) OVERRIDE; |
45 virtual void BubbleViewCancelButtonPressed(Browser* browser) OVERRIDE; | 46 virtual void BubbleViewCancelButtonPressed(Browser* browser) OVERRIDE; |
46 | 47 |
47 // The ExtensionErrorUIDefault who owns us. | 48 // The ExtensionErrorUIDefault who owns us. |
48 ExtensionErrorUIDefault* error_ui_; | 49 ExtensionErrorUIDefault* error_ui_; |
49 | 50 |
50 DISALLOW_COPY_AND_ASSIGN(ExtensionGlobalError); | 51 DISALLOW_COPY_AND_ASSIGN(ExtensionGlobalError); |
51 }; | 52 }; |
52 | 53 |
53 // The browser the bubble view was shown into. | 54 // The browser the bubble view was shown into. |
54 Browser* browser_; | 55 Browser* browser_; |
55 | 56 |
56 scoped_ptr<ExtensionGlobalError> global_error_; | 57 scoped_ptr<ExtensionGlobalError> global_error_; |
57 | 58 |
58 DISALLOW_COPY_AND_ASSIGN(ExtensionErrorUIDefault); | 59 DISALLOW_COPY_AND_ASSIGN(ExtensionErrorUIDefault); |
59 }; | 60 }; |
60 | 61 |
61 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ERROR_UI_DEFAULT_H_ | 62 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ERROR_UI_DEFAULT_H_ |
OLD | NEW |