| 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_INSTALL_UI_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 // the default behavior in the future. | 43 // the default behavior in the future. |
| 44 virtual void SetUseAppInstalledBubble(bool use_bubble) = 0; | 44 virtual void SetUseAppInstalledBubble(bool use_bubble) = 0; |
| 45 | 45 |
| 46 // Opens apps UI and animates the app icon for the app with id |app_id|. | 46 // Opens apps UI and animates the app icon for the app with id |app_id|. |
| 47 static void OpenAppInstalledUI(Browser* browser, const std::string& app_id); | 47 static void OpenAppInstalledUI(Browser* browser, const std::string& app_id); |
| 48 | 48 |
| 49 // Disables showing UI (ErrorBox, etc.) for install failures. To be used only | 49 // Disables showing UI (ErrorBox, etc.) for install failures. To be used only |
| 50 // in tests. | 50 // in tests. |
| 51 static void DisableFailureUIForTests(); | 51 static void DisableFailureUIForTests(); |
| 52 | 52 |
| 53 Browser* browser() { return browser_; } |
| 54 |
| 53 protected: | 55 protected: |
| 54 ExtensionInstallUI(); | 56 ExtensionInstallUI(); |
| 57 |
| 58 Browser* browser_; |
| 55 }; | 59 }; |
| 56 | 60 |
| 57 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ | 61 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ |
| OLD | NEW |