OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 package org.chromium.content.browser; | |
6 | |
7 import android.view.View; | |
8 | |
9 /** | |
10 * Interface to add and remove views from the implementing view. | |
11 */ | |
12 public interface ContainerViewDelegate { | |
13 | |
14 /** | |
15 * Add the view. | |
16 * @param view The view to be added. | |
17 */ | |
18 public void addViewToContainerView(View view); | |
19 | |
20 /** | |
21 * Remove the view if it is present, otherwise do nothing. | |
22 * @param view The view to be removed. | |
23 */ | |
24 public void removeViewFromContainerView(View view); | |
25 | |
26 /** | |
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. | |
29 */ | |
30 public int getChildViewOffsetYPix(); | |
31 } | |
OLD | NEW |