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 19 matching lines...) Expand all Loading... |
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 string16 GetBubbleViewTitle() OVERRIDE; | 39 virtual string16 GetBubbleViewTitle() OVERRIDE; |
40 virtual string16 GetBubbleViewMessage() OVERRIDE; | 40 virtual std::vector<string16> GetBubbleViewMessages() OVERRIDE; |
41 virtual string16 GetBubbleViewAcceptButtonLabel() OVERRIDE; | 41 virtual string16 GetBubbleViewAcceptButtonLabel() OVERRIDE; |
42 virtual string16 GetBubbleViewCancelButtonLabel() OVERRIDE; | 42 virtual string16 GetBubbleViewCancelButtonLabel() OVERRIDE; |
43 virtual void OnBubbleViewDidClose(Browser* browser) OVERRIDE; | 43 virtual void OnBubbleViewDidClose(Browser* browser) OVERRIDE; |
44 virtual void BubbleViewAcceptButtonPressed(Browser* browser) OVERRIDE; | 44 virtual void BubbleViewAcceptButtonPressed(Browser* browser) OVERRIDE; |
45 virtual void BubbleViewCancelButtonPressed(Browser* browser) OVERRIDE; | 45 virtual void BubbleViewCancelButtonPressed(Browser* browser) OVERRIDE; |
46 | 46 |
47 // The ExtensionErrorUIDefault who owns us. | 47 // The ExtensionErrorUIDefault who owns us. |
48 ExtensionErrorUIDefault* error_ui_; | 48 ExtensionErrorUIDefault* error_ui_; |
49 | 49 |
50 DISALLOW_COPY_AND_ASSIGN(ExtensionGlobalError); | 50 DISALLOW_COPY_AND_ASSIGN(ExtensionGlobalError); |
51 }; | 51 }; |
52 | 52 |
53 // The browser the bubble view was shown into. | 53 // The browser the bubble view was shown into. |
54 Browser* browser_; | 54 Browser* browser_; |
55 | 55 |
56 scoped_ptr<ExtensionGlobalError> global_error_; | 56 scoped_ptr<ExtensionGlobalError> global_error_; |
57 | 57 |
58 DISALLOW_COPY_AND_ASSIGN(ExtensionErrorUIDefault); | 58 DISALLOW_COPY_AND_ASSIGN(ExtensionErrorUIDefault); |
59 }; | 59 }; |
60 | 60 |
61 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ERROR_UI_DEFAULT_H_ | 61 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ERROR_UI_DEFAULT_H_ |
OLD | NEW |