OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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 ATHENA_EXTENSIONS_CHROME_ATHENA_EXTENSION_INSTALL_UI_H_ |
| 6 #define ATHENA_EXTENSIONS_CHROME_ATHENA_EXTENSION_INSTALL_UI_H_ |
| 7 |
| 8 #include "extensions/browser/install/extension_install_ui.h" |
| 9 |
| 10 namespace content { |
| 11 class BrowserContext; |
| 12 } |
| 13 |
| 14 namespace athena { |
| 15 |
| 16 class AthenaExtensionInstallUI : public extensions::ExtensionInstallUI { |
| 17 public: |
| 18 AthenaExtensionInstallUI(); |
| 19 virtual ~AthenaExtensionInstallUI(); |
| 20 |
| 21 // ExtensionInstallUI: |
| 22 virtual void OnInstallSuccess(const extensions::Extension* extension, |
| 23 const SkBitmap* icon) override; |
| 24 virtual void OnInstallFailure( |
| 25 const extensions::CrxInstallerError& error) override; |
| 26 virtual void SetUseAppInstalledBubble(bool use_bubble) override; |
| 27 virtual void OpenAppInstalledUI(const std::string& app_id) override; |
| 28 virtual void SetSkipPostInstallUI(bool skip_ui) override; |
| 29 virtual gfx::NativeWindow GetDefaultInstallDialogParent() override; |
| 30 |
| 31 private: |
| 32 // Whether or not to show the default UI after completing the installation. |
| 33 bool skip_post_install_ui_; |
| 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(AthenaExtensionInstallUI); |
| 36 }; |
| 37 |
| 38 } // namespace athena |
| 39 |
| 40 #endif // ATHENA_EXTENSIONS_CHROME_ATHENA_EXTENSION_INSTALL_UI_H_ |
OLD | NEW |