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

Unified Diff: chrome/android/java_staging/src/org/chromium/chrome/browser/enhancedbookmarks/EnhancedBookmarkUIObserver.java

Issue 1141283003: Upstream oodles of Chrome for Android code into Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: final patch? Created 5 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: chrome/android/java_staging/src/org/chromium/chrome/browser/enhancedbookmarks/EnhancedBookmarkUIObserver.java
diff --git a/chrome/android/java_staging/src/org/chromium/chrome/browser/enhancedbookmarks/EnhancedBookmarkUIObserver.java b/chrome/android/java_staging/src/org/chromium/chrome/browser/enhancedbookmarks/EnhancedBookmarkUIObserver.java
new file mode 100644
index 0000000000000000000000000000000000000000..c1ccdd2abe447dd5e09bb93c0255c1425de7af21
--- /dev/null
+++ b/chrome/android/java_staging/src/org/chromium/chrome/browser/enhancedbookmarks/EnhancedBookmarkUIObserver.java
@@ -0,0 +1,51 @@
+// 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.
+
+package org.chromium.chrome.browser.enhancedbookmarks;
+
+import org.chromium.components.bookmarks.BookmarkId;
+
+import java.util.List;
+
+/**
+ * Observer interface to get notification for UI mode changes, bookmark changes, and other related
+ * event that affects UI. All enhanced bookmark UI components are expected to implement this and
+ * update themselves correctly on each event.
+ */
+interface EnhancedBookmarkUIObserver {
+ void onEnhancedBookmarkDelegateInitialized(EnhancedBookmarkDelegate delegate);
+
+ /**
+ * Called when the entire UI is being destroyed and will be no longer in use.
+ */
+ void onDestroy();
+
+ /**
+ * @see EnhancedBookmarkDelegate#openAllBookmarks()
+ */
+ void onAllBookmarksStateSet();
+
+ /**
+ * @see EnhancedBookmarkDelegate#openFolder(BookmarkId)
+ */
+ void onFolderStateSet(BookmarkId folder);
+
+ /**
+ * @see EnhancedBookmarkDelegate#openFilter(String)
+ */
+ void onFilterStateSet(String filter);
+
+ /**
+ * Please refer to
+ * {@link EnhancedBookmarkDelegate#toggleSelectionForBookmark(BookmarkId)},
+ * {@link EnhancedBookmarkDelegate#clearSelection()} and
+ * {@link EnhancedBookmarkDelegate#getSelectedBookmarks()}
+ */
+ void onSelectionStateChange(List<BookmarkId> selectedBookmarks);
+
+ /**
+ * @see EnhancedBookmarkDelegate#setListModeEnabled(boolean)
+ */
+ void onListModeChange(boolean isListModeEnabled);
+}

Powered by Google App Engine
This is Rietveld 408576698