[results.webkit.org] fix missing col classes
[WebKit-https.git] / Source / WebKit / UIProcess / ios / WKContentView.h
1 /*
2  * Copyright (C) 2013, 2014 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 "WKApplicationStateTrackingView.h"
27 #import "WKBase.h"
28 #import "WKBrowsingContextController.h"
29 #import "WKBrowsingContextGroup.h"
30 #import "WKProcessGroup.h"
31 #import <wtf/RetainPtr.h>
32
33 @class WKContentView;
34 @class WKWebView;
35
36 namespace API {
37 class PageConfiguration;
38 }
39
40 namespace WebCore {
41 class FloatRect;
42 struct Highlight;
43 }
44
45 namespace WebKit {
46 class DrawingAreaProxy;
47 class RemoteLayerTreeTransaction;
48 class WebFrameProxy;
49 class WebPageProxy;
50 class WebProcessProxy;
51 class WebProcessPool;
52 }
53
54 @interface WKContentView : WKApplicationStateTrackingView {
55 @package
56     RefPtr<WebKit::WebPageProxy> _page;
57     WKWebView *_webView; // FIXME: This should be made a WeakObjCPtr once everything that refers to it is moved to OpenSource.
58 }
59
60 #pragma clang diagnostic push
61 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
62 @property (nonatomic, readonly) WKBrowsingContextController *browsingContextController;
63 #pragma clang diagnostic pop
64
65 @property (nonatomic, readonly) WebKit::WebPageProxy* page;
66 @property (nonatomic, readonly) BOOL isFocusingElement;
67 @property (nonatomic, getter=isShowingInspectorIndication) BOOL showingInspectorIndication;
68 @property (nonatomic, readonly, getter=isResigningFirstResponder) BOOL resigningFirstResponder;
69 @property (nonatomic) BOOL sizeChangedSinceLastVisibleContentRectUpdate;
70 @property (nonatomic, readonly) UIInterfaceOrientation interfaceOrientation;
71
72 - (instancetype)initWithFrame:(CGRect)frame processPool:(WebKit::WebProcessPool&)processPool configuration:(Ref<API::PageConfiguration>&&)configuration webView:(WKWebView *)webView;
73
74 - (void)didUpdateVisibleRect:(CGRect)visibleRect
75     unobscuredRect:(CGRect)unobscuredRect
76     contentInsets:(UIEdgeInsets)contentInsets
77     unobscuredRectInScrollViewCoordinates:(CGRect)unobscuredRectInScrollViewCoordinates
78     obscuredInsets:(UIEdgeInsets)obscuredInsets
79     unobscuredSafeAreaInsets:(UIEdgeInsets)unobscuredSafeAreaInsets
80     inputViewBounds:(CGRect)inputViewBounds
81     scale:(CGFloat)scale minimumScale:(CGFloat)minimumScale
82     inStableState:(BOOL)isStableState
83     isChangingObscuredInsetsInteractively:(BOOL)isChangingObscuredInsetsInteractively
84     enclosedInScrollableAncestorView:(BOOL)enclosedInScrollableAncestorView;
85
86 - (void)didFinishScrolling;
87 - (void)didInterruptScrolling;
88 - (void)didZoomToScale:(CGFloat)scale;
89 - (void)willStartZoomOrScroll;
90
91 - (void)_webViewDestroyed;
92
93 - (std::unique_ptr<WebKit::DrawingAreaProxy>)_createDrawingAreaProxy:(WebKit::WebProcessProxy&)process;
94 - (void)_processDidExit;
95 - (void)_processWillSwap;
96 - (void)_didRelaunchProcess;
97 #if HAVE(VISIBILITY_PROPAGATION_VIEW)
98 - (void)_processDidCreateContextForVisibilityPropagation;
99 #endif
100 - (void)_setAcceleratedCompositingRootView:(UIView *)rootView;
101
102 - (void)_showInspectorHighlight:(const WebCore::Highlight&)highlight;
103 - (void)_hideInspectorHighlight;
104
105 - (void)_didCommitLayerTree:(const WebKit::RemoteLayerTreeTransaction&)layerTreeTransaction;
106 - (void)_layerTreeCommitComplete;
107
108 - (void)_setAccessibilityWebProcessToken:(NSData *)data;
109
110 - (BOOL)_scrollToRect:(CGRect)targetRect withOrigin:(CGPoint)origin minimumScrollDistance:(CGFloat)minimumScrollDistance;
111 - (void)_zoomToFocusRect:(CGRect)rectToFocus selectionRect:(CGRect)selectionRect insideFixed:(BOOL)insideFixed fontSize:(float)fontSize minimumScale:(double)minimumScale maximumScale:(double)maximumScale allowScaling:(BOOL)allowScaling forceScroll:(BOOL)forceScroll;
112 - (BOOL)_zoomToRect:(CGRect)targetRect withOrigin:(CGPoint)origin fitEntireRect:(BOOL)fitEntireRect minimumScale:(double)minimumScale maximumScale:(double)maximumScale minimumScrollDistance:(CGFloat)minimumScrollDistance;
113 - (void)_zoomOutWithOrigin:(CGPoint)origin;
114 - (void)_zoomToInitialScaleWithOrigin:(CGPoint)origin;
115 - (double)_initialScaleFactor;
116 - (double)_contentZoomScale;
117 - (double)_targetContentZoomScaleForRect:(const WebCore::FloatRect&)targetRect currentScale:(double)currentScale fitEntireRect:(BOOL)fitEntireRect minimumScale:(double)minimumScale maximumScale:(double)maximumScale;
118
119 @end