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

Unified Diff: chrome/android/java_staging/src/org/chromium/chrome/browser/toolbar/ToolbarDataProvider.java

Issue 1206673003: Merge java_staging/src into java/src. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 6 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_staging/src/org/chromium/chrome/browser/toolbar/ToolbarDataProvider.java
diff --git a/chrome/android/java_staging/src/org/chromium/chrome/browser/toolbar/ToolbarDataProvider.java b/chrome/android/java_staging/src/org/chromium/chrome/browser/toolbar/ToolbarDataProvider.java
deleted file mode 100644
index 9239a6c152d8769054d1a7ed327573b8576bc3dc..0000000000000000000000000000000000000000
--- a/chrome/android/java_staging/src/org/chromium/chrome/browser/toolbar/ToolbarDataProvider.java
+++ /dev/null
@@ -1,61 +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.toolbar;
-
-import org.chromium.base.VisibleForTesting;
-import org.chromium.chrome.browser.Tab;
-import org.chromium.chrome.browser.ntp.NewTabPage;
-
-/**
- * Defines the data that is exposed to properly render the Toolbar.
- */
-public interface ToolbarDataProvider {
- /**
- * @return The tab that contains the information currently displayed in the toolbar.
- */
- Tab getTab();
-
- /**
- * @return The NewTabPage shown for the current Tab or null if one is not being shown.
- */
- NewTabPage getNewTabPageForCurrentTab();
-
- /**
- * @return Whether the toolbar is currently being displayed for incognito.
- */
- boolean isIncognito();
-
- /**
- * @return The load progress for the current tab (0 being no load progress, 100 being
- * fully loaded).
- */
- @VisibleForTesting
- int getLoadProgress();
-
- /**
- * @return The chip text from the search URL.
- */
- String getCorpusChipText();
-
- /**
- * @return The formatted text (URL or search terms) for display.
- */
- String getText();
-
- /**
- * @return Whether the text to display is a search query replacing the URL.
- */
- boolean wouldReplaceURL();
-
- /**
- * @return The primary color to use for the background drawable.
- */
- int getPrimaryColor();
-
- /**
- * @return Whether the current primary color is a brand color.
- */
- boolean isUsingBrandColor();
-}

Powered by Google App Engine
This is Rietveld 408576698