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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanelFeatures.java

Issue 1372963005: Separate ContextualSearchPanel from OverlayPanel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rebase-extract-management-delegate
Patch Set: fix redundant null check Created 5 years, 2 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/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanelFeatures.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanelFeatures.java b/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanelFeatures.java
deleted file mode 100644
index e09a99d5068dd132e2189806da948c396979e8f5..0000000000000000000000000000000000000000
--- a/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanelFeatures.java
+++ /dev/null
@@ -1,36 +0,0 @@
-// 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.compositor.bottombar.contextualsearch;
-
-import org.chromium.chrome.browser.customtabs.CustomTab;
-
-/**
- * A utility class meant to determine whether certain features are available in the Search Panel.
- */
-public class ContextualSearchPanelFeatures {
- private boolean mIsCustomTab;
-
- /**
- * @param isCustomTab Whether the current activity contains a {@link CustomTab}.
- */
- public ContextualSearchPanelFeatures(boolean isCustomTab) {
- mIsCustomTab = isCustomTab;
- }
-
- /**
- * @return {@code true} Whether search term refining is available.
- */
- public boolean isSearchTermRefiningAvailable() {
- return !mIsCustomTab;
- }
-
- /**
- * @return {@code true} Whether the close animation should run when the the panel is closed
- * due the panel being promoted to a tab.
- */
- public boolean shouldAnimatePanelCloseOnPromoteToTab() {
- return mIsCustomTab;
- }
-}

Powered by Google App Engine
This is Rietveld 408576698