Backed out changeset e32341309d70 (bug 1992075) for landing with the wrong bug number

--HG--
extra : amend_source : be5b170b5b8030a856b2873846bc6f0c447f93f3
This commit is contained in:
Wes Kocher 2015-08-20 13:50:27 -07:00
Родитель ec8d23fdb0
Коммит a7cefecb3e
6 изменённых файлов: 15 добавлений и 15 удалений

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

@ -76,7 +76,7 @@ struct EventRadiusPrefs
bool mRegistered;
bool mTouchOnly;
bool mRepositionEventCoords;
bool mTouchClusterDetectionEnabled;
bool mTouchClusterDetectionDisabled;
uint32_t mLimitReadableSize;
};
@ -125,8 +125,8 @@ GetPrefsFor(EventClassID aEventClassID)
nsPrintfCString repositionPref("ui.%s.radius.reposition", prefBranch);
Preferences::AddBoolVarCache(&prefs->mRepositionEventCoords, repositionPref.get(), false);
nsPrintfCString touchClusterPref("ui.zoomedview.enabled", prefBranch);
Preferences::AddBoolVarCache(&prefs->mTouchClusterDetectionEnabled, touchClusterPref.get(), false);
nsPrintfCString touchClusterPref("ui.zoomedview.disabled", prefBranch);
Preferences::AddBoolVarCache(&prefs->mTouchClusterDetectionDisabled, touchClusterPref.get(), true);
nsPrintfCString limitReadableSizePref("ui.zoomedview.limitReadableSize", prefBranch);
Preferences::AddUintVarCache(&prefs->mLimitReadableSize, limitReadableSizePref.get(), 8);
@ -451,7 +451,7 @@ GetClosest(nsIFrame* aRoot, const nsPoint& aPointRelativeToRootFrame,
static bool
IsElementClickableAndReadable(nsIFrame* aFrame, WidgetGUIEvent* aEvent, const EventRadiusPrefs* aPrefs)
{
if (!aPrefs->mTouchClusterDetectionEnabled) {
if (aPrefs->mTouchClusterDetectionDisabled) {
return true;
}
@ -578,7 +578,7 @@ FindFrameTargetedByInputEvent(WidgetGUIEvent* aEvent,
restrictToDescendants, clickableAncestor, candidates,
&elementsInCluster);
if (closestClickable) {
if ((prefs->mTouchClusterDetectionEnabled && elementsInCluster > 1) ||
if ((!prefs->mTouchClusterDetectionDisabled && elementsInCluster > 1) ||
(!IsElementClickableAndReadable(closestClickable, aEvent, prefs))) {
if (aEvent->mClass == eMouseEventClass) {
WidgetMouseEventBase* mouseEventBase = aEvent->AsMouseEventBase();

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

@ -414,7 +414,7 @@ pref("font.size.inflation.minTwips", 0);
// When true, zooming will be enabled on all sites, even ones that declare user-scalable=no.
pref("browser.ui.zoom.force-user-scalable", false);
pref("ui.zoomedview.enabled", true);
pref("ui.zoomedview.disabled", false);
pref("ui.zoomedview.limitReadableSize", 8); // value in layer pixels
pref("ui.zoomedview.defaultZoomFactor", 2);
pref("ui.zoomedview.simplified", true); // Do not display all the zoomed view controls

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

@ -415,8 +415,8 @@ size. -->
<!-- Localization note (pref_prevent_magnifying_glass): Label for setting that controls
whether or not the magnifying glass is disabled. -->
<!ENTITY pref_magnifying_glass_enabled "Magnify small areas">
<!ENTITY pref_magnifying_glass_enabled_summary "Enlarge links and form fields when tapping near them">
<!ENTITY pref_prevent_magnifying_glass "Disable magnifying glass ">
<!ENTITY pref_prevent_magnifying_glass_summary "Prevent magnifying glass for use in resolving ambiguous screen touches">
<!-- Localization note (pref_scroll_title_bar2): Label for setting that controls
whether or not the dynamic toolbar is enabled. -->

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

@ -117,7 +117,7 @@ OnSharedPreferenceChangeListener
private static final String PREFS_CRASHREPORTER_ENABLED = "datareporting.crashreporter.submitEnabled";
private static final String PREFS_MENU_CHAR_ENCODING = "browser.menu.showCharacterEncoding";
private static final String PREFS_MP_ENABLED = "privacy.masterpassword.enabled";
private static final String PREFS_ZOOMED_VIEW_ENABLED = "ui.zoomedview.enabled";
private static final String PREFS_DISABLE_ZOOMED_VIEW = "ui.zoomedview.disabled";
private static final String PREFS_UPDATER_AUTODOWNLOAD = "app.update.autodownload";
private static final String PREFS_UPDATER_URL = "app.update.url.android";
private static final String PREFS_GEO_REPORTING = NON_PREF_PREFIX + "app.geo.reportdata";
@ -735,7 +735,7 @@ OnSharedPreferenceChangeListener
i--;
continue;
}
} else if (PREFS_ZOOMED_VIEW_ENABLED.equals(key)) {
} else if (PREFS_DISABLE_ZOOMED_VIEW.equals(key)) {
// Only enable the ZoomedView / magnifying pref on Nightly.
if (!AppConstants.NIGHTLY_BUILD) {
preferences.removePreference(pref);

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

@ -33,9 +33,9 @@
android:title="@string/pref_zoom_force_enabled"
android:summary="@string/pref_zoom_force_enabled_summary" />
<CheckBoxPreference android:key="ui.zoomedview.enabled"
android:title="@string/pref_magnifying_glass_enabled"
android:summary="@string/pref_magnifying_glass_enabled_summary" />
<CheckBoxPreference android:key="ui.zoomedview.disabled"
android:title="@string/pref_prevent_magnifying_glass"
android:summary="@string/pref_prevent_magnifying_glass_summary" />
<PreferenceCategory android:title="@string/pref_category_input_options"
android:key="@string/pref_category_input_options">

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

@ -379,8 +379,8 @@
<string name="pref_titlebar_mode_title">&pref_titlebar_mode_title;</string>
<string name="pref_titlebar_mode_url">&pref_titlebar_mode_url;</string>
<string name="pref_magnifying_glass_enabled">&pref_magnifying_glass_enabled;</string>
<string name="pref_magnifying_glass_enabled_summary">&pref_magnifying_glass_enabled_summary;</string>
<string name="pref_prevent_magnifying_glass">&pref_prevent_magnifying_glass;</string>
<string name="pref_prevent_magnifying_glass_summary">&pref_prevent_magnifying_glass_summary;</string>
<string name="pref_scroll_title_bar2">&pref_scroll_title_bar2;</string>
<string name="pref_scroll_title_bar_summary">&pref_scroll_title_bar_summary;</string>