Merge fx-team to m-c

This commit is contained in:
Wes Kocher 2014-01-13 20:49:18 -08:00
commit be1fd46653
4 changed files with 56 additions and 1 deletions

View File

@ -379,3 +379,41 @@ a {
border-color: #ccc;
}
@media (max-width: 500px) {
.message > .timestamp {
display: none;
}
.toolbarbutton-text {
display: none;
}
.hud-console-filter-toolbar .webconsole-filter-button {
min-width: 40px;
}
.hud-console-filter-toolbar .webconsole-clear-console-button {
min-width: 25px;
}
.webconsole-filter-button > .toolbarbutton-menubutton-button:before {
width: 16px;
height: 16px;
margin-left: 1px;
}
.toolbarbutton-menubutton-dropmarker {
margin: 0px;
}
}
@media (max-width: 300px) {
.hud-console-filter-toolbar {
-moz-box-orient: vertical;
}
.toolbarbutton-text {
display: -moz-box;
}
.devtools-toolbarbutton {
margin-top: 3px;
}
.hud-console-filter-toolbar .hud-filter-box,
.hud-console-filter-toolbar .devtools-toolbarbutton {
margin-top: 5px;
}
}

View File

@ -121,6 +121,7 @@ abstract public class BrowserApp extends GeckoApp
private View mHomePagerContainer;
protected Telemetry.Timer mAboutHomeStartupTimer = null;
private ActionModeCompat mActionMode;
private boolean mShowActionModeEndAnimation = false;
private static final int GECKO_TOOLS_MENU = -1;
private static final int ADDON_MENU_OFFSET = 1000;
@ -2556,6 +2557,7 @@ abstract public class BrowserApp extends GeckoApp
if (isDynamicToolbarEnabled() && !margins.areMarginsShown()) {
margins.setMaxMargins(0, mViewFlipper.getHeight(), 0, 0);
margins.showMargins(false);
mShowActionModeEndAnimation = true;
} else {
// Otherwise, we animate the actionbar itself
mActionBar.animateIn();
@ -2582,7 +2584,16 @@ abstract public class BrowserApp extends GeckoApp
mActionMode.finish();
mActionMode = null;
mLayerView.getLayerMarginsAnimator().setMarginsPinned(false);
final LayerMarginsAnimator margins = mLayerView.getLayerMarginsAnimator();
margins.setMarginsPinned(false);
mViewFlipper.showPrevious();
// Only slide the urlbar out if it was hidden when the action mode started
// Don't animate hiding it so that there's no flash as we switch back to url mode
if (mShowActionModeEndAnimation) {
margins.hideMargins(true);
mShowActionModeEndAnimation = false;
}
}
}

View File

@ -5,6 +5,8 @@
package org.mozilla.gecko;
import org.mozilla.gecko.mozglue.JNITarget;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
@ -352,10 +354,13 @@ public class GeckoNetworkManager extends BroadcastReceiver {
return -1;
}
/* These are called from javascript c-types. Avoid letting pro-guard delete them */
@JNITarget
public static int getMCC() {
return getNetworkOperator(InfoType.MCC);
}
@JNITarget
public static int getMNC() {
return getNetworkOperator(InfoType.MNC);
}

View File

@ -334,6 +334,7 @@ body {
padding: 0;
list-style: none;
background-color: #ced7de;
-moz-user-select: none;
}
.toolbar-hidden {