Changeset 207483 in webkit


Ignore:
Timestamp:
Oct 18, 2016 1:30:53 PM (8 years ago)
Author:
Wenson Hsieh
Message:

Showing and hiding candidates list is very distracting after selecting word
https://bugs.webkit.org/show_bug.cgi?id=163609
<rdar://problem/28747712>

Reviewed by Tim Horton.

Introduce WebView hooks for mousedown and mouseup. See radar for more details.

  • WebView/WebHTMLView.mm:

(-[WebHTMLView mouseDown:mouseDown:]):
(-[WebHTMLView mouseUp:mouseUp:]):

  • WebView/WebView.mm:

(-[WebView prepareForMouseDown]):
(-[WebView prepareForMouseUp]):

  • WebView/WebViewInternal.h:
Location:
trunk/Source/WebKit/mac
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/mac/ChangeLog

    r207482 r207483  
     12016-10-18  Wenson Hsieh  <wenson_hsieh@apple.com>
     2
     3        Showing and hiding candidates list is very distracting after selecting word
     4        https://bugs.webkit.org/show_bug.cgi?id=163609
     5        <rdar://problem/28747712>
     6
     7        Reviewed by Tim Horton.
     8
     9        Introduce WebView hooks for mousedown and mouseup. See radar for more details.
     10
     11        * WebView/WebHTMLView.mm:
     12        (-[WebHTMLView mouseDown:mouseDown:]):
     13        (-[WebHTMLView mouseUp:mouseUp:]):
     14        * WebView/WebView.mm:
     15        (-[WebView prepareForMouseDown]):
     16        (-[WebView prepareForMouseUp]):
     17        * WebView/WebViewInternal.h:
     18
    1192016-10-17  Anders Carlsson  <andersca@apple.com>
    220
  • trunk/Source/WebKit/mac/WebView/WebHTMLView.mm

    r207385 r207483  
    45034503#endif
    45044504{
     4505    [[self _webView] prepareForMouseDown];
     4506
    45054507#if !PLATFORM(IOS)
    45064508    // There's a chance that responding to this event will run a nested event loop, and
     
    47224724#endif
    47234725{
     4726    [[self _webView] prepareForMouseUp];
     4727
    47244728#if !PLATFORM(IOS)
    47254729    // There's a chance that responding to this event will run a nested event loop, and
  • trunk/Source/WebKit/mac/WebView/WebView.mm

    r207439 r207483  
    67536753}
    67546754
     6755- (void)prepareForMouseDown
     6756{
     6757}
     6758
     6759- (void)prepareForMouseUp
     6760{
     6761}
     6762
    67556763- (void)showCandidates:(NSArray *)candidates forString:(NSString *)string inRect:(NSRect)rectOfTypedString forSelectedRange:(NSRange)range view:(NSView *)view completionHandler:(void (^)(NSTextCheckingResult *acceptedCandidate))completionBlock
    67566764{
  • trunk/Source/WebKit/mac/WebView/WebViewInternal.h

    r203186 r207483  
    297297
    298298@interface WebView (WebUpdateWebViewAdditions)
     299- (void)prepareForMouseUp;
     300- (void)prepareForMouseDown;
    299301- (void)updateWebViewAdditions;
    300302- (void)webViewAdditionsWillDestroyView;
Note: See TracChangeset for help on using the changeset viewer.