Skip to content

Commit 1da3d65

Browse files
jreckAndroid (Google) Code Review
authored andcommitted
Merge "Undeprecate LayoutAlgorithm" into ics-mr1
2 parents fead0e1 + 5a1ef41 commit 1da3d65

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

api/current.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25152,7 +25152,7 @@ package android.webkit {
2515225152
method public synchronized java.lang.String getFixedFontFamily();
2515325153
method public synchronized boolean getJavaScriptCanOpenWindowsAutomatically();
2515425154
method public synchronized boolean getJavaScriptEnabled();
25155-
method public deprecated synchronized android.webkit.WebSettings.LayoutAlgorithm getLayoutAlgorithm();
25155+
method public synchronized android.webkit.WebSettings.LayoutAlgorithm getLayoutAlgorithm();
2515625156
method public boolean getLightTouchEnabled();
2515725157
method public boolean getLoadWithOverviewMode();
2515825158
method public synchronized boolean getLoadsImagesAutomatically();
@@ -25199,7 +25199,7 @@ package android.webkit {
2519925199
method public synchronized void setGeolocationEnabled(boolean);
2520025200
method public synchronized void setJavaScriptCanOpenWindowsAutomatically(boolean);
2520125201
method public synchronized void setJavaScriptEnabled(boolean);
25202-
method public deprecated synchronized void setLayoutAlgorithm(android.webkit.WebSettings.LayoutAlgorithm);
25202+
method public synchronized void setLayoutAlgorithm(android.webkit.WebSettings.LayoutAlgorithm);
2520325203
method public void setLightTouchEnabled(boolean);
2520425204
method public void setLoadWithOverviewMode(boolean);
2520525205
method public synchronized void setLoadsImagesAutomatically(boolean);
@@ -25234,12 +25234,12 @@ package android.webkit {
2523425234
field public static final int LOAD_NO_CACHE = 2; // 0x2
2523525235
}
2523625236

25237-
public static final deprecated class WebSettings.LayoutAlgorithm extends java.lang.Enum {
25237+
public static final class WebSettings.LayoutAlgorithm extends java.lang.Enum {
2523825238
method public static android.webkit.WebSettings.LayoutAlgorithm valueOf(java.lang.String);
2523925239
method public static final android.webkit.WebSettings.LayoutAlgorithm[] values();
2524025240
enum_constant public static final android.webkit.WebSettings.LayoutAlgorithm NARROW_COLUMNS;
2524125241
enum_constant public static final android.webkit.WebSettings.LayoutAlgorithm NORMAL;
25242-
enum_constant public static final android.webkit.WebSettings.LayoutAlgorithm SINGLE_COLUMN;
25242+
enum_constant public static final deprecated android.webkit.WebSettings.LayoutAlgorithm SINGLE_COLUMN;
2524325243
}
2524425244

2524525245
public static final class WebSettings.PluginState extends java.lang.Enum {

core/java/android/webkit/WebSettings.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,14 @@ public class WebSettings {
4242
* SINGLE_COLUMN moves all content into one column that is the width of the
4343
* view.
4444
* NARROW_COLUMNS makes all columns no wider than the screen if possible.
45-
* @deprecated This enum is now obsolete.
4645
*/
4746
// XXX: These must match LayoutAlgorithm in Settings.h in WebCore.
48-
@Deprecated
4947
public enum LayoutAlgorithm {
5048
NORMAL,
49+
/**
50+
* @deprecated This algorithm is now obsolete.
51+
*/
52+
@Deprecated
5153
SINGLE_COLUMN,
5254
NARROW_COLUMNS
5355
}
@@ -936,9 +938,7 @@ public synchronized boolean supportMultipleWindows() {
936938
* WebView.
937939
* @param l A LayoutAlgorithm enum specifying the algorithm to use.
938940
* @see WebSettings.LayoutAlgorithm
939-
* @deprecated This method is now obsolete.
940941
*/
941-
@Deprecated
942942
public synchronized void setLayoutAlgorithm(LayoutAlgorithm l) {
943943
// XXX: This will only be affective if libwebcore was built with
944944
// ANDROID_LAYOUT defined.
@@ -953,9 +953,7 @@ public synchronized void setLayoutAlgorithm(LayoutAlgorithm l) {
953953
* @return LayoutAlgorithm enum value describing the layout algorithm
954954
* being used.
955955
* @see WebSettings.LayoutAlgorithm
956-
* @deprecated This method is now obsolete.
957956
*/
958-
@Deprecated
959957
public synchronized LayoutAlgorithm getLayoutAlgorithm() {
960958
return mLayoutAlgorithm;
961959
}

0 commit comments

Comments
 (0)