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(); |
+} |