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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/suggestions/SuggestionsNavigationDelegate.java

Issue 2623993007: 🏠 Extract the ContentSuggestionManager interface from NTP (Closed)
Patch Set: fix destruction of snippets bridge Created 3 years, 11 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package org.chromium.chrome.browser.suggestions;
6
7 import org.chromium.chrome.browser.ntp.snippets.SnippetArticle;
8 import org.chromium.content_public.browser.LoadUrlParams;
9
10 /**
11 * Interface exposing to the suggestion surface methods to navigate to other par ts of the browser.
12 */
13 public interface SuggestionsNavigationDelegate {
14 /** @return Whether context menus should allow the option to open a link in incognito. */
15 boolean isOpenInIncognitoEnabled();
16
17 /** @return Whether context menus should allow the option to open a link in a new window. */
18 boolean isOpenInNewWindowEnabled();
19
20 /** Opens the bookmarks page in the current tab. */
21 void navigateToBookmarks();
22
23 /** Opens the Download Manager UI in the current tab. */
24 void navigateToDownloadManager();
25
26 /** Opens the recent tabs page in the current tab. */
27 void navigateToRecentTabs();
28
29 /**
30 * Handles clicks on the "learn more" link in the footer.
31 */
32 void onLearnMoreClicked();
33
34 /**
35 * Opens a content suggestion and records related metrics.
36 * @param windowOpenDisposition How to open (current tab, new tab, new windo w etc).
37 * @param article The content suggestion to open.
38 */
39 void openSnippet(int windowOpenDisposition, SnippetArticle article);
40
41 /** Opens an url with the desired disposition. */
42 void openUrl(int windowOpenDisposition, LoadUrlParams loadUrlParams);
43 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698