Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1740)

Unified Diff: athena/extensions/chrome/athena_extension_install_ui.h

Issue 634313004: Display dialog when app install succeeds / fails on Athena (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « athena/extensions/chrome/DEPS ('k') | athena/extensions/chrome/athena_extension_install_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/extensions/chrome/athena_extension_install_ui.h
diff --git a/athena/extensions/chrome/athena_extension_install_ui.h b/athena/extensions/chrome/athena_extension_install_ui.h
new file mode 100644
index 0000000000000000000000000000000000000000..9d66c7de036836465be50fdd4977b383a65a29df
--- /dev/null
+++ b/athena/extensions/chrome/athena_extension_install_ui.h
@@ -0,0 +1,40 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ATHENA_EXTENSIONS_CHROME_ATHENA_EXTENSION_INSTALL_UI_H_
+#define ATHENA_EXTENSIONS_CHROME_ATHENA_EXTENSION_INSTALL_UI_H_
+
+#include "extensions/browser/install/extension_install_ui.h"
+
+namespace content {
+class BrowserContext;
+}
+
+namespace athena {
+
+class AthenaExtensionInstallUI : public extensions::ExtensionInstallUI {
+ public:
+ AthenaExtensionInstallUI();
+ virtual ~AthenaExtensionInstallUI();
+
+ // ExtensionInstallUI:
+ virtual void OnInstallSuccess(const extensions::Extension* extension,
+ const SkBitmap* icon) override;
+ virtual void OnInstallFailure(
+ const extensions::CrxInstallerError& error) override;
+ virtual void SetUseAppInstalledBubble(bool use_bubble) override;
+ virtual void OpenAppInstalledUI(const std::string& app_id) override;
+ virtual void SetSkipPostInstallUI(bool skip_ui) override;
+ virtual gfx::NativeWindow GetDefaultInstallDialogParent() override;
+
+ private:
+ // Whether or not to show the default UI after completing the installation.
+ bool skip_post_install_ui_;
+
+ DISALLOW_COPY_AND_ASSIGN(AthenaExtensionInstallUI);
+};
+
+} // namespace athena
+
+#endif // ATHENA_EXTENSIONS_CHROME_ATHENA_EXTENSION_INSTALL_UI_H_
« no previous file with comments | « athena/extensions/chrome/DEPS ('k') | athena/extensions/chrome/athena_extension_install_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698