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

Unified Diff: blimp/client/core/settings/android/java/src/org/chromium/blimp/core/settings/SettingsObserver.java

Issue 2480203002: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Sync CL to position 430550 Created 4 years, 1 month 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: blimp/client/core/settings/android/java/src/org/chromium/blimp/core/settings/SettingsObserver.java
diff --git a/blimp/client/core/settings/android/java/src/org/chromium/blimp/core/settings/SettingsObserver.java b/blimp/client/core/settings/android/java/src/org/chromium/blimp/core/settings/SettingsObserver.java
new file mode 100644
index 0000000000000000000000000000000000000000..69087e37df35d92b53312fefbdc8485c462334d5
--- /dev/null
+++ b/blimp/client/core/settings/android/java/src/org/chromium/blimp/core/settings/SettingsObserver.java
@@ -0,0 +1,34 @@
+// Copyright 2016 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.
+
+package org.chromium.blimp.core.settings;
+
+/**
+ * SettingsObserver is the Java representation of a native SettingsObserver object.
+ *
+ * The SettingsObserver is an observer API implemented by classes which are interested in
+ * various events related to {@link Settings}.
+ */
+public interface SettingsObserver {
+ /**
+ * Invoked when enabling or disabling Blimp mode in the Settings.
+ */
+ void onBlimpModeEnabled(boolean enable);
+
+ /**
+ * Invoked when enabling or disabling to show the network stats in the Settings.
+ */
+ void onShowNetworkStatsChanged(boolean enable);
+
+ /**
+ * Invoked when enabling or disabling to download the whole document in the Settings.
+ */
+ void onRecordWholeDocumentChanged(boolean enable);
+
+ /**
+ * Invoked when a setting changed that requires the application to restart before it can take
+ * effect.
+ */
+ void onRestartRequired();
+}

Powered by Google App Engine
This is Rietveld 408576698