ValueProfile/PredictedType contains dead code, and doesn't recognize functions
[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 "PluginComplexTextInputState.h"
27 #import "WKView.h"
28 #import "WebFindOptions.h"
29 #import <wtf/Forward.h>
30 #import <wtf/Vector.h>
31
32 namespace CoreIPC {
33     class DataReference;
34 }
35
36 namespace WebCore {
37     struct KeypressCommand;
38 }
39
40 namespace WebKit {
41     class DrawingAreaProxy;
42     class FindIndicator;
43     class LayerTreeContext;
44     struct EditorState;
45 }
46
47 @class WKFullScreenWindowController;
48
49 @interface WKView (Internal)
50 - (PassOwnPtr<WebKit::DrawingAreaProxy>)_createDrawingAreaProxy;
51 - (BOOL)_isFocused;
52 - (void)_processDidCrash;
53 - (void)_pageClosed;
54 - (void)_didRelaunchProcess;
55 - (void)_toolTipChangedFrom:(NSString *)oldToolTip to:(NSString *)newToolTip;
56 - (void)_setCursor:(NSCursor *)cursor;
57 - (void)_setUserInterfaceItemState:(NSString *)commandName enabled:(BOOL)isEnabled state:(int)newState;
58 - (BOOL)_interpretKeyEvent:(NSEvent *)theEvent savingCommandsTo:(Vector<WebCore::KeypressCommand>&)commands;
59 - (void)_doneWithKeyEvent:(NSEvent *)event eventWasHandled:(BOOL)eventWasHandled;
60 - (bool)_executeSavedCommandBySelector:(SEL)selector;
61 - (NSRect)_convertToDeviceSpace:(NSRect)rect;
62 - (NSRect)_convertToUserSpace:(NSRect)rect;
63 - (void)_setFindIndicator:(PassRefPtr<WebKit::FindIndicator>)findIndicator fadeOut:(BOOL)fadeOut;
64
65 - (void)_enterAcceleratedCompositingMode:(const WebKit::LayerTreeContext&)layerTreeContext;
66 - (void)_exitAcceleratedCompositingMode;
67
68 - (void)_setAccessibilityWebProcessToken:(NSData *)data;
69
70 - (void)_pluginFocusOrWindowFocusChanged:(BOOL)pluginHasFocusAndWindowHasFocus pluginComplexTextInputIdentifier:(uint64_t)pluginComplexTextInputIdentifier;
71 - (void)_setPluginComplexTextInputState:(WebKit::PluginComplexTextInputState)pluginComplexTextInputState pluginComplexTextInputIdentifier:(uint64_t)pluginComplexTextInputIdentifier;
72
73 - (void)_setPageHasCustomRepresentation:(BOOL)pageHasCustomRepresentation;
74 - (void)_didFinishLoadingDataForCustomRepresentationWithSuggestedFilename:(const String&)suggestedFilename dataReference:(const CoreIPC::DataReference&)dataReference;
75 - (double)_customRepresentationZoomFactor;
76 - (void)_setCustomRepresentationZoomFactor:(double)zoomFactor;
77 - (void)_findStringInCustomRepresentation:(NSString *)string withFindOptions:(WebKit::FindOptions)options maxMatchCount:(NSUInteger)count;
78 - (void)_countStringMatchesInCustomRepresentation:(NSString *)string withFindOptions:(WebKit::FindOptions)options maxMatchCount:(NSUInteger)count;
79 - (void)_setDragImage:(NSImage *)image at:(NSPoint)clientPoint linkDrag:(BOOL)linkDrag;
80 - (void)_updateSecureInputState;
81 - (void)_updateTextInputStateIncludingSecureInputState:(BOOL)updateSecureInputState;
82 - (void)_resetTextInputState;
83
84 - (void)_didChangeScrollbarsForMainFrame;
85
86 #if ENABLE(FULLSCREEN_API)
87 - (WKFullScreenWindowController*)fullScreenWindowController;
88 - (void)closeFullScreenWindowController;
89 #endif
90
91 - (void)_cacheWindowBottomCornerRect;
92
93 - (NSInteger)spellCheckerDocumentTag;
94 - (void)handleCorrectionPanelResult:(NSString*)result;
95
96 @end