diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-08-24 02:28:23 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-08-24 02:28:23 -0700 |
commit | 25131299aaa1b8c4f44edb33f71f0241a61939e4 (patch) | |
tree | 6239e2741e4fb81c1e04d88b1535e0c0d938507e /tests/DumpRenderTree/src/com/android/dumprendertree/CallbackProxy.java | |
parent | 84235ee923c13e58ce339c25c86f734b338a81e0 (diff) | |
parent | dad347c8b83aeb49eafae68774b7bfb59c956977 (diff) | |
download | frameworks_base-25131299aaa1b8c4f44edb33f71f0241a61939e4.zip frameworks_base-25131299aaa1b8c4f44edb33f71f0241a61939e4.tar.gz frameworks_base-25131299aaa1b8c4f44edb33f71f0241a61939e4.tar.bz2 |
Merge change 21978 into eclair
* changes:
Adds the ability to set Geolocation permissions from DumpRenderTree on Android.
Diffstat (limited to 'tests/DumpRenderTree/src/com/android/dumprendertree/CallbackProxy.java')
-rw-r--r-- | tests/DumpRenderTree/src/com/android/dumprendertree/CallbackProxy.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/DumpRenderTree/src/com/android/dumprendertree/CallbackProxy.java b/tests/DumpRenderTree/src/com/android/dumprendertree/CallbackProxy.java index b61b307..f33b01d 100644 --- a/tests/DumpRenderTree/src/com/android/dumprendertree/CallbackProxy.java +++ b/tests/DumpRenderTree/src/com/android/dumprendertree/CallbackProxy.java @@ -61,6 +61,7 @@ public class CallbackProxy extends Handler implements EventSender, LayoutTestCon private static final int LAYOUT_WAIT_UNTIL_DONE = 40; private static final int LAYOUT_DUMP_DATABASE_CALLBACKS = 41; private static final int LAYOUT_SET_CAN_OPEN_WINDOWS = 42; + private static final int SET_GEOLOCATION_PERMISSION = 43; CallbackProxy(EventSender eventSender, LayoutTestController layoutTestController) { @@ -202,6 +203,11 @@ public class CallbackProxy extends Handler implements EventSender, LayoutTestCon case LAYOUT_SET_CAN_OPEN_WINDOWS: mLayoutTestController.setCanOpenWindows(); break; + + case SET_GEOLOCATION_PERMISSION: + mLayoutTestController.setGeolocationPermission( + msg.arg1 == 1 ? true : false); + break; } } @@ -364,4 +370,8 @@ public class CallbackProxy extends Handler implements EventSender, LayoutTestCon public void setMockGeolocationError(int code, String message) { MockGeolocation.getInstance().setError(code, message); } + + public void setGeolocationPermission(boolean allow) { + obtainMessage(SET_GEOLOCATION_PERMISSION, allow ? 1 : 0, 0).sendToTarget(); + } } |