OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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.content.browser; | 5 package org.chromium.ui; |
6 | 6 |
7 import android.view.View; | 7 import android.view.View; |
8 | 8 |
9 /** | 9 /** |
10 * Interface to add and remove views from the implementing view. | 10 * Interface to add and remove views from the implementing view. |
11 */ | 11 */ |
12 public interface ContainerViewDelegate { | 12 public interface ViewAndroidDelegate { |
13 | 13 |
14 /** | 14 /** |
15 * Add the view. | 15 * Add the view. |
16 * @param view The view to be added. | 16 * @param view The view to be added. |
17 */ | 17 */ |
18 public void addViewToContainerView(View view); | 18 void addViewToContainerView(View view); |
19 | 19 |
20 /** | 20 /** |
21 * Remove the view if it is present, otherwise do nothing. | 21 * Remove the view if it is present, otherwise do nothing. |
22 * @param view The view to be removed. | 22 * @param view The view to be removed. |
23 */ | 23 */ |
24 public void removeViewFromContainerView(View view); | 24 void removeViewFromContainerView(View view); |
25 | 25 |
26 /** | 26 /** |
27 * Used for any calculations that need to place a View near a particular pie
ce of web content. | 27 * Used for any calculations that need to place a View near a particular pie
ce of web content. |
28 * @return The Y offset in pixels to apply to any added views. | 28 * @return The Y offset in pixels to apply to any added views. |
29 */ | 29 */ |
30 public int getChildViewOffsetYPix(); | 30 int getChildViewOffsetYPix(); |
31 } | 31 } |
OLD | NEW |