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

Unified Diff: ui/file_manager/externs/background/drive_sync_handler.js

Issue 2883263002: Stop foreground depending on background in gyp v2 (Closed)
Patch Set: Format. Created 3 years, 7 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: ui/file_manager/externs/background/drive_sync_handler.js
diff --git a/ui/file_manager/externs/background/drive_sync_handler.js b/ui/file_manager/externs/background/drive_sync_handler.js
new file mode 100644
index 0000000000000000000000000000000000000000..5cf3242cd32a28c58802f8973e4afa120c40c758
--- /dev/null
+++ b/ui/file_manager/externs/background/drive_sync_handler.js
@@ -0,0 +1,30 @@
+// Copyright 2017 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.
+
+/**
+ * Handler of the background page for the drive sync events.
+ * @constructor
+ * @extends {cr.EventTarget}
+ * @struct
+ */
+function DriveSyncHandler() {}
+
+DriveSyncHandler.prototype = /** @struct */ {
+ /**
+ * @return {boolean} Whether the handler is having syncing items or not.
+ */
+ get syncing() {}
+};
+
+/**
+ * Returns whether the drive sync is currently suppressed or not.
+ * @return {boolean}
+ */
+DriveSyncHandler.prototype.isSyncSuppressed = function() {};
+
+/**
+ * Shows the notification saying that the drive sync is disabled on cellular
+ * network.
+ */
+DriveSyncHandler.prototype.showDisabledMobileSyncNotification = function() {};

Powered by Google App Engine
This is Rietveld 408576698