1 // Copyright 2013 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.infobar; 6 7 import android.content.Context; 8 9 /** 10 * Interface to group the different sub panels of the translate infobar. 11 * TODO(dfalcantara): Absorb this into the InfoBarView class when the TranslateInfoBar is split up. 12 */ 13 public interface TranslateSubPanel { 14 15 /** 16 * Creates a View containing the content of the new subpanel. 17 * @param context Context containing the View's resources. 18 * @param layout InfoBarLayout to insert controls into. 19 */ 20 void createContent(Context context, InfoBarLayout layout); 21 22 void onButtonClicked(boolean primary); 23 24 } 25