Upstream version 11.40.271.0
[platform/framework/web/crosswalk.git] / src / athena / extensions / chrome / athena_extension_install_ui.h
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   ~AthenaExtensionInstallUI() override;
20
21   // ExtensionInstallUI:
22   void OnInstallSuccess(const extensions::Extension* extension,
23                         const SkBitmap* icon) override;
24   void OnInstallFailure(const extensions::CrxInstallerError& error) override;
25   void SetUseAppInstalledBubble(bool use_bubble) override;
26   void OpenAppInstalledUI(const std::string& app_id) override;
27   void SetSkipPostInstallUI(bool skip_ui) override;
28   gfx::NativeWindow GetDefaultInstallDialogParent() override;
29
30  private:
31   // Whether or not to show the default UI after completing the installation.
32   bool skip_post_install_ui_;
33
34   DISALLOW_COPY_AND_ASSIGN(AthenaExtensionInstallUI);
35 };
36
37 }  //  namespace athena
38
39 #endif  // ATHENA_EXTENSIONS_CHROME_ATHENA_EXTENSION_INSTALL_UI_H_