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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchContentController.java

Issue 1304013002: Move functionality for ContentViewCore to ContextualSearchPanel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@simple-move-cvc-to-panel
Patch Set: Created 5 years, 3 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/contextualsearch/ContextualSearchContentController.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchContentController.java b/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchContentController.java
new file mode 100644
index 0000000000000000000000000000000000000000..dbd00873b38bd3f3044df5bebc35d7a1ffdab3fe
--- /dev/null
+++ b/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchContentController.java
@@ -0,0 +1,34 @@
+// 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.contextualsearch;
+
+
+/**
+ * An interface loading and managing content in the contextual search panel.
+ */
+public interface ContextualSearchContentController {
+
+ /**
+ * Loads a URL in the search content view.
+ * @param url the URL of the page to load.
+ */
+ void loadUrl(String url);
+
+ // --------------------------------------------------------------------------------------------
+ // These need to be stubbed out for testing.
+ // --------------------------------------------------------------------------------------------
+
+ /**
+ * Creates and sets up a new Search Panel's {@code ContentViewCore}. If there's an existing
+ * {@code ContentViewCore} being used, it will be destroyed first. This should be called as
+ * late as possible to avoid unnecessarily consuming memory.
+ */
+ void createNewContentView();
+
+ /**
+ * Destroys the Search Panel's {@code ContentViewCore}.
+ */
+ void destroyContentView();
+}

Powered by Google App Engine
This is Rietveld 408576698