Index: chrome/android/java/src/org/chromium/chrome/browser/infobar/TwoButtonInfoBar.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/infobar/TwoButtonInfoBar.java b/chrome/android/java/src/org/chromium/chrome/browser/infobar/TwoButtonInfoBar.java |
deleted file mode 100644 |
index 0eb4aeff5cdfd79f954cde243e373652b94b433f..0000000000000000000000000000000000000000 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/infobar/TwoButtonInfoBar.java |
+++ /dev/null |
@@ -1,48 +0,0 @@ |
-// Copyright 2013 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-package org.chromium.chrome.browser.infobar; |
- |
-import android.content.Context; |
-import android.widget.Button; |
- |
-import org.chromium.chrome.R; |
- |
-/** |
- * An infobar that presents the user with up to 2 buttons. |
- */ |
-public abstract class TwoButtonInfoBar extends InfoBar { |
- public TwoButtonInfoBar(InfoBarListeners.Dismiss dismissListener, int backgroundType, |
- int iconDrawableId) { |
- super(dismissListener, iconDrawableId); |
- } |
- |
- public TwoButtonInfoBar(InfoBarListeners.Dismiss dismissListener, int iconDrawableId) { |
- super(dismissListener, iconDrawableId); |
- } |
- |
- /** |
- * Creates controls for the current InfoBar. |
- * @param layout InfoBarLayout to find controls in. |
- */ |
- @Override |
- public void createContent(InfoBarLayout layout) { |
- Context context = layout.getContext(); |
- layout.addButtons(getPrimaryButtonText(context), getSecondaryButtonText(context)); |
- } |
- |
- @Override |
- public void setControlsEnabled(boolean state) { |
- super.setControlsEnabled(state); |
- |
- // Handle the buttons. |
- ContentWrapperView wrapper = getContentWrapper(false); |
- if (wrapper != null) { |
- Button primary = (Button) wrapper.findViewById(R.id.button_primary); |
- Button secondary = (Button) wrapper.findViewById(R.id.button_secondary); |
- if (primary != null) primary.setEnabled(state); |
- if (secondary != null) secondary.setEnabled(state); |
- } |
- } |
-} |