⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 176166 in webkit


Ignore:
Timestamp:
Nov 16, 2014, 5:57:26 PM (12 years ago)
Author:
timothy_horton@apple.com
Message:

Use TextIndicator instead of the built in Lookup highlight
https://bugs.webkit.org/show_bug.cgi?id=138775
<rdar://problem/18953982>

Follow-up to r176164.

  • UIProcess/API/mac/WKView.mm:

(-[WKView dealloc]):
(-[WKView initWithFrame:context:configuration:webView:]):

  • UIProcess/mac/PageClientImpl.mm:

(WebKit::PageClientImpl::didPerformDictionaryLookup):
Include the softlinking macros directly in the files they're used
in, as they're supposed to be used.

  • platform/spi/mac/LookupSPI.h:

(WebCore::canDisableLookupIndicator): Deleted.
Remove canDisableLookupIndicator.

Location:
trunk/Source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r176165 r176166  
     12014-11-16  Tim Horton  <timothy_horton@apple.com>
     2
     3        Use TextIndicator instead of the built in Lookup highlight
     4        https://bugs.webkit.org/show_bug.cgi?id=138775
     5        <rdar://problem/18953982>
     6
     7        Follow-up to r176164.
     8
     9        * platform/spi/mac/LookupSPI.h:
     10        (WebCore::canDisableLookupIndicator): Deleted.
     11        Remove canDisableLookupIndicator.
     12
    1132014-11-16  Chris Dumez  <cdumez@apple.com>
    214
  • trunk/Source/WebCore/platform/spi/mac/LookupSPI.h

    r176164 r176166  
    3232SOFT_LINK_CLASS_OPTIONAL(Lookup, LULookupDefinitionModule)
    3333
    34 SOFT_LINK_CONSTANT_MAY_FAIL(Lookup, LUTermOptionDisableSearchTermIndicator, NSString *)
    35 SOFT_LINK_CONSTANT_MAY_FAIL(Lookup, LUNotificationPopoverWillClose, NSString *)
    36 
    37 namespace WebCore {
    38 inline bool canDisableLookupIndicator()
    39 {
    40     return canLoadLUTermOptionDisableSearchTermIndicator() && canLoadLUNotificationPopoverWillClose();
    41 }
    42 };
    43 
    4434#if USE(APPLE_INTERNAL_SDK)
    4535
  • trunk/Source/WebKit2/ChangeLog

    r176164 r176166  
     12014-11-16  Tim Horton  <timothy_horton@apple.com>
     2
     3        Use TextIndicator instead of the built in Lookup highlight
     4        https://bugs.webkit.org/show_bug.cgi?id=138775
     5        <rdar://problem/18953982>
     6
     7        Follow-up to r176164.
     8
     9        * UIProcess/API/mac/WKView.mm:
     10        (-[WKView dealloc]):
     11        (-[WKView initWithFrame:context:configuration:webView:]):
     12        * UIProcess/mac/PageClientImpl.mm:
     13        (WebKit::PageClientImpl::didPerformDictionaryLookup):
     14        Include the softlinking macros directly in the files they're used
     15        in, as they're supposed to be used.
     16
    1172014-11-16  Tim Horton  <timothy_horton@apple.com>
    218
  • trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm

    r176164 r176166  
    143143};
    144144
     145SOFT_LINK_CONSTANT_MAY_FAIL(Lookup, LUNotificationPopoverWillClose, NSString *)
     146
    145147using namespace WebKit;
    146148using namespace WebCore;
     
    327329    [[NSNotificationCenter defaultCenter] removeObserver:self name:NSApplicationWillTerminateNotification object:NSApp];
    328330
    329     if (canDisableLookupIndicator())
     331    if (canLoadLUNotificationPopoverWillClose())
    330332        [[NSNotificationCenter defaultCenter] removeObserver:self name:getLUNotificationPopoverWillClose() object:nil];
    331333
     
    35753577    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_applicationWillTerminate:) name:NSApplicationWillTerminateNotification object:NSApp];
    35763578
    3577     if (canDisableLookupIndicator())
     3579    if (canLoadLUNotificationPopoverWillClose())
    35783580        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_dictionaryLookupPopoverWillClose:) name:getLUNotificationPopoverWillClose() object:nil];
    35793581
  • trunk/Source/WebKit2/UIProcess/mac/PageClientImpl.mm

    r176164 r176166  
    8181#endif
    8282
     83SOFT_LINK_CONSTANT_MAY_FAIL(Lookup, LUTermOptionDisableSearchTermIndicator, NSString *)
     84
    8385using namespace WebCore;
    8486using namespace WebKit;
     
    544546    RetainPtr<NSMutableDictionary> mutableOptions = adoptNS([(NSDictionary *)dictionaryPopupInfo.options.get() mutableCopy]);
    545547
    546     if (canDisableLookupIndicator() && dictionaryPopupInfo.textIndicator.contentImage) {
     548    if (canLoadLUTermOptionDisableSearchTermIndicator() && dictionaryPopupInfo.textIndicator.contentImage) {
    547549        // Run the animations serially because attaching another subwindow breaks the bounce animation.
    548550        // We could consider making the bounce NSAnimationNonblockingThreaded instead, which seems
Note: See TracChangeset for help on using the changeset viewer.