| 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_GLOBAL_ERROR_BADGE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_GLOBAL_ERROR_BADGE_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_GLOBAL_ERROR_BADGE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_GLOBAL_ERROR_BADGE_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" |
| 11 #include "chrome/browser/ui/global_error.h" | 11 #include "chrome/browser/ui/global_error/global_error.h" |
| 12 | 12 |
| 13 // Non-modal GlobalError implementation that warns the user if extensions | 13 // Non-modal GlobalError implementation that warns the user if extensions |
| 14 // created warnings or errors. If the user clicks on the wrench menu, the user | 14 // created warnings or errors. If the user clicks on the wrench menu, the user |
| 15 // is redirected to chrome://extensions to inspect the errors. | 15 // is redirected to chrome://extensions to inspect the errors. |
| 16 // | 16 // |
| 17 // This class is a candidate to be merged with ExtensionGlobalError once | 17 // This class is a candidate to be merged with ExtensionGlobalError once |
| 18 // it is finished. | 18 // it is finished. |
| 19 class ExtensionGlobalErrorBadge : public GlobalError { | 19 class ExtensionGlobalErrorBadge : public GlobalError { |
| 20 public: | 20 public: |
| 21 ExtensionGlobalErrorBadge(); | 21 ExtensionGlobalErrorBadge(); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 37 virtual void OnBubbleViewDidClose(Browser* browser) OVERRIDE; | 37 virtual void OnBubbleViewDidClose(Browser* browser) OVERRIDE; |
| 38 virtual void BubbleViewAcceptButtonPressed(Browser* browser) OVERRIDE; | 38 virtual void BubbleViewAcceptButtonPressed(Browser* browser) OVERRIDE; |
| 39 virtual void BubbleViewCancelButtonPressed(Browser* browser) OVERRIDE; | 39 virtual void BubbleViewCancelButtonPressed(Browser* browser) OVERRIDE; |
| 40 | 40 |
| 41 static int GetMenuItemCommandID(); | 41 static int GetMenuItemCommandID(); |
| 42 private: | 42 private: |
| 43 DISALLOW_COPY_AND_ASSIGN(ExtensionGlobalErrorBadge); | 43 DISALLOW_COPY_AND_ASSIGN(ExtensionGlobalErrorBadge); |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_GLOBAL_ERROR_BADGE_H_ | 46 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_GLOBAL_ERROR_BADGE_H_ |
| OLD | NEW |