<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[177702] trunk/Source/WebKit2</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/177702">177702</a></dd>
<dt>Author</dt> <dd>timothy_horton@apple.com</dd>
<dt>Date</dt> <dd>2014-12-23 16:13:03 -0800 (Tue, 23 Dec 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Remove the custom web page preview code
https://bugs.webkit.org/show_bug.cgi?id=139894
&lt;rdar://problem/19333074&gt;

Reviewed by Dan Bernstein.

* UIProcess/API/Cocoa/WKViewPrivate.h:
* UIProcess/API/mac/WKView.mm:
(-[WKView _dismissContentRelativeChildWindows]):
(-[WKView _viewForPreviewingURL:initialFrameSize:]): Deleted.
(-[WKView _titleForPreviewOfURL:]): Deleted.
(-[WKView _setPreviewTitle:]): Deleted.
(-[WKView _setPreviewLoading:]): Deleted.
(-[WKView _setPreviewOverrideImage:]): Deleted.
(-[WKView _finishPreviewingURL:withPreviewView:]): Deleted.
(-[WKView _handleClickInPreviewView:URL:]): Deleted.
(-[WKView _shouldUseStandardQuickLookPreview]): Deleted.
* UIProcess/mac/WKImmediateActionController.h:
* UIProcess/mac/WKImmediateActionController.mm:
(-[WKImmediateActionController willDestroyView:]):
(-[WKImmediateActionController _clearImmediateActionState]):
(-[WKImmediateActionController immediateActionRecognizerWillPrepare:]):
(-[WKImmediateActionController _defaultAnimationController]):
(-[WKImmediateActionController hidePreview]): Deleted.
(-[WKImmediateActionController setPreviewTitle:]): Deleted.
(-[WKImmediateActionController setPreviewLoading:]): Deleted.
(-[WKImmediateActionController setPreviewOverrideImage:]): Deleted.
(-[WKImmediateActionController _animationControllerForCustomPreview]): Deleted.
* UIProcess/mac/WKPagePreviewViewController.h: Removed.
* UIProcess/mac/WKPagePreviewViewController.mm: Removed.
* UIProcess/mac/WKPreviewPopoverAnimationController.h: Removed.
* UIProcess/mac/WKPreviewPopoverAnimationController.mm: Removed.
* WebKit2.xcodeproj/project.pbxproj:
Remove all of the custom web page preview code. Clients that want the custom
preview can implement it by overriding the immediate action.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICocoaWKViewPrivateh">trunk/Source/WebKit2/UIProcess/API/Cocoa/WKViewPrivate.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPImacWKViewmm">trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm</a></li>
<li><a href="#trunkSourceWebKit2UIProcessmacWKImmediateActionControllerh">trunk/Source/WebKit2/UIProcess/mac/WKImmediateActionController.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessmacWKImmediateActionControllermm">trunk/Source/WebKit2/UIProcess/mac/WKImmediateActionController.mm</a></li>
<li><a href="#trunkSourceWebKit2WebKit2xcodeprojprojectpbxproj">trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkSourceWebKit2UIProcessmacWKPagePreviewViewControllerh">trunk/Source/WebKit2/UIProcess/mac/WKPagePreviewViewController.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessmacWKPagePreviewViewControllermm">trunk/Source/WebKit2/UIProcess/mac/WKPagePreviewViewController.mm</a></li>
<li><a href="#trunkSourceWebKit2UIProcessmacWKPreviewPopoverAnimationControllerh">trunk/Source/WebKit2/UIProcess/mac/WKPreviewPopoverAnimationController.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessmacWKPreviewPopoverAnimationControllermm">trunk/Source/WebKit2/UIProcess/mac/WKPreviewPopoverAnimationController.mm</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (177701 => 177702)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2014-12-23 23:58:27 UTC (rev 177701)
+++ trunk/Source/WebKit2/ChangeLog        2014-12-24 00:13:03 UTC (rev 177702)
</span><span class="lines">@@ -1,3 +1,41 @@
</span><ins>+2014-12-23  Timothy Horton  &lt;timothy_horton@apple.com&gt;
+
+        Remove the custom web page preview code
+        https://bugs.webkit.org/show_bug.cgi?id=139894
+        &lt;rdar://problem/19333074&gt;
+
+        Reviewed by Dan Bernstein.
+
+        * UIProcess/API/Cocoa/WKViewPrivate.h:
+        * UIProcess/API/mac/WKView.mm:
+        (-[WKView _dismissContentRelativeChildWindows]):
+        (-[WKView _viewForPreviewingURL:initialFrameSize:]): Deleted.
+        (-[WKView _titleForPreviewOfURL:]): Deleted.
+        (-[WKView _setPreviewTitle:]): Deleted.
+        (-[WKView _setPreviewLoading:]): Deleted.
+        (-[WKView _setPreviewOverrideImage:]): Deleted.
+        (-[WKView _finishPreviewingURL:withPreviewView:]): Deleted.
+        (-[WKView _handleClickInPreviewView:URL:]): Deleted.
+        (-[WKView _shouldUseStandardQuickLookPreview]): Deleted.
+        * UIProcess/mac/WKImmediateActionController.h:
+        * UIProcess/mac/WKImmediateActionController.mm:
+        (-[WKImmediateActionController willDestroyView:]):
+        (-[WKImmediateActionController _clearImmediateActionState]):
+        (-[WKImmediateActionController immediateActionRecognizerWillPrepare:]):
+        (-[WKImmediateActionController _defaultAnimationController]):
+        (-[WKImmediateActionController hidePreview]): Deleted.
+        (-[WKImmediateActionController setPreviewTitle:]): Deleted.
+        (-[WKImmediateActionController setPreviewLoading:]): Deleted.
+        (-[WKImmediateActionController setPreviewOverrideImage:]): Deleted.
+        (-[WKImmediateActionController _animationControllerForCustomPreview]): Deleted.
+        * UIProcess/mac/WKPagePreviewViewController.h: Removed.
+        * UIProcess/mac/WKPagePreviewViewController.mm: Removed.
+        * UIProcess/mac/WKPreviewPopoverAnimationController.h: Removed.
+        * UIProcess/mac/WKPreviewPopoverAnimationController.mm: Removed.
+        * WebKit2.xcodeproj/project.pbxproj:
+        Remove all of the custom web page preview code. Clients that want the custom
+        preview can implement it by overriding the immediate action.
+
</ins><span class="cx"> 2014-12-23  Anders Carlsson  &lt;andersca@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Add WebProcessProxy::transformHandlesToObjects
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICocoaWKViewPrivateh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/Cocoa/WKViewPrivate.h (177701 => 177702)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/Cocoa/WKViewPrivate.h        2014-12-23 23:58:27 UTC (rev 177701)
+++ trunk/Source/WebKit2/UIProcess/API/Cocoa/WKViewPrivate.h        2014-12-24 00:13:03 UTC (rev 177702)
</span><span class="lines">@@ -129,15 +129,6 @@
</span><span class="cx"> // do something custom, return an object that conforms to the NSImmediateActionAnimationController protocol.
</span><span class="cx"> - (id)_immediateActionAnimationControllerForHitTestResult:(WKHitTestResultRef)hitTestResult withType:(_WKImmediateActionType)type userData:(WKTypeRef)userData;
</span><span class="cx"> 
</span><del>-- (NSView *)_viewForPreviewingURL:(NSURL *)url initialFrameSize:(NSSize)initialFrameSize;
-- (NSString *)_titleForPreviewOfURL:(NSURL *)url;
-- (void)_setPreviewTitle:(NSString *)previewTitle;
-- (void)_setPreviewLoading:(BOOL)loading;
-- (void)_setPreviewOverrideImage:(NSImage *)image;
-- (void)_finishPreviewingURL:(NSURL *)url withPreviewView:(NSView *)previewView;
-- (void)_handleClickInPreviewView:(NSView *)previewView URL:(NSURL *)url;
-- (BOOL)_shouldUseStandardQuickLookPreview;
-
</del><span class="cx"> - (void)_dismissContentRelativeChildWindows;
</span><span class="cx"> #endif
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPImacWKViewmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm (177701 => 177702)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm        2014-12-23 23:58:27 UTC (rev 177701)
+++ trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm        2014-12-24 00:13:03 UTC (rev 177702)
</span><span class="lines">@@ -4340,62 +4340,13 @@
</span><span class="cx">     if ([actionsManager respondsToSelector:@selector(requestBubbleClosureUnanchorOnFailure:)])
</span><span class="cx">         [actionsManager requestBubbleClosureUnanchorOnFailure:YES];
</span><span class="cx"> 
</span><del>-#if __MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 101000
-    [_data-&gt;_immediateActionController hidePreview];
-#endif
-
</del><span class="cx">     [self _setTextIndicator:nullptr fadeOut:NO];
</span><span class="cx"> 
</span><span class="cx">     static_cast&lt;PageClient&amp;&gt;(*_data-&gt;_pageClient).dismissCorrectionPanel(ReasonForDismissingAlternativeTextIgnored);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-- (NSView *)_viewForPreviewingURL:(NSURL *)url initialFrameSize:(NSSize)initialFrameSize
-{
-    return nil;
-}
-
-- (NSString *)_titleForPreviewOfURL:(NSURL *)url
-{
-    return nil;
-}
-
-- (void)_setPreviewTitle:(NSString *)previewTitle
-{
</del><span class="cx"> #if __MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 101000
</span><del>-    [_data-&gt;_immediateActionController setPreviewTitle:previewTitle];
-#endif
-}
</del><span class="cx"> 
</span><del>-- (void)_setPreviewLoading:(BOOL)loading
-{
-#if __MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 101000
-    [_data-&gt;_immediateActionController setPreviewLoading:loading];
-#endif
-}
-
-- (void)_setPreviewOverrideImage:(NSImage *)image
-{
-#if __MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 101000
-    [_data-&gt;_immediateActionController setPreviewOverrideImage:image];
-#endif
-}
-
-- (void)_finishPreviewingURL:(NSURL *)url withPreviewView:(NSView *)previewView
-{
-}
-
-- (void)_handleClickInPreviewView:(NSView *)previewView URL:(NSURL *)url
-{
-    [[NSWorkspace sharedWorkspace] openURL:url];
-}
-
-- (BOOL)_shouldUseStandardQuickLookPreview
-{
-    return YES;
-}
-
-#if __MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 101000
-
</del><span class="cx"> - (void)_setAutomaticallyAdjustsContentInsets:(BOOL)automaticallyAdjustsContentInsets
</span><span class="cx"> {
</span><span class="cx">     _data-&gt;_automaticallyAdjustsContentInsets = automaticallyAdjustsContentInsets;
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessmacWKImmediateActionControllerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/mac/WKImmediateActionController.h (177701 => 177702)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/mac/WKImmediateActionController.h        2014-12-23 23:58:27 UTC (rev 177701)
+++ trunk/Source/WebKit2/UIProcess/mac/WKImmediateActionController.h        2014-12-24 00:13:03 UTC (rev 177702)
</span><span class="lines">@@ -45,8 +45,6 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> @class DDActionContext;
</span><del>-@class WKPagePreviewViewController;
-@class WKPreviewPopoverAnimationController;
</del><span class="cx"> @class WKView;
</span><span class="cx"> 
</span><span class="cx"> @interface WKImmediateActionController : NSObject &lt;NSImmediateActionGestureRecognizerDelegate&gt; {
</span><span class="lines">@@ -60,12 +58,8 @@
</span><span class="cx">     _WKImmediateActionType _type;
</span><span class="cx">     NSImmediateActionGestureRecognizer *_immediateActionRecognizer;
</span><span class="cx"> 
</span><del>-    NSPoint _eventLocationInView;
-
</del><span class="cx">     BOOL _hasActivatedActionContext;
</span><span class="cx">     RetainPtr&lt;DDActionContext&gt; _currentActionContext;
</span><del>-
-    RetainPtr&lt;WKPreviewPopoverAnimationController&gt; _previewAnimationController;
</del><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> - (instancetype)initWithPage:(WebKit::WebPageProxy&amp;)page view:(WKView *)wkView recognizer:(NSImmediateActionGestureRecognizer *)immediateActionRecognizer;
</span><span class="lines">@@ -73,11 +67,6 @@
</span><span class="cx"> - (void)didPerformActionMenuHitTest:(const WebKit::ActionMenuHitTestResult&amp;)hitTestResult userData:(API::Object*)userData;
</span><span class="cx"> - (void)wkView:(WKView *)wkView willHandleMouseDown:(NSEvent *)event;
</span><span class="cx"> 
</span><del>-- (void)setPreviewTitle:(NSString *)previewTitle;
-- (void)hidePreview;
-- (void)setPreviewLoading:(BOOL)loading;
-- (void)setPreviewOverrideImage:(NSImage *)image;
-
</del><span class="cx"> @end
</span><span class="cx"> 
</span><span class="cx"> #endif // PLATFORM(MAC) &amp;&amp; __MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 101000
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessmacWKImmediateActionControllermm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/mac/WKImmediateActionController.mm (177701 => 177702)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/mac/WKImmediateActionController.mm        2014-12-23 23:58:27 UTC (rev 177701)
+++ trunk/Source/WebKit2/UIProcess/mac/WKImmediateActionController.mm        2014-12-24 00:13:03 UTC (rev 177702)
</span><span class="lines">@@ -29,8 +29,6 @@
</span><span class="cx"> #if PLATFORM(MAC) &amp;&amp; __MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 101000
</span><span class="cx"> 
</span><span class="cx"> #import &quot;WKNSURLExtras.h&quot;
</span><del>-#import &quot;WKPagePreviewViewController.h&quot;
-#import &quot;WKPreviewPopoverAnimationController.h&quot;
</del><span class="cx"> #import &quot;WKViewInternal.h&quot;
</span><span class="cx"> #import &quot;WebPageMessages.h&quot;
</span><span class="cx"> #import &quot;WebPageProxy.h&quot;
</span><span class="lines">@@ -73,8 +71,6 @@
</span><span class="cx"> 
</span><span class="cx"> - (void)willDestroyView:(WKView *)view
</span><span class="cx"> {
</span><del>-    [_previewAnimationController close];
-
</del><span class="cx">     _page = nullptr;
</span><span class="cx">     _wkView = nil;
</span><span class="cx">     _hitTestResult = ActionMenuHitTestResult();
</span><span class="lines">@@ -98,8 +94,6 @@
</span><span class="cx"> 
</span><span class="cx"> - (void)_clearImmediateActionState
</span><span class="cx"> {
</span><del>-    [self hidePreview];
-
</del><span class="cx">     _page-&gt;clearTextIndicator();
</span><span class="cx"> 
</span><span class="cx">     if (_currentActionContext &amp;&amp; _hasActivatedActionContext) {
</span><span class="lines">@@ -135,8 +129,7 @@
</span><span class="cx"> 
</span><span class="cx">     [_wkView _dismissContentRelativeChildWindows];
</span><span class="cx"> 
</span><del>-    _eventLocationInView = [immediateActionRecognizer locationInView:immediateActionRecognizer.view];
-    _page-&gt;performActionMenuHitTestAtLocation(_eventLocationInView, true);
</del><ins>+    _page-&gt;performActionMenuHitTestAtLocation([immediateActionRecognizer locationInView:immediateActionRecognizer.view], true);
</ins><span class="cx"> 
</span><span class="cx">     _state = ImmediateActionState::Pending;
</span><span class="cx">     immediateActionRecognizer.animationController = nil;
</span><span class="lines">@@ -226,22 +219,10 @@
</span><span class="cx">     if (!absoluteLinkURL.isEmpty() &amp;&amp; WebCore::protocolIsInHTTPFamily(absoluteLinkURL)) {
</span><span class="cx">         _type = kWKImmediateActionLinkPreview;
</span><span class="cx"> 
</span><del>-        BOOL shouldUseStandardQuickLookPreview = [_wkView _shouldUseStandardQuickLookPreview] &amp;&amp; [NSMenuItem respondsToSelector:@selector(standardQuickLookMenuItem)];
-        if (shouldUseStandardQuickLookPreview) {
-            RetainPtr&lt;NSMenuItem&gt; previewLinkItem;
-            RetainPtr&lt;QLPreviewMenuItem&gt; qlPreviewLinkItem;
-            if (shouldUseStandardQuickLookPreview) {
-                qlPreviewLinkItem = [NSMenuItem standardQuickLookMenuItem];
-                [qlPreviewLinkItem setPreviewStyle:QLPreviewStylePopover];
-                [qlPreviewLinkItem setDelegate:self];
-            }
-            return (id&lt;NSImmediateActionAnimationController&gt;)qlPreviewLinkItem.get();
-        }
-
-        if (id&lt;NSImmediateActionAnimationController&gt; previewController = [self _animationControllerForCustomPreview])
-            return previewController;
-        return nil;
-
</del><ins>+        RetainPtr&lt;QLPreviewMenuItem&gt; qlPreviewLinkItem = [NSMenuItem standardQuickLookMenuItem];
+        [qlPreviewLinkItem setPreviewStyle:QLPreviewStylePopover];
+        [qlPreviewLinkItem setDelegate:self];
+        return (id&lt;NSImmediateActionAnimationController&gt;)qlPreviewLinkItem.get();
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     if (hitTestResult-&gt;isTextNode() || hitTestResult-&gt;isOverTextInsideFormControlElement()) {
</span><span class="lines">@@ -277,41 +258,6 @@
</span><span class="cx">         _immediateActionRecognizer.animationController = defaultAnimationController;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#pragma mark Link Preview action
-
-- (void)hidePreview
-{
-    [_previewAnimationController close];
-}
-
-- (void)setPreviewTitle:(NSString *)previewTitle
-{
-    [_previewAnimationController setPreviewTitle:previewTitle];
-}
-
-- (void)setPreviewLoading:(BOOL)loading
-{
-    [_previewAnimationController setPreviewLoading:loading];
-}
-
-- (void)setPreviewOverrideImage:(NSImage *)image
-{
-    [_previewAnimationController setPreviewOverrideImage:image];
-}
-
-- (id&lt;NSImmediateActionAnimationController&gt;)_animationControllerForCustomPreview
-{
-    RefPtr&lt;WebHitTestResult&gt; hitTestResult = [self _webHitTestResult];
-    RetainPtr&lt;NSURL&gt; url = [NSURL _web_URLWithWTFString:hitTestResult-&gt;absoluteLinkURL()];
-
-    if (_hitTestResult.linkTextIndicator)
-        _page-&gt;setTextIndicator(_hitTestResult.linkTextIndicator-&gt;data(), false);
-
-    _previewAnimationController = adoptNS([[WKPreviewPopoverAnimationController alloc] initWithURL:url.get() view:_wkView page:*_page originRect:hitTestResult-&gt;elementBoundingBox() eventLocationInView:_eventLocationInView]);
-
-    return _previewAnimationController.get();
-}
-
</del><span class="cx"> #pragma mark QLPreviewMenuItemDelegate implementation
</span><span class="cx"> 
</span><span class="cx"> - (NSView *)menuItem:(NSMenuItem *)menuItem viewAtScreenPoint:(NSPoint)screenPoint
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessmacWKPagePreviewViewControllerh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebKit2/UIProcess/mac/WKPagePreviewViewController.h (177701 => 177702)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/mac/WKPagePreviewViewController.h        2014-12-23 23:58:27 UTC (rev 177701)
+++ trunk/Source/WebKit2/UIProcess/mac/WKPagePreviewViewController.h        2014-12-24 00:13:03 UTC (rev 177702)
</span><span class="lines">@@ -1,70 +0,0 @@
</span><del>-/*
- * Copyright (C) 2014 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef WKPagePreviewViewController_h
-#define WKPagePreviewViewController_h
-
-#if PLATFORM(MAC) &amp;&amp; __MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 101000
-
-#import &lt;wtf/RetainPtr.h&gt;
-
-@class NSString;
-@class NSTextField;
-@class NSURL;
-@class NSView;
-@class WKPagePreviewViewController;
-
-@protocol WKPagePreviewViewControllerDelegate &lt;NSObject&gt;
-- (NSView *)pagePreviewViewController:(WKPagePreviewViewController *)pagePreviewViewController viewForPreviewingURL:(NSURL *)url initialFrameSize:(NSSize)initialFrameSize;
-- (NSString *)pagePreviewViewController:(WKPagePreviewViewController *)pagePreviewViewController titleForPreviewOfURL:(NSURL *)url;
-- (void)pagePreviewViewControllerWasClicked:(WKPagePreviewViewController *)pagePreviewViewController;
-@end
-
-@interface WKPagePreviewViewController : NSViewController {
-@public
-    NSSize _mainViewSize;
-    RetainPtr&lt;NSURL&gt; _url;
-    RetainPtr&lt;NSView&gt; _previewView;
-    RetainPtr&lt;NSTextField&gt; _titleTextField;
-    RetainPtr&lt;NSString&gt; _previewTitle;
-    RetainPtr&lt;NSProgressIndicator&gt; _spinner;
-    BOOL _loading;
-    id &lt;WKPagePreviewViewControllerDelegate&gt; _delegate;
-    CGFloat _popoverToViewScale;
-}
-
-@property (nonatomic, copy) NSString *previewTitle;
-@property (nonatomic, getter=isLoading) BOOL loading;
-
-- (instancetype)initWithPageURL:(NSURL *)URL mainViewSize:(NSSize)size popoverToViewScale:(CGFloat)scale;
-- (void)replacePreviewWithImage:(NSImage *)image atSize:(NSSize)size;
-
-+ (NSSize)previewPadding;
-
-@end
-
-#endif // PLATFORM(MAC) &amp;&amp; __MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 101000
-
-#endif // WKPagePreviewViewController_h
</del></span></pre></div>
<a id="trunkSourceWebKit2UIProcessmacWKPagePreviewViewControllermm"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebKit2/UIProcess/mac/WKPagePreviewViewController.mm (177701 => 177702)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/mac/WKPagePreviewViewController.mm        2014-12-23 23:58:27 UTC (rev 177701)
+++ trunk/Source/WebKit2/UIProcess/mac/WKPagePreviewViewController.mm        2014-12-24 00:13:03 UTC (rev 177702)
</span><span class="lines">@@ -1,179 +0,0 @@
</span><del>-/*
- * Copyright (C) 2014 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import &quot;config.h&quot;
-#import &quot;WKPagePreviewViewController.h&quot;
-
-#if PLATFORM(MAC) &amp;&amp; __MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 101000
-
-static const CGFloat previewViewInset = 3;
-static const CGFloat previewViewTitleHeight = 34;
-
-@implementation WKPagePreviewViewController
-
-- (instancetype)initWithPageURL:(NSURL *)URL mainViewSize:(NSSize)size popoverToViewScale:(CGFloat)scale
-{
-    if (!(self = [super init]))
-        return nil;
-
-    _url = URL;
-    _mainViewSize = size;
-    _popoverToViewScale = scale;
-
-    return self;
-}
-
-- (NSString *)previewTitle
-{
-    return _previewTitle.get();
-}
-
-- (void)setPreviewTitle:(NSString *)previewTitle
-{
-    if ([_previewTitle isEqualToString:previewTitle])
-        return;
-
-    // Keep a separate copy around in case this is received before the view hierarchy is created.
-    _previewTitle = adoptNS([previewTitle copy]);
-    [_titleTextField setStringValue:previewTitle ? previewTitle : @&quot;&quot;];
-}
-
-+ (NSSize)previewPadding
-{
-    return NSMakeSize(2 * previewViewInset, previewViewTitleHeight + 2 * previewViewInset);
-}
-
-- (void)setLoading:(BOOL)loading
-{
-    if (_loading == loading)
-        return;
-
-    _loading = loading;
-
-    [_previewView setHidden:loading];
-
-    if (_loading)
-        [_spinner startAnimation:nil];
-    else
-        [_spinner stopAnimation:nil];
-}
-
-- (BOOL)isLoading
-{
-    return _loading;
-}
-
-- (void)loadView
-{
-    NSRect defaultFrame = NSMakeRect(0, 0, _mainViewSize.width, _mainViewSize.height);
-    _previewView = [_delegate pagePreviewViewController:self viewForPreviewingURL:_url.get() initialFrameSize:defaultFrame.size];
-    ASSERT(_previewView);
-
-    RetainPtr&lt;NSClickGestureRecognizer&gt; clickRecognizer = adoptNS([[NSClickGestureRecognizer alloc] initWithTarget:self action:@selector(_clickRecognized:)]);
-    [_previewView addGestureRecognizer:clickRecognizer.get()];
-
-    NSRect previewFrame = [_previewView frame];
-    NSRect containerFrame = previewFrame;
-    NSSize totalPadding = [[self class] previewPadding];
-    containerFrame.size.width += totalPadding.width;
-    containerFrame.size.height += totalPadding.height;
-    previewFrame = NSOffsetRect(previewFrame, previewViewInset, previewViewInset);
-
-    RetainPtr&lt;NSView&gt; containerView = adoptNS([[NSView alloc] initWithFrame:containerFrame]);
-    [containerView setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
-    [containerView addSubview:_previewView.get()];
-    [_previewView setFrame:previewFrame];
-    [_previewView setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
-    [_previewView setHidden:YES];
-
-    _titleTextField = adoptNS([[NSTextField alloc] init]);
-    [_titleTextField setWantsLayer:YES];
-    [_titleTextField setAutoresizingMask:NSViewWidthSizable | NSViewMinYMargin];
-    [_titleTextField setEditable:NO];
-    [_titleTextField setBezeled:NO];
-    [_titleTextField setDrawsBackground:NO];
-    [_titleTextField setAlignment:NSCenterTextAlignment];
-    [_titleTextField setUsesSingleLineMode:YES];
-    [_titleTextField setLineBreakMode:NSLineBreakByTruncatingTail];
-    [_titleTextField setTextColor:[NSColor labelColor]];
-
-    NSString *title = _previewTitle.get();
-    if (!title)
-        title = [_delegate pagePreviewViewController:self titleForPreviewOfURL:_url.get()];
-    if (!title)
-        title = [_url absoluteString];
-
-    [_titleTextField setStringValue:title ? title : @&quot;&quot;];
-
-    [_titleTextField sizeToFit];
-    NSSize titleFittingSize = [_titleTextField frame].size;
-    CGFloat textFieldCenteringOffset = (NSMaxY(containerFrame) - NSMaxY(previewFrame) - titleFittingSize.height) / 2;
-
-    NSRect titleFrame = previewFrame;
-    titleFrame.size.height = titleFittingSize.height;
-    titleFrame.origin.y = NSMaxY(previewFrame) + textFieldCenteringOffset;
-    [_titleTextField setFrame:titleFrame];
-    [containerView addSubview:_titleTextField.get()];
-
-    NSSize spinnerSize = NSMakeSize(48, 48);
-    NSRect spinnerFrame = NSMakeRect(NSMidX(containerFrame), NSMidY(containerFrame), 0, 0);
-    spinnerFrame = NSInsetRect(spinnerFrame, -spinnerSize.width * 0.5, -spinnerSize.height * 0.5);
-    spinnerFrame.origin.x = floor(spinnerFrame.origin.x);
-    spinnerFrame.origin.y = floor(spinnerFrame.origin.y);
-
-    _spinner = adoptNS([[NSProgressIndicator alloc] initWithFrame:spinnerFrame]);
-    [_spinner setStyle:NSProgressIndicatorSpinningStyle];
-    [_spinner setDisplayedWhenStopped:NO];
-    [_spinner setAutoresizingMask:NSViewMinXMargin | NSViewMaxXMargin | NSViewMinYMargin | NSViewMaxYMargin];
-    [_spinner setAppearance:[NSAppearance appearanceNamed:NSAppearanceNameAqua]];
-    if (_loading)
-        [_spinner startAnimation:nil];
-
-    [containerView addSubview:_spinner.get()];
-
-    // Setting the webView bounds will scale it to 75% of the _mainViewSize.
-    [_previewView setBounds:NSMakeRect(0, 0, _mainViewSize.width / _popoverToViewScale, _mainViewSize.height / _popoverToViewScale)];
-
-    self.view = containerView.get();
-}
-
-- (void)replacePreviewWithImage:(NSImage *)image atSize:(NSSize)size
-{
-    RetainPtr&lt;NSClickGestureRecognizer&gt; clickRecognizer = adoptNS([[NSClickGestureRecognizer alloc] initWithTarget:self action:@selector(_clickRecognized:)]);
-    RetainPtr&lt;NSImageView&gt; imageView = adoptNS([[NSImageView alloc] initWithFrame:NSMakeRect(0, 0, size.width, size.height)]);
-    [imageView setImage:image];
-    [imageView addGestureRecognizer:clickRecognizer.get()];
-    self.view = imageView.get();
-}
-
-- (void)_clickRecognized:(NSGestureRecognizer *)gestureRecognizer
-{
-    if (gestureRecognizer.state == NSGestureRecognizerStateBegan)
-        [_delegate pagePreviewViewControllerWasClicked:self];
-}
-
-@end
-
-#endif // PLATFORM(MAC) &amp;&amp; __MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 101000
</del></span></pre></div>
<a id="trunkSourceWebKit2UIProcessmacWKPreviewPopoverAnimationControllerh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebKit2/UIProcess/mac/WKPreviewPopoverAnimationController.h (177701 => 177702)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/mac/WKPreviewPopoverAnimationController.h        2014-12-23 23:58:27 UTC (rev 177701)
+++ trunk/Source/WebKit2/UIProcess/mac/WKPreviewPopoverAnimationController.h        2014-12-24 00:13:03 UTC (rev 177702)
</span><span class="lines">@@ -1,78 +0,0 @@
</span><del>-/*
- * Copyright (C) 2014 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef WKPreviewPopoverAnimationController_h
-#define WKPreviewPopoverAnimationController_h
-
-#if PLATFORM(MAC) &amp;&amp; __MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 101000
-
-#import &lt;WebCore/NSImmediateActionGestureRecognizerSPI.h&gt;
-#import &lt;wtf/Forward.h&gt;
-#import &lt;wtf/RetainPtr.h&gt;
-
-namespace WebKit {
-class WebPageProxy;
-};
-
-@class NSImmediateActionGestureRecognizer;
-@class NSPopoverAnimationController;
-@class NSString;
-@class NSURL;
-@class WKPagePreviewViewController;
-@class WKView;
-
-@interface WKPreviewPopoverAnimationController : NSObject &lt;NSImmediateActionAnimationController&gt; {
-    bool _shouldShowPreviewWhenLoaded;
-    bool _hasFinishedLoading;
-
-    WKView *_wkView;
-    RetainPtr&lt;NSURL&gt; _url;
-    WebKit::WebPageProxy* _page;
-
-    RetainPtr&lt;NSPopover&gt; _previewPopover;
-    NSRect _popoverOriginRect;
-    RetainPtr&lt;WKPagePreviewViewController&gt; _previewViewController;
-    NSPoint _eventLocationInView;
-
-    RetainPtr&lt;NSPopoverAnimationController&gt; _popoverAnimationController;
-
-    NSImmediateActionGestureRecognizer *_recognizer;
-    bool _didCompleteAnimation;
-    RetainPtr&lt;NSTimer&gt; _previewWatchdogTimer;
-}
-
-- (instancetype)initWithURL:(NSURL *)url view:(WKView *)wkView page:(WebKit::WebPageProxy&amp;)page originRect:(NSRect)originRect eventLocationInView:(NSPoint)eventLocationInView;
-- (void)close;
-
-- (void)setPreviewTitle:(NSString *)previewTitle;
-- (void)setPreviewLoading:(BOOL)loading;
-- (void)setPreviewOverrideImage:(NSImage *)image;
-
-@end
-
-
-#endif // PLATFORM(MAC) &amp;&amp; __MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 101000
-
-#endif // WKPreviewPopoverAnimationController_h
</del></span></pre></div>
<a id="trunkSourceWebKit2UIProcessmacWKPreviewPopoverAnimationControllermm"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebKit2/UIProcess/mac/WKPreviewPopoverAnimationController.mm (177701 => 177702)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/mac/WKPreviewPopoverAnimationController.mm        2014-12-23 23:58:27 UTC (rev 177701)
+++ trunk/Source/WebKit2/UIProcess/mac/WKPreviewPopoverAnimationController.mm        2014-12-24 00:13:03 UTC (rev 177702)
</span><span class="lines">@@ -1,367 +0,0 @@
</span><del>-/*
- * Copyright (C) 2014 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import &quot;config.h&quot;
-#import &quot;WKPreviewPopoverAnimationController.h&quot;
-
-#if PLATFORM(MAC) &amp;&amp; __MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 101000
-
-#import &quot;WKPagePreviewViewController.h&quot;
-#import &quot;WKViewInternal.h&quot;
-#import &quot;WebPageProxy.h&quot;
-#import &lt;WebCore/FloatRect.h&gt;
-#import &lt;WebCore/GeometryUtilities.h&gt;
-#import &lt;WebCore/NSPopoverSPI.h&gt;
-#import &lt;algorithm&gt;
-
-using namespace WebCore;
-using namespace WebKit;
-
-@interface WKPreviewPopoverAnimationController () &lt;WKPagePreviewViewControllerDelegate, NSPopoverDelegate&gt;
-@end
-
-static const CGFloat preferredPopoverToViewScale = 0.75;
-
-@implementation WKPreviewPopoverAnimationController
-
-+ (bool)_shouldImmediatelyShowPreview
-{
-    static bool shouldImmediatelyShowPreview;
-    static dispatch_once_t onceToken;
-    dispatch_once(&amp;onceToken, ^{
-        shouldImmediatelyShowPreview = [[NSUserDefaults standardUserDefaults] boolForKey:@&quot;WebKitShouldImmediatelyShowPreview&quot;];
-    });
-    return shouldImmediatelyShowPreview;
-}
-
-- (instancetype)initWithURL:(NSURL *)url view:(WKView *)wkView page:(WebPageProxy&amp;)page originRect:(NSRect)originRect eventLocationInView:(NSPoint)eventLocationInView
-{
-    self = [super init];
-
-    if (!self)
-        return nil;
-
-    _url = url;
-    _wkView = wkView;
-    _page = &amp;page;
-    _popoverOriginRect = originRect;
-
-    // FIXME: We should be able to get this from the recognizer.
-    _eventLocationInView = eventLocationInView;
-
-    return self;
-}
-
-- (void)close
-{
-    [self _hidePreview];
-
-    _wkView = nil;
-    _page = nullptr;
-}
-
-- (void)setPreviewLoading:(BOOL)loading
-{
-    [_previewViewController setLoading:loading];
-    _hasFinishedLoading = !loading;
-    if (!loading &amp;&amp; _shouldShowPreviewWhenLoaded)
-        [self _showPreview];
-}
-
-- (void)setPreviewOverrideImage:(NSImage *)image
-{
-    NSSize imageSize = image.size;
-    NSSize scaledImageSize;
-    if ([_previewPopover isShown]) {
-        NSSize currentPopoverContentSize = [_previewPopover contentSize];
-        float scale = std::min(std::min&lt;float&gt;(currentPopoverContentSize.width / imageSize.width, 1.0), std::min&lt;float&gt;(currentPopoverContentSize.height / imageSize.height, 1.0));
-        scaledImageSize = NSMakeSize(imageSize.width * scale, imageSize.height * scale);
-    } else
-        scaledImageSize = [self _preferredPopoverSizeWithPreviewPadding:[WKPagePreviewViewController previewPadding] forTargetSize:imageSize];
-
-    [_previewPopover setContentSize:scaledImageSize];
-    [_previewViewController replacePreviewWithImage:image atSize:scaledImageSize];
-}
-
-- (void)_hidePreview
-{
-    if (_page)
-        _page-&gt;clearTextIndicator();
-
-    if (_previewViewController) {
-        _previewViewController-&gt;_delegate = nil;
-        [_wkView _finishPreviewingURL:_previewViewController-&gt;_url.get() withPreviewView:_previewViewController-&gt;_previewView.get()];
-        _previewViewController = nil;
-    }
-
-    [_previewPopover close];
-    [_previewPopover setDelegate:nil];
-    _previewPopover = nil;
-}
-
-- (void)setPreviewTitle:(NSString *)previewTitle
-{
-    [_previewViewController setPreviewTitle:previewTitle];
-}
-
-- (void)_createPreviewPopover
-{
-    NSSize previewPadding = [WKPagePreviewViewController previewPadding];
-    NSSize popoverSize = [self _preferredPopoverSizeWithPreviewPadding:previewPadding forTargetSize:[self _targetSizeForPagePreview]];
-    CGFloat actualPopoverToViewScale = popoverSize.width / NSWidth(_wkView.bounds);
-    popoverSize.width += previewPadding.width;
-    popoverSize.height += previewPadding.height;
-
-    _previewViewController = adoptNS([[WKPagePreviewViewController alloc] initWithPageURL:_url.get() mainViewSize:_wkView.bounds.size popoverToViewScale:actualPopoverToViewScale]);
-    _previewViewController-&gt;_delegate = self;
-    [_previewViewController setLoading:YES];
-    [_previewViewController loadView];
-
-    _previewPopover = adoptNS([[NSPopover alloc] init]);
-    [_previewPopover setBehavior:NSPopoverBehaviorTransient];
-    [_previewPopover setContentSize:popoverSize];
-    [_previewPopover setContentViewController:_previewViewController.get()];
-    [_previewPopover setDelegate:self];
-    [_previewPopover setPositioningOptions:NSPopoverPositioningOptionKeepTopStable];
-}
-
-- (void)_showPreview
-{
-    _shouldShowPreviewWhenLoaded = false;
-    [_previewWatchdogTimer invalidate];
-    _previewWatchdogTimer = nil;
-
-    Class nsPopoverAnimationControllerClass = NSClassFromString(@&quot;NSPopoverAnimationController&quot;);
-    if (nsPopoverAnimationControllerClass) {
-        _popoverAnimationController = [nsPopoverAnimationControllerClass popoverAnimationControllerWithPopover:_previewPopover.get()];
-        [_popoverAnimationController setPreferredEdge:NSMaxYEdge];
-        [_popoverAnimationController setAnchorView:_wkView];
-        [_popoverAnimationController setPositioningRect:_popoverOriginRect];
-
-        [_popoverAnimationController recognizerWillBeginAnimation:_recognizer];
-
-        if (_didCompleteAnimation)
-            [_popoverAnimationController recognizerDidCompleteAnimation:_recognizer];
-        else
-            [_popoverAnimationController recognizerDidUpdateAnimation:_recognizer];
-    }
-}
-
-static bool targetSizeFitsInAvailableSpace(NSSize targetSize, NSSize availableSpace)
-{
-    return targetSize.width &lt;= availableSpace.width &amp;&amp; targetSize.height &lt;= availableSpace.height;
-}
-
-- (NSSize)largestPopoverSize
-{
-    NSSize screenSize = _wkView.window.screen.frame.size;
-
-    if (screenSize.width == 1280 &amp;&amp; screenSize.height == 800)
-        return NSMakeSize(1240, 674);
-
-    if (screenSize.width == 1366 &amp;&amp; screenSize.height == 768)
-        return NSMakeSize(1264, 642);
-
-    if (screenSize.width == 1440 &amp;&amp; screenSize.height == 900)
-        return NSMakeSize(1264, 760);
-
-    if (screenSize.width == 1680 &amp;&amp; screenSize.height == 1050)
-        return NSMakeSize(1324, 910);
-
-    return NSMakeSize(1324, 940);
-}
-
-- (NSSize)_targetSizeForPagePreview
-{
-    NSRect wkViewBounds = _wkView.bounds;
-    return NSMakeSize(NSWidth(wkViewBounds) * preferredPopoverToViewScale, NSHeight(wkViewBounds) * preferredPopoverToViewScale);
-}
-
-- (NSSize)_effectivePaddingWithPreviewPadding:(NSSize)previewPadding
-{
-    static const NSSize screenPadding = NSMakeSize(40, 40);
-    NSSize effectivePadding = NSMakeSize(screenPadding.width + previewPadding.width, screenPadding.height + previewPadding.height);
-    return effectivePadding;
-}
-
-- (NSSize)_maxSpaceAvailableOnYEdgeForOriginRect:(NSRect)originRect withScreenRect:(NSRect)screenRect previewPadding:(NSSize)previewPadding
-{
-    CGFloat availableSpaceAbove = NSMaxY(screenRect) - NSMaxY(originRect);
-    CGFloat availableSpaceBelow = NSMinY(originRect) - NSMinY(screenRect);
-    NSSize effectivePadding = [self _effectivePaddingWithPreviewPadding:previewPadding];
-    CGFloat maxAvailableVerticalSpace = fmax(availableSpaceAbove, availableSpaceBelow) - effectivePadding.height;
-    return NSMakeSize(screenRect.size.width - effectivePadding.height, maxAvailableVerticalSpace);
-}
-
-- (NSSize)_maxSpaceAvailableOnXEdgeForOriginRect:(NSRect)originRect withScreenRect:(NSRect)screenRect previewPadding:(NSSize)previewPadding
-{
-    CGFloat availableSpaceAtLeft = NSMinX(originRect) - NSMinX(screenRect);
-    CGFloat availableSpaceAtRight = NSMaxX(screenRect) - NSMaxX(originRect);
-    NSSize effectivePadding = [self _effectivePaddingWithPreviewPadding:previewPadding];
-    CGFloat maxAvailableHorizontalSpace = fmax(availableSpaceAtLeft, availableSpaceAtRight) - effectivePadding.width;
-    return NSMakeSize(maxAvailableHorizontalSpace, screenRect.size.height - effectivePadding.width);
-}
-
-- (NSSize)_preferredPopoverSizeWithPreviewPadding:(NSSize)previewPadding forTargetSize:(NSSize)targetSize
-{
-    static const NSSize smallestPopoverSize = NSMakeSize(500, 500);
-
-    NSWindow *window = _wkView.window;
-    NSRect originScreenRect = [window convertRectToScreen:[_wkView convertRect:_popoverOriginRect toView:nil]];
-    NSRect screenFrame = window.screen.visibleFrame;
-
-    NSSize largestPopoverSize = [self largestPopoverSize];
-
-    NSSize maxSpaceAvailableOnYEdge = [self _maxSpaceAvailableOnYEdgeForOriginRect:originScreenRect withScreenRect:screenFrame previewPadding:previewPadding];
-    if (targetSizeFitsInAvailableSpace(targetSize, maxSpaceAvailableOnYEdge) &amp;&amp; targetSizeFitsInAvailableSpace(targetSize, largestPopoverSize))
-        return targetSize;
-
-    NSSize maxSpaceAvailableOnXEdge = [self _maxSpaceAvailableOnXEdgeForOriginRect:originScreenRect withScreenRect:screenFrame previewPadding:previewPadding];
-    if (targetSizeFitsInAvailableSpace(targetSize, maxSpaceAvailableOnXEdge) &amp;&amp; targetSizeFitsInAvailableSpace(targetSize, largestPopoverSize))
-        return targetSize;
-
-    // If the originScreenRect is very large, then it's possible that we have negative available space once the screen padding
-    // was taken into account. If that is the case, give up not on not trying to obscure the origin URL.
-    if ((maxSpaceAvailableOnYEdge.width &lt; 0 || maxSpaceAvailableOnYEdge.height &lt; 0) &amp;&amp; (maxSpaceAvailableOnXEdge.width &lt; 0 || maxSpaceAvailableOnXEdge.height &lt; 0)) {
-        _popoverOriginRect.origin = _eventLocationInView;
-        _popoverOriginRect.size = NSMakeSize(1, 1);
-        originScreenRect = [window convertRectToScreen:[_wkView convertRect:_popoverOriginRect toView:nil]];
-        maxSpaceAvailableOnYEdge = [self _maxSpaceAvailableOnYEdgeForOriginRect:originScreenRect withScreenRect:screenFrame previewPadding:previewPadding];
-        maxSpaceAvailableOnXEdge = [self _maxSpaceAvailableOnXEdgeForOriginRect:originScreenRect withScreenRect:screenFrame previewPadding:previewPadding];
-    }
-
-    // Adjust the maximum space available if it is larger than the largest popover size.
-    if (maxSpaceAvailableOnYEdge.width &gt; largestPopoverSize.width &amp;&amp; maxSpaceAvailableOnYEdge.height &gt; largestPopoverSize.height)
-        maxSpaceAvailableOnYEdge = largestPopoverSize;
-    if (maxSpaceAvailableOnXEdge.width &gt; largestPopoverSize.width &amp;&amp; maxSpaceAvailableOnXEdge.height &gt; largestPopoverSize.height)
-        maxSpaceAvailableOnXEdge = largestPopoverSize;
-
-    // If the target size doesn't fit anywhere, we'll find the largest rect that does fit that also maintains the original view's aspect ratio.
-    CGFloat aspectRatio = targetSize.width / targetSize.height;
-    FloatRect maxVerticalTargetSizePreservingAspectRatioRect = largestRectWithAspectRatioInsideRect(aspectRatio, FloatRect(FloatPoint(), FloatSize(maxSpaceAvailableOnYEdge)));
-    FloatRect maxHorizontalTargetSizePreservingAspectRatioRect = largestRectWithAspectRatioInsideRect(aspectRatio, FloatRect(FloatPoint(), FloatSize(maxSpaceAvailableOnXEdge)));
-
-    NSSize maxVerticalTargetSizePreservingAspectRatio = NSMakeSize(maxVerticalTargetSizePreservingAspectRatioRect.width(), maxVerticalTargetSizePreservingAspectRatioRect.height());
-    NSSize maxHortizontalTargetSizePreservingAspectRatio = NSMakeSize(maxHorizontalTargetSizePreservingAspectRatioRect.width(), maxHorizontalTargetSizePreservingAspectRatioRect.height());
-
-    NSSize computedTargetSize;
-    if ((maxVerticalTargetSizePreservingAspectRatio.width * maxVerticalTargetSizePreservingAspectRatio.height) &gt; (maxHortizontalTargetSizePreservingAspectRatio.width * maxHortizontalTargetSizePreservingAspectRatio.height))
-        computedTargetSize = maxVerticalTargetSizePreservingAspectRatio;
-    else
-        computedTargetSize = maxHortizontalTargetSizePreservingAspectRatio;
-
-    // Now make sure what we've computed isn't too small.
-    if (computedTargetSize.width &lt; smallestPopoverSize.width &amp;&amp; computedTargetSize.height &lt; smallestPopoverSize.height) {
-        float limitWidth = smallestPopoverSize.width &gt; computedTargetSize.width ? smallestPopoverSize.width : computedTargetSize.width;
-        float limitHeight = smallestPopoverSize.height &gt; computedTargetSize.height ? smallestPopoverSize.height : computedTargetSize.height;
-        FloatRect targetRectLargerThanMinSize = largestRectWithAspectRatioInsideRect(aspectRatio, FloatRect(0, 0, limitWidth, limitHeight));
-        computedTargetSize = NSMakeSize(targetRectLargerThanMinSize.size().width(), targetRectLargerThanMinSize.size().height());
-
-        // If our orignal computedTargetSize was so small that we had to get here and make a new computedTargetSize that is
-        // larger than the minimum, then the elementBoundingBox of the _hitTestResult is probably huge. So we should use
-        // the event origin as the popover origin in this case and not worry about obscuring the _hitTestResult.
-        _popoverOriginRect.origin = _eventLocationInView;
-        _popoverOriginRect.size = NSMakeSize(1, 1);
-    }
-    
-    return computedTargetSize;
-}
-
-- (void)_previewWatchdogTimerFired:(NSTimer *)timer
-{
-    [self _showPreview];
-    _previewWatchdogTimer = nil;
-}
-
-#pragma mark NSImmediateActionAnimationController
-
-- (void)recognizerWillBeginAnimation:(NSImmediateActionGestureRecognizer *)recognizer
-{
-    _recognizer = recognizer;
-    _didCompleteAnimation = false;
-    [self _createPreviewPopover];
-
-    if ([self.class _shouldImmediatelyShowPreview])
-        [self _showPreview];
-    else {
-        _shouldShowPreviewWhenLoaded = true;
-        _previewWatchdogTimer = [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(_previewWatchdogTimerFired:) userInfo:nil repeats:NO];
-    }
-}
-
-- (void)recognizerDidUpdateAnimation:(NSImmediateActionGestureRecognizer *)recognizer
-{
-    [_popoverAnimationController recognizerDidUpdateAnimation:recognizer];
-}
-
-- (void)recognizerDidCancelAnimation:(NSImmediateActionGestureRecognizer *)recognizer
-{
-    [self _hidePreview];
-
-    [_popoverAnimationController recognizerDidCancelAnimation:recognizer];
-}
-
-- (void)recognizerDidCompleteAnimation:(NSImmediateActionGestureRecognizer *)recognizer
-{
-    _didCompleteAnimation = true;
-    [_popoverAnimationController recognizerDidCompleteAnimation:recognizer];
-}
-
-- (void)recognizerDidDismissAnimation:(NSImmediateActionGestureRecognizer *)recognizer
-{
-    [self _hidePreview];
-
-    [_popoverAnimationController recognizerDidDismissAnimation:recognizer];
-}
-
-#pragma mark WKPagePreviewViewControllerDelegate
-
-- (NSView *)pagePreviewViewController:(WKPagePreviewViewController *)pagePreviewViewController viewForPreviewingURL:(NSURL *)url initialFrameSize:(NSSize)initialFrameSize
-{
-    return [_wkView _viewForPreviewingURL:url initialFrameSize:initialFrameSize];
-}
-
-- (NSString *)pagePreviewViewController:(WKPagePreviewViewController *)pagePreviewViewController titleForPreviewOfURL:(NSURL *)url
-{
-    return [_wkView _titleForPreviewOfURL:url];
-}
-
-- (void)pagePreviewViewControllerWasClicked:(WKPagePreviewViewController *)pagePreviewViewController
-{
-    if (NSURL *url = pagePreviewViewController-&gt;_url.get())
-        [_wkView _handleClickInPreviewView:pagePreviewViewController-&gt;_previewView.get() URL:url];
-}
-
-#pragma mark NSPopoverDelegate
-
-- (void)popoverWillClose:(NSNotification *)notification
-{
-    [self _hidePreview];
-}
-
-@end
-
-
-#endif // PLATFORM(MAC) &amp;&amp; __MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 101000
</del></span></pre></div>
<a id="trunkSourceWebKit2WebKit2xcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj (177701 => 177702)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj        2014-12-23 23:58:27 UTC (rev 177701)
+++ trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj        2014-12-24 00:13:03 UTC (rev 177702)
</span><span class="lines">@@ -566,8 +566,6 @@
</span><span class="cx">                 29D55DF2161BF9F10031A2E3 /* WebPageGroupProxyMessages.h in Headers */ = {isa = PBXBuildFile; fileRef = 29D55DF0161BF9F10031A2E3 /* WebPageGroupProxyMessages.h */; };
</span><span class="cx">                 2D0730A219F9C7DA00E9D9C4 /* WKActionMenuController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 2D0730A019F9C7DA00E9D9C4 /* WKActionMenuController.mm */; };
</span><span class="cx">                 2D0730A319F9C7DA00E9D9C4 /* WKActionMenuController.h in Headers */ = {isa = PBXBuildFile; fileRef = 2D0730A119F9C7DA00E9D9C4 /* WKActionMenuController.h */; };
</span><del>-                2D0B8ACA1A42A39C006D7FC8 /* WKPreviewPopoverAnimationController.h in Headers */ = {isa = PBXBuildFile; fileRef = 2D0B8AC81A42A39C006D7FC8 /* WKPreviewPopoverAnimationController.h */; };
-                2D0B8ACB1A42A39C006D7FC8 /* WKPreviewPopoverAnimationController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 2D0B8AC91A42A39C006D7FC8 /* WKPreviewPopoverAnimationController.mm */; };
</del><span class="cx">                 2D125C5E1857EA05003BA3CB /* ViewGestureController.h in Headers */ = {isa = PBXBuildFile; fileRef = 2D125C5C1857EA05003BA3CB /* ViewGestureController.h */; };
</span><span class="cx">                 2D125C5F1857EA05003BA3CB /* ViewGestureControllerMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 2D125C5D1857EA05003BA3CB /* ViewGestureControllerMac.mm */; };
</span><span class="cx">                 2D1B5D5D185869C8006C6596 /* ViewGestureControllerMessageReceiver.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2D1B5D5B185869C8006C6596 /* ViewGestureControllerMessageReceiver.cpp */; };
</span><span class="lines">@@ -640,8 +638,6 @@
</span><span class="cx">                 2DDF731618E95060004F5A66 /* RemoteLayerBackingStoreCollection.mm in Sources */ = {isa = PBXBuildFile; fileRef = 2DDF731418E95060004F5A66 /* RemoteLayerBackingStoreCollection.mm */; };
</span><span class="cx">                 2DE6943D18BD2A68005C15E5 /* SmartMagnificationControllerMessageReceiver.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2DE6943B18BD2A68005C15E5 /* SmartMagnificationControllerMessageReceiver.cpp */; };
</span><span class="cx">                 2DE6943E18BD2A68005C15E5 /* SmartMagnificationControllerMessages.h in Headers */ = {isa = PBXBuildFile; fileRef = 2DE6943C18BD2A68005C15E5 /* SmartMagnificationControllerMessages.h */; };
</span><del>-                2DEB34711A3987AB0030E2BA /* WKPagePreviewViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 2DEB346F1A3987AB0030E2BA /* WKPagePreviewViewController.h */; };
-                2DEB34721A3987AB0030E2BA /* WKPagePreviewViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 2DEB34701A3987AB0030E2BA /* WKPagePreviewViewController.mm */; };
</del><span class="cx">                 2DF9593B18A42412009785A1 /* ViewGestureControllerIOS.mm in Sources */ = {isa = PBXBuildFile; fileRef = 2DF9593418A42412009785A1 /* ViewGestureControllerIOS.mm */; };
</span><span class="cx">                 31099973146C75A20029DEB9 /* WebNotificationClient.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 31099971146C759B0029DEB9 /* WebNotificationClient.cpp */; };
</span><span class="cx">                 310999C7146C9E3D0029DEB9 /* WebNotificationClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 31099968146C71F50029DEB9 /* WebNotificationClient.h */; };
</span><span class="lines">@@ -2598,8 +2594,6 @@
</span><span class="cx">                 29D55DF0161BF9F10031A2E3 /* WebPageGroupProxyMessages.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebPageGroupProxyMessages.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 2D0730A019F9C7DA00E9D9C4 /* WKActionMenuController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WKActionMenuController.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 2D0730A119F9C7DA00E9D9C4 /* WKActionMenuController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKActionMenuController.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><del>-                2D0B8AC81A42A39C006D7FC8 /* WKPreviewPopoverAnimationController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKPreviewPopoverAnimationController.h; sourceTree = &quot;&lt;group&gt;&quot;; };
-                2D0B8AC91A42A39C006D7FC8 /* WKPreviewPopoverAnimationController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WKPreviewPopoverAnimationController.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
</del><span class="cx">                 2D125C5C1857EA05003BA3CB /* ViewGestureController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ViewGestureController.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 2D125C5D1857EA05003BA3CB /* ViewGestureControllerMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ViewGestureControllerMac.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 2D1B5D5A18586599006C6596 /* ViewGestureController.messages.in */ = {isa = PBXFileReference; lastKnownFileType = text; path = ViewGestureController.messages.in; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -2685,8 +2679,6 @@
</span><span class="cx">                 2DDF731418E95060004F5A66 /* RemoteLayerBackingStoreCollection.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RemoteLayerBackingStoreCollection.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 2DE6943B18BD2A68005C15E5 /* SmartMagnificationControllerMessageReceiver.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SmartMagnificationControllerMessageReceiver.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 2DE6943C18BD2A68005C15E5 /* SmartMagnificationControllerMessages.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SmartMagnificationControllerMessages.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><del>-                2DEB346F1A3987AB0030E2BA /* WKPagePreviewViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKPagePreviewViewController.h; sourceTree = &quot;&lt;group&gt;&quot;; };
-                2DEB34701A3987AB0030E2BA /* WKPagePreviewViewController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WKPagePreviewViewController.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
</del><span class="cx">                 2DF9593418A42412009785A1 /* ViewGestureControllerIOS.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = ViewGestureControllerIOS.mm; path = ios/ViewGestureControllerIOS.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 31099968146C71F50029DEB9 /* WebNotificationClient.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WebNotificationClient.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 31099971146C759B0029DEB9 /* WebNotificationClient.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WebNotificationClient.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -6730,10 +6722,6 @@
</span><span class="cx">                                 CDCA85C6132ABA4E00E961DF /* WKFullScreenWindowController.mm */,
</span><span class="cx">                                 9321D5851A38EE3C008052BE /* WKImmediateActionController.h */,
</span><span class="cx">                                 9321D5871A38EE74008052BE /* WKImmediateActionController.mm */,
</span><del>-                                2DEB346F1A3987AB0030E2BA /* WKPagePreviewViewController.h */,
-                                2DEB34701A3987AB0030E2BA /* WKPagePreviewViewController.mm */,
-                                2D0B8AC81A42A39C006D7FC8 /* WKPreviewPopoverAnimationController.h */,
-                                2D0B8AC91A42A39C006D7FC8 /* WKPreviewPopoverAnimationController.mm */,
</del><span class="cx">                                 0FCB4E5C18BBE3D9000FCFC9 /* WKPrintingView.h */,
</span><span class="cx">                                 0FCB4E5D18BBE3D9000FCFC9 /* WKPrintingView.mm */,
</span><span class="cx">                                 0FCB4E5E18BBE3D9000FCFC9 /* WKTextInputWindowController.h */,
</span><span class="lines">@@ -7911,7 +7899,6 @@
</span><span class="cx">                                 93BDEB01171DD7AF00BFEE1B /* WKPageLoadTypesPrivate.h in Headers */,
</span><span class="cx">                                 1AB8A1EE18400ACB00E9AE69 /* WKPagePolicyClient.h in Headers */,
</span><span class="cx">                                 373CEAD81859553F008C363D /* WKPagePolicyClientInternal.h in Headers */,
</span><del>-                                2DEB34711A3987AB0030E2BA /* WKPagePreviewViewController.h in Headers */,
</del><span class="cx">                                 BC177465118B9FF4007D9E9A /* WKPagePrivate.h in Headers */,
</span><span class="cx">                                 BCE17B7E1381F1170012A641 /* WKPagePrivateMac.h in Headers */,
</span><span class="cx">                                 1AB8A1F218400B6200E9AE69 /* WKPageUIClient.h in Headers */,
</span><span class="lines">@@ -7925,7 +7912,6 @@
</span><span class="cx">                                 7C8EB11718DB6A19007917C2 /* WKPreferencesPrivate.h in Headers */,
</span><span class="cx">                                 BCD597D0112B56AC00EC8C23 /* WKPreferencesRef.h in Headers */,
</span><span class="cx">                                 762B748D120BC75C00819339 /* WKPreferencesRefPrivate.h in Headers */,
</span><del>-                                2D0B8ACA1A42A39C006D7FC8 /* WKPreviewPopoverAnimationController.h in Headers */,
</del><span class="cx">                                 0FCB4E6618BBE3D9000FCFC9 /* WKPrintingView.h in Headers */,
</span><span class="cx">                                 BCBAACEB145225E30053F82F /* WKProcessGroup.h in Headers */,
</span><span class="cx">                                 BCBAACED145225E30053F82F /* WKProcessGroupPrivate.h in Headers */,
</span><span class="lines">@@ -9591,7 +9577,6 @@
</span><span class="cx">                                 755422BD18062BB20046F6A8 /* WKOriginDataManager.cpp in Sources */,
</span><span class="cx">                                 BCD597D6112B56DC00EC8C23 /* WKPage.cpp in Sources */,
</span><span class="cx">                                 BC7B633812A45ABA00D174A4 /* WKPageGroup.cpp in Sources */,
</span><del>-                                2DEB34721A3987AB0030E2BA /* WKPagePreviewViewController.mm in Sources */,
</del><span class="cx">                                 BCE17B7D1381F1170012A641 /* WKPagePrivateMac.cpp in Sources */,
</span><span class="cx">                                 2D6AB542192B1C4A003A9FD1 /* WKPDFPageNumberIndicator.mm in Sources */,
</span><span class="cx">                                 2DA1E4FF18C02B6A00DBC929 /* WKPDFView.mm in Sources */,
</span><span class="lines">@@ -9599,7 +9584,6 @@
</span><span class="cx">                                 1AC86FF3130B46D3002C1257 /* WKPluginSiteDataManager.cpp in Sources */,
</span><span class="cx">                                 BCD597D1112B56AC00EC8C23 /* WKPreferences.cpp in Sources */,
</span><span class="cx">                                 1AFDD3191891CA1200153970 /* WKPreferences.mm in Sources */,
</span><del>-                                2D0B8ACB1A42A39C006D7FC8 /* WKPreviewPopoverAnimationController.mm in Sources */,
</del><span class="cx">                                 0FCB4E6718BBE3D9000FCFC9 /* WKPrintingView.mm in Sources */,
</span><span class="cx">                                 BCBAACEC145225E30053F82F /* WKProcessGroup.mm in Sources */,
</span><span class="cx">                                 1A158419189044F50017616C /* WKProcessPool.mm in Sources */,
</span></span></pre>
</div>
</div>

</body>
</html>