Changeset 205825 in webkit


Ignore:
Timestamp:
Sep 12, 2016 2:42:31 PM (8 years ago)
Author:
commit-queue@webkit.org
Message:

AX: WKWebView for macOS does not allow configuration of tabsToLinks
https://bugs.webkit.org/show_bug.cgi?id=161394

Patch by DAN SAUNDERS <dasau@microsoft.com> on 2016-09-12
Reviewed by Anders Carlsson.

Source/WebKit2:

  • UIProcess/API/Cocoa/WKPreferences.h:
  • UIProcess/API/Cocoa/WKPreferences.mm:

(-[WKPreferences encodeWithCoder:]):
(-[WKPreferences initWithCoder:]):
(-[WKPreferences tabFocusesLinks]):
(-[WKPreferences setTabFocusesLinks:]):

Tools:

  • TestWebKitAPI/Tests/WebKit2Cocoa/Coding.mm:

(TEST):

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r205822 r205825  
     12016-09-12  DAN SAUNDERS  <dasau@microsoft.com>
     2
     3        AX: WKWebView for macOS does not allow configuration of tabsToLinks
     4        https://bugs.webkit.org/show_bug.cgi?id=161394
     5
     6        Reviewed by Anders Carlsson.
     7
     8        * UIProcess/API/Cocoa/WKPreferences.h:
     9        * UIProcess/API/Cocoa/WKPreferences.mm:
     10        (-[WKPreferences encodeWithCoder:]):
     11        (-[WKPreferences initWithCoder:]):
     12        (-[WKPreferences tabFocusesLinks]):
     13        (-[WKPreferences setTabFocusesLinks:]):
     14
    1152016-09-12  Saam Barati  <sbarati@apple.com>
    216
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferences.h

    r202789 r205825  
    6464 */
    6565@property (nonatomic) BOOL plugInsEnabled;
     66
     67/*!
     68 @property tabFocusesLinks
     69 @abstract If tabFocusesLinks is YES, the tab key will focus links and form controls.
     70 The option key temporarily reverses this preference.
     71 */
     72@property (nonatomic) BOOL tabFocusesLinks WK_API_AVAILABLE(macosx(WK_MAC_TBA));
    6673#endif
    6774
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferences.mm

    r204469 r205825  
    6767    [coder encodeBool:self.javaEnabled forKey:@"javaEnabled"];
    6868    [coder encodeBool:self.plugInsEnabled forKey:@"plugInsEnabled"];
     69    [coder encodeBool:self.tabFocusesLinks forKey:@"tabFocusesLinks"];
    6970#endif
    7071}
     
    8283    self.javaEnabled = [coder decodeBoolForKey:@"javaEnabled"];
    8384    self.plugInsEnabled = [coder decodeBoolForKey:@"plugInsEnabled"];
     85    self.tabFocusesLinks = [coder decodeBoolForKey:@"tabFocusesLinks"];
    8486#endif
    8587
     
    139141{
    140142    _preferences->setPluginsEnabled(plugInsEnabled);
     143}
     144
     145- (BOOL)tabFocusesLinks
     146{
     147    return _preferences->tabsToLinks();
     148}
     149
     150- (void)setTabFocusesLinks:(BOOL)tabFocusesLinks
     151{
     152    _preferences->setTabsToLinks(tabFocusesLinks);
    141153}
    142154
  • trunk/Tools/ChangeLog

    r205824 r205825  
     12016-09-12  DAN SAUNDERS  <dasau@microsoft.com>
     2
     3        AX: WKWebView for macOS does not allow configuration of tabsToLinks
     4        https://bugs.webkit.org/show_bug.cgi?id=161394
     5
     6        Reviewed by Anders Carlsson.
     7
     8        * TestWebKitAPI/Tests/WebKit2Cocoa/Coding.mm:
     9        (TEST):
     10
    1112016-09-12  Alex Christensen  <achristensen@webkit.org>
    212
  • trunk/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/Coding.mm

    r200670 r205825  
    5252    [a setJavaEnabled:YES];
    5353    [a setPlugInsEnabled:YES];
     54    [a setTabFocusesLinks:YES];
    5455#endif
    5556
     
    6364    EXPECT_EQ([a javaEnabled], [b javaEnabled]);
    6465    EXPECT_EQ([a plugInsEnabled], [b plugInsEnabled]);
     66    EXPECT_EQ([a tabFocusesLinks], [b tabFocusesLinks]);
    6567#endif
    6668}
Note: See TracChangeset for help on using the changeset viewer.