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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManagementDelegate.java

Issue 1103163004: [Contextual Search] Remove opt-in code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing Donn's comments 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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.contextualsearch; 5 package org.chromium.chrome.browser.contextualsearch;
6 6
7 import org.chromium.chrome.browser.Tab; 7 import org.chromium.chrome.browser.Tab;
8 import org.chromium.chrome.browser.compositor.bottombar.contextualsearch.Context ualSearchPanelDelegate; 8 import org.chromium.chrome.browser.compositor.bottombar.contextualsearch.Context ualSearchPanelDelegate;
9 import org.chromium.content.browser.ContentViewCore; 9 import org.chromium.content.browser.ContentViewCore;
10 import org.chromium.content_public.common.TopControlsState; 10 import org.chromium.content_public.common.TopControlsState;
11 11
12 /** 12 /**
13 * The delegate that provides global management functionality for Contextual Sea rch. 13 * The delegate that provides global management functionality for Contextual Sea rch.
14 */ 14 */
15 public interface ContextualSearchManagementDelegate { 15 public interface ContextualSearchManagementDelegate {
16 /** 16 /**
17 * Sets the preference state to enabled or disabled. 17 * Sets the preference state to enabled or disabled.
18 * 18 *
19 * @param enabled Whether the preference should be set to enabled. 19 * @param enabled Whether the preference should be set to enabled.
20 */ 20 */
21 public void setPreferenceState(boolean enabled); 21 public void setPreferenceState(boolean enabled);
22 22
23 /** 23 /**
24 * TODO(pedrosimonetti): rename to isPromoAvailable (requires upstream and d ownstream changes).
24 * @return Whether the Opt-out promo is available to be be shown in the pane l. 25 * @return Whether the Opt-out promo is available to be be shown in the pane l.
25 */ 26 */
26 boolean isOptOutPromoAvailable(); 27 boolean isOptOutPromoAvailable();
27 28
28 /** 29 /**
29 * Called when the promo Panel gets closed, to log the outcome. 30 * Called when the promo Panel gets closed, to log the outcome.
30 */ 31 */
31 void logPromoOutcome(); 32 void logPromoOutcome();
32 33
33 /** 34 /**
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 * Notifies that the Contextual Search Panel did get closed. 106 * Notifies that the Contextual Search Panel did get closed.
106 */ 107 */
107 void onCloseContextualSearch(); 108 void onCloseContextualSearch();
108 109
109 /** 110 /**
110 * Gets the {@code ContentViewCore} associated with Contextual Search Panel. 111 * Gets the {@code ContentViewCore} associated with Contextual Search Panel.
111 * @return Contextual Search Panel's {@code ContentViewCore}. 112 * @return Contextual Search Panel's {@code ContentViewCore}.
112 */ 113 */
113 ContentViewCore getSearchContentViewCore(); 114 ContentViewCore getSearchContentViewCore();
114 } 115 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698