Methods to temporarily disable size updates to the page drawing area in WKView.
[WebKit-https.git] / Source / WebKit2 / UIProcess / API / mac / WKViewInternal.h
1 /*
2  * Copyright (C) 2010 Apple Inc. All rights reserved.
3  *
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  * 1. Redistributions of source code must retain the above copyright
8  *    notice, this list of conditions and the following disclaimer.
9  * 2. Redistributions in binary form must reproduce the above copyright
10  *    notice, this list of conditions and the following disclaimer in the
11  *    documentation and/or other materials provided with the distribution.
12  *
13  * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
14  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
15  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
17  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
18  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
19  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
20  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
21  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
23  * THE POSSIBILITY OF SUCH DAMAGE.
24  */
25
26 #import "WKView.h"
27 #import <WebCore/Editor.h>
28 #import <WebCore/KeyboardEvent.h>
29
30 namespace WebKit {
31     class DrawingAreaProxy;
32     class FindIndicator;
33 }
34
35 @interface WKView (Internal)
36 - (PassOwnPtr<WebKit::DrawingAreaProxy>)_createDrawingAreaProxy;
37 - (BOOL)_isFocused;
38 - (void)_processDidCrash;
39 - (void)_pageClosed;
40 - (void)_didRelaunchProcess;
41 - (void)_takeFocus:(BOOL)direction;
42 - (void)_toolTipChangedFrom:(NSString *)oldToolTip to:(NSString *)newToolTip;
43 - (void)_setCursor:(NSCursor *)cursor;
44 - (void)_setUserInterfaceItemState:(NSString *)commandName enabled:(BOOL)isEnabled state:(int)newState;
45 - (Vector<WebCore::KeypressCommand>&)_interceptKeyEvent:(NSEvent *)theEvent;
46 - (void)_getTextInputState:(unsigned)start selectionEnd:(unsigned)end underlines:(Vector<WebCore::CompositionUnderline>&)lines;
47 - (void)_setEventBeingResent:(NSEvent *)event;
48 - (NSRect)_convertToDeviceSpace:(NSRect)rect;
49 - (NSRect)_convertToUserSpace:(NSRect)rect;
50 - (void)_setFindIndicator:(PassRefPtr<WebKit::FindIndicator>)findIndicator fadeOut:(BOOL)fadeOut;
51
52 #if USE(ACCELERATED_COMPOSITING)
53 - (void)_startAcceleratedCompositing:(CALayer *)rootLayer;
54 - (void)_stopAcceleratedCompositing;
55 - (void)_pageDidEnterAcceleratedCompositing;
56 - (void)_pageDidLeaveAcceleratedCompositing;
57 #endif
58
59 - (void)_setAccessibilityChildToken:(NSData *)data;
60 - (void)_setComplexTextInputEnabled:(BOOL)complexTextInputEnabled pluginComplexTextInputIdentifier:(uint64_t)pluginComplexTextInputIdentifier;
61
62 - (void)_setPageHasCustomRepresentation:(BOOL)pageHasCustomRepresentation;
63 - (void)_didFinishLoadingDataForCustomRepresentation:(const CoreIPC::DataReference&)dataReference;
64 - (double)_customRepresentationZoomFactor;
65 - (void)_setCustomRepresentationZoomFactor:(double)zoomFactor;
66 - (void)_setDragImage:(NSImage *)image at:(NSPoint)clientPoint linkDrag:(BOOL)linkDrag;
67
68 - (void)_setDrawingAreaSize:(NSSize)size;
69 @end