| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_GLOBAL_ERROR_BADGE_H_ | |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_GLOBAL_ERROR_BADGE_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/compiler_specific.h" | |
| 10 #include "chrome/browser/ui/global_error/global_error.h" | |
| 11 | |
| 12 // Non-modal GlobalError implementation that warns the user if extensions | |
| 13 // created warnings or errors. If the user clicks on the wrench menu, the user | |
| 14 // is redirected to chrome://extensions to inspect the errors. | |
| 15 // | |
| 16 // This class is a candidate to be merged with ExtensionGlobalError once | |
| 17 // it is finished. | |
| 18 class ExtensionGlobalErrorBadge : public GlobalError { | |
| 19 public: | |
| 20 ExtensionGlobalErrorBadge(); | |
| 21 virtual ~ExtensionGlobalErrorBadge(); | |
| 22 | |
| 23 // Implementation for GlobalError: | |
| 24 virtual bool HasBadge() OVERRIDE; | |
| 25 | |
| 26 virtual bool HasMenuItem() OVERRIDE; | |
| 27 virtual int MenuItemCommandID() OVERRIDE; | |
| 28 virtual string16 MenuItemLabel() OVERRIDE; | |
| 29 virtual void ExecuteMenuItem(Browser* browser) OVERRIDE; | |
| 30 | |
| 31 virtual bool HasBubbleView() OVERRIDE; | |
| 32 virtual string16 GetBubbleViewTitle() OVERRIDE; | |
| 33 virtual string16 GetBubbleViewMessage() OVERRIDE; | |
| 34 virtual string16 GetBubbleViewAcceptButtonLabel() OVERRIDE; | |
| 35 virtual string16 GetBubbleViewCancelButtonLabel() OVERRIDE; | |
| 36 virtual void OnBubbleViewDidClose(Browser* browser) OVERRIDE; | |
| 37 virtual void BubbleViewAcceptButtonPressed(Browser* browser) OVERRIDE; | |
| 38 virtual void BubbleViewCancelButtonPressed(Browser* browser) OVERRIDE; | |
| 39 | |
| 40 static int GetMenuItemCommandID(); | |
| 41 private: | |
| 42 DISALLOW_COPY_AND_ASSIGN(ExtensionGlobalErrorBadge); | |
| 43 }; | |
| 44 | |
| 45 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_GLOBAL_ERROR_BADGE_H_ | |
| OLD | NEW |