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

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

Issue 1403813003: [Contextual Search] Fixes ContentView regressions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add TODO as per offline chat with mdjones@ 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/OverlayPanelContentFactory.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/OverlayPanelContentFactory.java b/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/OverlayPanelContentFactory.java
new file mode 100644
index 0000000000000000000000000000000000000000..52bf1c149259f42440dbd13d211914f5f69bc92b
--- /dev/null
+++ b/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/OverlayPanelContentFactory.java
@@ -0,0 +1,18 @@
+// 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.compositor.bottombar.OverlayPanelContent;
+
+/**
+ * Interface used to generalize the creation of the OverlayPanelContent. This is so test cases
+ * are able to offer a custom version of the OverlayPanelContent to be used in the tests.
+ */
+public interface OverlayPanelContentFactory {
+ /**
+ * Create a new OverlayPanelContent object. This can be overridden for tests.
+ */
+ OverlayPanelContent createNewOverlayPanelContent();
+}

Powered by Google App Engine
This is Rietveld 408576698