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.webapps; |
| 6 |
| 7 import android.content.Context; |
| 8 import android.util.AttributeSet; |
| 9 |
| 10 import org.chromium.chrome.browser.compositor.layouts.eventfilter.EdgeSwipeHandl
er; |
| 11 import org.chromium.chrome.browser.widget.ControlContainer; |
| 12 import org.chromium.chrome.browser.widget.ViewResourceFrameLayout; |
| 13 import org.chromium.ui.resources.dynamics.ViewResourceAdapter; |
| 14 |
| 15 /** |
| 16 * The control container used by WebApps. |
| 17 */ |
| 18 public class WebappControlContainer extends ViewResourceFrameLayout |
| 19 implements ControlContainer { |
| 20 |
| 21 /** Constructor for inflating from XML. */ |
| 22 public WebappControlContainer(Context context, AttributeSet attrs) { |
| 23 super(context, attrs); |
| 24 } |
| 25 |
| 26 @Override |
| 27 public ViewResourceAdapter getToolbarResourceAdapter() { |
| 28 return getResourceAdapter(); |
| 29 } |
| 30 |
| 31 @Override |
| 32 public ViewResourceAdapter getProgressResourceAdapter() { |
| 33 return null; |
| 34 } |
| 35 |
| 36 @Override |
| 37 public void setSwipeHandler(EdgeSwipeHandler handler) { |
| 38 } |
| 39 } |
OLD | NEW |