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

Unified Diff: components/chrome_apps/webstore_widget/cws_widget/cws_widget_container_platform_delegate.js

Issue 2805853002: Compile suggest_app_dialog in gyp v2 (Closed)
Patch Set: Fix unit test. Created 3 years, 8 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
Index: components/chrome_apps/webstore_widget/cws_widget/cws_widget_container_platform_delegate.js
diff --git a/components/chrome_apps/webstore_widget/cws_widget/cws_widget_container_platform_delegate.js b/components/chrome_apps/webstore_widget/cws_widget/cws_widget_container_platform_delegate.js
new file mode 100644
index 0000000000000000000000000000000000000000..d5bb6cde1f561e3f3ef39066e74491e9b2ef5c9c
--- /dev/null
+++ b/components/chrome_apps/webstore_widget/cws_widget/cws_widget_container_platform_delegate.js
@@ -0,0 +1,39 @@
+// Copyright 2015 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.
+
+/**
+ * Strings required by the widget container.
+ * @typedef {{
+ * UI_LOCALE: string,
+ * LINK_TO_WEBSTORE: string,
+ * INSTALLATION_FAILED_MESSAGE: string,
+ * LOADING_SPINNER_ALT: string,
+ * INSTALLING_SPINNER_ALT: string
+ * }}
+ */
+var CWSWidgetContainerStrings;
+
+/**
+ * Functions for reporting metrics for the widget.
+ * @typedef {{
+ * recordEnum: function(string, number, number),
+ * recordUserAction: function(string),
+ * startInterval: function(string),
+ * recordInterval: function(string)
+ * }}
+ */
+var CWSWidgetContainerMetricsImpl;
+
+/**
+ * Type for delegate used by CWSWidgetContainer component to access Chrome
+ * platform APIs.
+ * @typedef {{
+ * strings: !CWSWidgetContainerStrings,
+ * metricsImpl: !CWSWidgetContainerMetricsImpl,
+ * installWebstoreItem: function(string, function(?string)),
+ * getInstalledItems: function(function(?Array<!string>)),
+ * requestWebstoreAccessToken: function(function(?string))
+ * }}
+ */
+var CWSWidgetContainerPlatformDelegate;

Powered by Google App Engine
This is Rietveld 408576698