The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2007 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package com.android.dumprendertree; |
| 18 | |
| 19 | public interface LayoutTestController { |
| 20 | |
| 21 | public void dumpAsText(); |
| 22 | public void waitUntilDone(); |
| 23 | public void notifyDone(); |
| 24 | |
| 25 | // Force a redraw of the page |
| 26 | public void display(); |
| 27 | // Used with pixel dumps of content |
| 28 | public void testRepaint(); |
| 29 | |
| 30 | // If the page title changes, add the information to the output. |
| 31 | public void dumpTitleChanges(); |
| 32 | public void dumpBackForwardList(); |
| 33 | public void dumpChildFrameScrollPositions(); |
| 34 | public void dumpEditingCallbacks(); |
| 35 | |
| 36 | // Show/Hide window for window.onBlur() testing |
| 37 | public void setWindowIsKey(boolean b); |
| 38 | // Mac function, used to disable events going to the window |
| 39 | public void setMainFrameIsFirstResponder(boolean b); |
| 40 | |
| 41 | public void dumpSelectionRect(); |
| 42 | |
| 43 | // invalidate and draw one line at a time of the web view. |
| 44 | public void repaintSweepHorizontally(); |
| 45 | |
| 46 | // History testing functions |
| 47 | public void keepWebHistory(); |
| 48 | public void clearBackForwardList(); |
| 49 | // navigate after page load has finished |
| 50 | public void queueBackNavigation(int howfar); |
| 51 | public void queueForwardNavigation(int howfar); |
| 52 | |
| 53 | // Reload when the page load has finished |
| 54 | public void queueReload(); |
| 55 | // Execute the provided script in current context when page load has finished. |
| 56 | public void queueScript(String scriptToRunInCurrentContext); |
| 57 | // Load the provided URL into the provided frame |
| 58 | public void queueLoad(String Url, String frameTarget); |
| 59 | |
| 60 | public void setAcceptsEditing(boolean b); |
Ben Murdoch | e6f3e45 | 2009-04-22 16:02:31 +0100 | [diff] [blame] | 61 | |
| 62 | // For storage tests |
| 63 | public void dumpDatabaseCallbacks(); |
| 64 | public void setCanOpenWindows(); |
Steve Block | dad347c | 2009-08-19 18:46:34 +0100 | [diff] [blame] | 65 | |
| 66 | // For Geolocation tests |
| 67 | public void setGeolocationPermission(boolean allow); |
Steve Block | fb0de34 | 2010-03-19 18:48:35 +0000 | [diff] [blame] | 68 | |
| 69 | public void overridePreference(String key, boolean value); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 70 | } |