|
5 | 5 | import com.github.kklisura.cdtp.protocol.annotations.ParamName; |
6 | 6 | import com.github.kklisura.cdtp.protocol.annotations.Returns; |
7 | 7 | import com.github.kklisura.cdtp.protocol.types.debugger.SearchMatch; |
8 | | -import com.github.kklisura.cdtp.protocol.types.emulation.ScreenOrientation; |
9 | | -import com.github.kklisura.cdtp.protocol.types.network.Cookie; |
10 | 8 | import com.github.kklisura.cdtp.protocol.types.page.AppManifest; |
11 | 9 | import com.github.kklisura.cdtp.protocol.types.page.Behavior; |
12 | | -import com.github.kklisura.cdtp.protocol.types.page.Configuration; |
13 | 10 | import com.github.kklisura.cdtp.protocol.types.page.Format; |
14 | 11 | import com.github.kklisura.cdtp.protocol.types.page.FrameResourceTree; |
15 | 12 | import com.github.kklisura.cdtp.protocol.types.page.LayoutMetrics; |
@@ -114,19 +111,6 @@ public interface Page { |
114 | 111 | @Experimental |
115 | 112 | void navigateToHistoryEntry(@ParamName("entryId") Integer entryId); |
116 | 113 |
|
117 | | - /** |
118 | | - * Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the <code>cookies</code> field. |
119 | | - */ |
120 | | - @Experimental |
121 | | - @Returns("cookies") |
122 | | - List<Cookie> getCookies(); |
123 | | - |
124 | | - /** |
125 | | - * Deletes browser cookie with given name, domain and path. |
126 | | - */ |
127 | | - @Experimental |
128 | | - void deleteCookie(@ParamName("cookieName") String cookieName, @ParamName("url") String url); |
129 | | - |
130 | 114 | /** |
131 | 115 | * Returns present frame / resource tree structure. |
132 | 116 | */ |
@@ -160,63 +144,6 @@ public interface Page { |
160 | 144 | @Experimental |
161 | 145 | void setDocumentContent(@ParamName("frameId") String frameId, @ParamName("html") String html); |
162 | 146 |
|
163 | | - /** |
164 | | - * Overrides the values of device screen dimensions (window.screen.width, window.screen.height, window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media query results). |
165 | | - */ |
166 | | - @Experimental |
167 | | - void setDeviceMetricsOverride(@ParamName("width") Integer width, @ParamName("height") Integer height, @ParamName("deviceScaleFactor") Double deviceScaleFactor, @ParamName("mobile") Boolean mobile); |
168 | | - |
169 | | - /** |
170 | | - * Overrides the values of device screen dimensions (window.screen.width, window.screen.height, window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media query results). |
171 | | - */ |
172 | | - @Experimental |
173 | | - void setDeviceMetricsOverride(@ParamName("width") Integer width, @ParamName("height") Integer height, @ParamName("deviceScaleFactor") Double deviceScaleFactor, @ParamName("mobile") Boolean mobile, @Optional @ParamName("scale") Double scale, @Optional @ParamName("screenWidth") Integer screenWidth, @Optional @ParamName("screenHeight") Integer screenHeight, @Optional @ParamName("positionX") Integer positionX, @Optional @ParamName("positionY") Integer positionY, @Optional @ParamName("dontSetVisibleSize") Boolean dontSetVisibleSize, @Optional @ParamName("screenOrientation") ScreenOrientation screenOrientation); |
174 | | - |
175 | | - /** |
176 | | - * Clears the overriden device metrics. |
177 | | - */ |
178 | | - @Experimental |
179 | | - void clearDeviceMetricsOverride(); |
180 | | - |
181 | | - /** |
182 | | - * Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable. |
183 | | - */ |
184 | | - void setGeolocationOverride(); |
185 | | - |
186 | | - /** |
187 | | - * Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable. |
188 | | - */ |
189 | | - void setGeolocationOverride(@Optional @ParamName("latitude") Double latitude, @Optional @ParamName("longitude") Double longitude, @Optional @ParamName("accuracy") Double accuracy); |
190 | | - |
191 | | - /** |
192 | | - * Clears the overriden Geolocation Position and Error. |
193 | | - */ |
194 | | - void clearGeolocationOverride(); |
195 | | - |
196 | | - /** |
197 | | - * Overrides the Device Orientation. |
198 | | - */ |
199 | | - @Experimental |
200 | | - void setDeviceOrientationOverride(@ParamName("alpha") Double alpha, @ParamName("beta") Double beta, @ParamName("gamma") Double gamma); |
201 | | - |
202 | | - /** |
203 | | - * Clears the overridden Device Orientation. |
204 | | - */ |
205 | | - @Experimental |
206 | | - void clearDeviceOrientationOverride(); |
207 | | - |
208 | | - /** |
209 | | - * Toggles mouse event-based touch event emulation. |
210 | | - */ |
211 | | - @Experimental |
212 | | - void setTouchEmulationEnabled(@ParamName("enabled") Boolean enabled); |
213 | | - |
214 | | - /** |
215 | | - * Toggles mouse event-based touch event emulation. |
216 | | - */ |
217 | | - @Experimental |
218 | | - void setTouchEmulationEnabled(@ParamName("enabled") Boolean enabled, @Optional @ParamName("configuration") Configuration configuration); |
219 | | - |
220 | 147 | /** |
221 | 148 | * Capture page screenshot. |
222 | 149 | */ |
|
0 commit comments