OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 package org.chromium.chrome.browser.widget; |
| 6 |
| 7 import android.view.View; |
| 8 |
| 9 import org.chromium.chrome.browser.compositor.layouts.eventfilter.EdgeSwipeHandl
er; |
| 10 import org.chromium.ui.resources.dynamics.ViewResourceAdapter; |
| 11 |
| 12 /** |
| 13 * Interface that defines the responsibilities of the layout container for the t
op controls. |
| 14 * <p> |
| 15 * Concrete implementations of this class must extend ViewGroup. |
| 16 */ |
| 17 public interface ControlContainer { |
| 18 /** |
| 19 * @return The {@link ViewResourceAdapter} that exposes this {@link View} as
a CC resource. |
| 20 */ |
| 21 ViewResourceAdapter getToolbarResourceAdapter(); |
| 22 |
| 23 /** |
| 24 * @return The {@link ViewResourceAdapter} that exposes the progress widget
as a CC resource |
| 25 * (if applicable). |
| 26 */ |
| 27 ViewResourceAdapter getProgressResourceAdapter(); |
| 28 |
| 29 /** |
| 30 * @param handler The swipe handler to be notified of swipe events on this c
ontainer. |
| 31 */ |
| 32 void setSwipeHandler(EdgeSwipeHandler handler); |
| 33 } |
OLD | NEW |