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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/bookmarks/BookmarkUIObserver.java

Issue 2768663002: [Bookmarks] Refactor search view to use SelectableListLayout paradigm (Closed)
Patch Set: Fix spelling error Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser.bookmarks; 5 package org.chromium.chrome.browser.bookmarks;
6 6
7 import org.chromium.chrome.browser.widget.selection.SelectionDelegate.SelectionO bserver; 7 import org.chromium.chrome.browser.widget.selection.SelectionDelegate.SelectionO bserver;
8 import org.chromium.components.bookmarks.BookmarkId; 8 import org.chromium.components.bookmarks.BookmarkId;
9 9
10 /** 10 /**
11 * Observer interface to get notification for UI mode changes, bookmark changes, and other related 11 * Observer interface to get notification for UI mode changes, bookmark changes, and other related
12 * event that affects UI. All bookmark UI components are expected to implement t his and 12 * event that affects UI. All bookmark UI components are expected to implement t his and
13 * update themselves correctly on each event. 13 * update themselves correctly on each event.
14 */ 14 */
15 interface BookmarkUIObserver extends SelectionObserver<BookmarkId> { 15 interface BookmarkUIObserver extends SelectionObserver<BookmarkId> {
16 void onBookmarkDelegateInitialized(BookmarkDelegate delegate); 16 void onBookmarkDelegateInitialized(BookmarkDelegate delegate);
17 17
18 /** 18 /**
19 * Called when the entire UI is being destroyed and will be no longer in use . 19 * Called when the entire UI is being destroyed and will be no longer in use .
20 */ 20 */
21 void onDestroy(); 21 void onDestroy();
22 22
23 /** 23 /**
24 * @see BookmarkDelegate#openFolder(BookmarkId) 24 * @see BookmarkDelegate#openFolder(BookmarkId)
25 */ 25 */
26 void onFolderStateSet(BookmarkId folder); 26 void onFolderStateSet(BookmarkId folder);
27
28 /**
29 * Called when the UI state is set to {@link BookmarkUIState#STATE_SEARCHING }.
30 */
31 void onSearchStateSet();
27 } 32 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698