| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.chrome.browser.omnibox; | 5 package org.chromium.chrome.browser.omnibox; |
| 6 | 6 |
| 7 import android.app.Activity; | 7 import android.app.Activity; |
| 8 import android.view.View; | 8 import android.view.View; |
| 9 import android.view.ViewGroup; | 9 import android.view.ViewGroup; |
| 10 import android.view.Window; | 10 import android.view.Window; |
| 11 | 11 |
| 12 import org.chromium.chrome.browser.WindowDelegate; | 12 import org.chromium.chrome.browser.WindowDelegate; |
| 13 import org.chromium.chrome.browser.appmenu.AppMenuButtonHelper; | 13 import org.chromium.chrome.browser.appmenu.AppMenuButtonHelper; |
| 14 import org.chromium.chrome.browser.ntp.NewTabPage; | 14 import org.chromium.chrome.browser.ntp.NewTabPage; |
| 15 import org.chromium.chrome.browser.omnibox.UrlBar.UrlBarDelegate; | 15 import org.chromium.chrome.browser.omnibox.UrlBar.UrlBarDelegate; |
| 16 import org.chromium.chrome.browser.profiles.Profile; | 16 import org.chromium.chrome.browser.profiles.Profile; |
| 17 import org.chromium.chrome.browser.tab.Tab; | 17 import org.chromium.chrome.browser.tab.Tab; |
| 18 import org.chromium.chrome.browser.toolbar.Toolbar; | 18 import org.chromium.chrome.browser.toolbar.Toolbar; |
| 19 import org.chromium.chrome.browser.toolbar.ToolbarActionModeCallback; | 19 import org.chromium.chrome.browser.toolbar.ToolbarActionModeCallback; |
| 20 import org.chromium.chrome.browser.toolbar.ToolbarDataProvider; | 20 import org.chromium.chrome.browser.toolbar.ToolbarDataProvider; |
| 21 import org.chromium.chrome.browser.widget.BottomSheet; |
| 21 import org.chromium.ui.base.WindowAndroid; | 22 import org.chromium.ui.base.WindowAndroid; |
| 22 | 23 |
| 23 /** | 24 /** |
| 24 * Container that holds the {@link UrlBar} and SSL state related with the curren
t {@link Tab}. | 25 * Container that holds the {@link UrlBar} and SSL state related with the curren
t {@link Tab}. |
| 25 */ | 26 */ |
| 26 public interface LocationBar extends UrlBarDelegate { | 27 public interface LocationBar extends UrlBarDelegate { |
| 27 | 28 |
| 28 /** | 29 /** |
| 29 * Handles native dependent initialization for this class. | 30 * Handles native dependent initialization for this class. |
| 30 */ | 31 */ |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 * @param updateUrl Whether to update the URL as a result of the this call. | 72 * @param updateUrl Whether to update the URL as a result of the this call. |
| 72 */ | 73 */ |
| 73 void updateLoadingState(boolean updateUrl); | 74 void updateLoadingState(boolean updateUrl); |
| 74 | 75 |
| 75 /** | 76 /** |
| 76 * Sets the {@link ToolbarDataProvider} to be used for accessing {@link Tool
bar} state. | 77 * Sets the {@link ToolbarDataProvider} to be used for accessing {@link Tool
bar} state. |
| 77 */ | 78 */ |
| 78 void setToolbarDataProvider(ToolbarDataProvider model); | 79 void setToolbarDataProvider(ToolbarDataProvider model); |
| 79 | 80 |
| 80 /** | 81 /** |
| 82 * Set the bottom sheet for Chrome Home. |
| 83 * @param sheet The bottom sheet for Chrome Home if it exists. |
| 84 */ |
| 85 void setBottomSheet(BottomSheet sheet); |
| 86 |
| 87 /** |
| 81 * Sets the menu helper that should be used if there is a menu button in {@l
ink LocationBar}. | 88 * Sets the menu helper that should be used if there is a menu button in {@l
ink LocationBar}. |
| 82 * @param helper The helper to be used. | 89 * @param helper The helper to be used. |
| 83 */ | 90 */ |
| 84 void setMenuButtonHelper(AppMenuButtonHelper helper); | 91 void setMenuButtonHelper(AppMenuButtonHelper helper); |
| 85 | 92 |
| 86 /** | 93 /** |
| 87 * @return The anchor view that should be used for the app menu. Null if the
re is no menu in | 94 * @return The anchor view that should be used for the app menu. Null if the
re is no menu in |
| 88 * {@link LocationBar} for the current configuration. | 95 * {@link LocationBar} for the current configuration. |
| 89 */ | 96 */ |
| 90 View getMenuAnchor(); | 97 View getMenuAnchor(); |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 */ | 165 */ |
| 159 void hideSuggestions(); | 166 void hideSuggestions(); |
| 160 | 167 |
| 161 /** | 168 /** |
| 162 * Sets the callback to be used by default for text editing action bar. | 169 * Sets the callback to be used by default for text editing action bar. |
| 163 * @param callback The callback to use. | 170 * @param callback The callback to use. |
| 164 */ | 171 */ |
| 165 void setDefaultTextEditActionModeCallback(ToolbarActionModeCallback callback
); | 172 void setDefaultTextEditActionModeCallback(ToolbarActionModeCallback callback
); |
| 166 | 173 |
| 167 } | 174 } |
| OLD | NEW |