OLD | NEW |
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 } |
OLD | NEW |