Bug 1106935 - Part 5: Rename BrowserToolbarNewTablet -> BrowserToolbarTablet.

--HG--
rename : mobile/android/base/toolbar/BrowserToolbarNewTablet.java => mobile/android/base/toolbar/BrowserToolbarTablet.java
extra : rebase_source : 20cda66a6b901a556283f9627b5156c66ab0a3ac
This commit is contained in:
Michael Comella 2015-01-29 16:30:46 -08:00
Родитель 50884bb828
Коммит fddc2fcd28
3 изменённых файлов: 5 добавлений и 7 удалений

Просмотреть файл

@ -440,10 +440,10 @@ gbjar.sources += [
'toolbar/AutocompleteHandler.java', 'toolbar/AutocompleteHandler.java',
'toolbar/BackButton.java', 'toolbar/BackButton.java',
'toolbar/BrowserToolbar.java', 'toolbar/BrowserToolbar.java',
'toolbar/BrowserToolbarNewTablet.java',
'toolbar/BrowserToolbarPhone.java', 'toolbar/BrowserToolbarPhone.java',
'toolbar/BrowserToolbarPhoneBase.java', 'toolbar/BrowserToolbarPhoneBase.java',
'toolbar/BrowserToolbarPreHC.java', 'toolbar/BrowserToolbarPreHC.java',
'toolbar/BrowserToolbarTablet.java',
'toolbar/BrowserToolbarTabletBase.java', 'toolbar/BrowserToolbarTabletBase.java',
'toolbar/CanvasDelegate.java', 'toolbar/CanvasDelegate.java',
'toolbar/ForwardButton.java', 'toolbar/ForwardButton.java',

Просмотреть файл

@ -12,7 +12,6 @@ import java.util.List;
import org.mozilla.gecko.AppConstants.Versions; import org.mozilla.gecko.AppConstants.Versions;
import org.mozilla.gecko.BrowserApp; import org.mozilla.gecko.BrowserApp;
import org.mozilla.gecko.GeckoAppShell; import org.mozilla.gecko.GeckoAppShell;
import org.mozilla.gecko.NewTabletUI;
import org.mozilla.gecko.R; import org.mozilla.gecko.R;
import org.mozilla.gecko.Tab; import org.mozilla.gecko.Tab;
import org.mozilla.gecko.Tabs; import org.mozilla.gecko.Tabs;
@ -158,7 +157,7 @@ public abstract class BrowserToolbar extends ThemedRelativeLayout
public static BrowserToolbar create(final Context context, final AttributeSet attrs) { public static BrowserToolbar create(final Context context, final AttributeSet attrs) {
final BrowserToolbar toolbar; final BrowserToolbar toolbar;
if (HardwareUtils.isTablet()) { if (HardwareUtils.isTablet()) {
toolbar = new BrowserToolbarNewTablet(context, attrs); toolbar = new BrowserToolbarTablet(context, attrs);
} else if (Versions.preHC) { } else if (Versions.preHC) {
toolbar = new BrowserToolbarPreHC(context, attrs); toolbar = new BrowserToolbarPreHC(context, attrs);
} else { } else {

Просмотреть файл

@ -15,10 +15,9 @@ import android.graphics.drawable.Drawable;
import android.util.AttributeSet; import android.util.AttributeSet;
/** /**
* A toolbar implementation for the tablet redesign (bug 1014156). * The toolbar implementation for tablet.
* Expected to replace BrowserToolbarTablet once complete.
*/ */
class BrowserToolbarNewTablet extends BrowserToolbarTabletBase { class BrowserToolbarTablet extends BrowserToolbarTabletBase {
private static final int FORWARD_ANIMATION_DURATION = 450; private static final int FORWARD_ANIMATION_DURATION = 450;
@ -34,7 +33,7 @@ class BrowserToolbarNewTablet extends BrowserToolbarTabletBase {
private boolean backButtonWasEnabledOnStartEditing; private boolean backButtonWasEnabledOnStartEditing;
public BrowserToolbarNewTablet(final Context context, final AttributeSet attrs) { public BrowserToolbarTablet(final Context context, final AttributeSet attrs) {
super(context, attrs); super(context, attrs);
forwardButtonTranslationWidth = forwardButtonTranslationWidth =