blob: 31655dbceb08f4f8888a3b1df2ea14ec23568f34 [file] [log] [blame]
ggaren462f3fe2006-10-31 03:23:35 +00001/*
mjs@apple.com92047332014-03-15 04:08:27 +00002 * Copyright (C) 2006 Apple Inc. All rights reserved.
ggaren462f3fe2006-10-31 03:23:35 +00003 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
mjs@apple.com92047332014-03-15 04:08:27 +000013 * 3. Neither the name of Apple Inc. ("Apple") nor the names of
ggaren462f3fe2006-10-31 03:23:35 +000014 * its contributors may be used to endorse or promote products derived
15 * from this software without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
18 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
21 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
wenson_hsieh@apple.comed21ef72017-04-10 17:58:58 +000028
29#import "TestOptions.h"
ggaren462f3fe2006-10-31 03:23:35 +000030
ap@apple.com1e8475922018-10-18 21:38:50 +000031#if !PLATFORM(IOS_FAMILY)
ggaren462f3fe2006-10-31 03:23:35 +000032#import <Cocoa/Cocoa.h>
aestes@apple.com25e694f2014-01-27 00:01:15 +000033#else
34#import <WebKit/WAKView.h>
35#endif
ggaren462f3fe2006-10-31 03:23:35 +000036
andersca@apple.combbb86902015-01-12 21:07:59 +000037#import <WebKit/WebUIDelegate.h>
cdumez@apple.comf274a632021-02-12 18:40:44 +000038#import <wtf/RetainPtr.h>
andersca@apple.combbb86902015-01-12 21:07:59 +000039
40@interface UIDelegate : NSObject <WebUIDelegate> {
kmccullo231507b2007-07-26 21:59:05 +000041@private
darin@apple.com6c168952014-06-01 00:01:16 +000042 NSPoint windowOrigin;
cdumez@apple.comf274a632021-02-12 18:40:44 +000043 RetainPtr<NSMutableSet> m_pendingGeolocationPermissionListeners;
steveblock@google.comc96470c2010-08-04 11:13:20 +000044 NSTimer *m_timer;
wenson_hsieh@apple.comed21ef72017-04-10 17:58:58 +000045 BOOL m_enableDragDestinationActionLoad;
kmccullo231507b2007-07-26 21:59:05 +000046}
47
darin@apple.com6c168952014-06-01 00:01:16 +000048- (void)resetWindowOrigin;
steveblock@google.comc96470c2010-08-04 11:13:20 +000049- (void)didSetMockGeolocationPermission;
jknotten@chromium.org04fa8dd2011-03-14 12:26:09 +000050- (int)numberOfPendingGeolocationPermissionRequests;
weinig@apple.com1e83db42020-10-12 21:54:50 +000051- (void)resetToConsistentStateBeforeTesting:(const WTR::TestOptions&)options;
steveblock@google.comc96470c2010-08-04 11:13:20 +000052
ggaren462f3fe2006-10-31 03:23:35 +000053@end