OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006. 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006. 2007 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 - (BOOL)webView:(WebView *)sender shouldHaltPlugin:(DOMNode *)pluginNode | 245 - (BOOL)webView:(WebView *)sender shouldHaltPlugin:(DOMNode *)pluginNode |
246 { | 246 { |
247 return NO; | 247 return NO; |
248 } | 248 } |
249 | 249 |
250 - (BOOL)webView:(WebView *)webView supportsFullScreenForElement:(DOMElement*)ele
ment withKeyboard:(BOOL)withKeyboard | 250 - (BOOL)webView:(WebView *)webView supportsFullScreenForElement:(DOMElement*)ele
ment withKeyboard:(BOOL)withKeyboard |
251 { | 251 { |
252 return YES; | 252 return YES; |
253 } | 253 } |
254 | 254 |
255 - (void)enterFullScreenWithListener:(NSObject<WebKitFullScreenListener>*)listene
r | 255 - (void)webView:(WebView *)webView enterFullScreenForElement:(DOMElement*)elemen
t listener:(NSObject<WebKitFullScreenListener>*)listener |
256 { | 256 { |
257 [listener webkitWillEnterFullScreen]; | 257 [listener webkitWillEnterFullScreen]; |
258 [listener webkitDidEnterFullScreen]; | 258 [listener webkitDidEnterFullScreen]; |
259 } | 259 } |
260 | 260 |
261 - (void)webView:(WebView *)webView enterFullScreenForElement:(DOMElement*)elemen
t listener:(NSObject<WebKitFullScreenListener>*)listener | 261 - (void)webView:(WebView *)webView exitFullScreenForElement:(DOMElement*)element
listener:(NSObject<WebKitFullScreenListener>*)listener |
262 { | |
263 [self performSelector:@selector(enterFullScreenWithListener:) withObject:lis
tener afterDelay:0]; | |
264 } | |
265 | |
266 - (void)exitFullScreenWithListener:(NSObject<WebKitFullScreenListener>*)listener | |
267 { | 262 { |
268 [listener webkitWillExitFullScreen]; | 263 [listener webkitWillExitFullScreen]; |
269 [listener webkitDidExitFullScreen]; | 264 [listener webkitDidExitFullScreen]; |
270 } | 265 } |
271 | 266 |
272 - (void)webView:(WebView *)webView exitFullScreenForElement:(DOMElement*)element
listener:(NSObject<WebKitFullScreenListener>*)listener | |
273 { | |
274 [self performSelector:@selector(exitFullScreenWithListener:) withObject:list
ener afterDelay:0]; | |
275 } | |
276 | |
277 - (BOOL)webView:(WebView *)webView didPressMissingPluginButton:(DOMElement *)ele
ment | 267 - (BOOL)webView:(WebView *)webView didPressMissingPluginButton:(DOMElement *)ele
ment |
278 { | 268 { |
279 printf("MISSING PLUGIN BUTTON PRESSED\n"); | 269 printf("MISSING PLUGIN BUTTON PRESSED\n"); |
280 return TRUE; | 270 return TRUE; |
281 } | 271 } |
282 | 272 |
283 - (void)dealloc | 273 - (void)dealloc |
284 { | 274 { |
285 [draggingInfo release]; | 275 [draggingInfo release]; |
286 draggingInfo = nil; | 276 draggingInfo = nil; |
287 [m_pendingGeolocationPermissionListeners release]; | 277 [m_pendingGeolocationPermissionListeners release]; |
288 m_pendingGeolocationPermissionListeners = nil; | 278 m_pendingGeolocationPermissionListeners = nil; |
289 | 279 |
290 [super dealloc]; | 280 [super dealloc]; |
291 } | 281 } |
292 | 282 |
293 @end | 283 @end |
OLD | NEW |