Changeset 96619 in webkit


Ignore:
Timestamp:
Oct 4, 2011 11:15:42 AM (13 years ago)
Author:
jeffm@apple.com
Message:

WKPreferences should allow control of application chrome mode
https://bugs.webkit.org/show_bug.cgi?id=69344

Reviewed by Dan Bernstein.

  • Shared/WebPreferencesStore.h: Add application chrome mode setting to FOR_EACH_WEBKIT_BOOL_PREFERENCE().
  • UIProcess/API/C/WKPreferences.cpp:

(WKPreferencesSetApplicationChromeModeEnabled): Added.
(WKPreferencesGetApplicationChromeModeEnabled): Added.

  • UIProcess/API/C/WKPreferencesPrivate.h: Added WKPreferencesSetApplicationChromeModeEnabled() and WKPreferencesGetApplicationChromeModeEnabled().
  • WebProcess/WebPage/WebPage.cpp:

(WebKit::WebPage::updatePreferences): Set application chrome mode setting.

Location:
trunk/Source/WebKit2
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r96616 r96619  
     12011-10-04  Jeff Miller  <jeffm@apple.com>
     2
     3        WKPreferences should allow control of application chrome mode
     4        https://bugs.webkit.org/show_bug.cgi?id=69344
     5
     6        Reviewed by Dan Bernstein.
     7
     8        * Shared/WebPreferencesStore.h: Add application chrome mode setting to FOR_EACH_WEBKIT_BOOL_PREFERENCE().
     9
     10        * UIProcess/API/C/WKPreferences.cpp:
     11        (WKPreferencesSetApplicationChromeModeEnabled): Added.
     12        (WKPreferencesGetApplicationChromeModeEnabled): Added.
     13
     14        * UIProcess/API/C/WKPreferencesPrivate.h: Added WKPreferencesSetApplicationChromeModeEnabled() and WKPreferencesGetApplicationChromeModeEnabled().
     15
     16        * WebProcess/WebPage/WebPage.cpp:
     17        (WebKit::WebPage::updatePreferences): Set application chrome mode setting.
     18
    1192011-10-04  Carlos Garcia Campos  <cgarcia@igalia.com>
    220
  • trunk/Source/WebKit2/Shared/WebPreferencesStore.h

    r95901 r96619  
    9595    macro(MockScrollbarsEnabled, mockScrollbarsEnabled, Bool, bool, false) \
    9696    macro(WebAudioEnabled, webAudioEnabled, Bool, bool, false) \
     97    macro(ApplicationChromeModeEnabled, applicationChromeMode, Bool, bool, false) \
    9798    \
    9899
  • trunk/Source/WebKit2/UIProcess/API/C/WKPreferences.cpp

    r95901 r96619  
    632632    return toImpl(preferencesRef)->webAudioEnabled();
    633633}
     634
     635void WKPreferencesSetApplicationChromeModeEnabled(WKPreferencesRef preferencesRef, bool enabled)
     636{
     637    toImpl(preferencesRef)->setApplicationChromeModeEnabled(enabled);
     638}
     639
     640bool WKPreferencesGetApplicationChromeModeEnabled(WKPreferencesRef preferencesRef)
     641{
     642    return toImpl(preferencesRef)->applicationChromeMode();
     643}
  • trunk/Source/WebKit2/UIProcess/API/C/WKPreferencesPrivate.h

    r95901 r96619  
    148148WK_EXPORT void WKPreferencesSetMockScrollbarsEnabled(WKPreferencesRef preferencesRef, bool flag);
    149149WK_EXPORT bool WKPreferencesGetMockScrollbarsEnabled(WKPreferencesRef preferencesRef);
     150   
     151// Defaults to false.
     152WK_EXPORT void WKPreferencesSetApplicationChromeModeEnabled(WKPreferencesRef preferencesRef, bool enabled);
     153WK_EXPORT bool WKPreferencesGetApplicationChromeModeEnabled(WKPreferencesRef preferencesRef);
    150154
    151155#ifdef __cplusplus
  • trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp

    r96439 r96619  
    16831683#endif
    16841684
     1685    settings->setApplicationChromeMode(store.getBoolValueForKey(WebPreferencesKey::applicationChromeModeKey()));
     1686   
    16851687    platformPreferencesDidChange(store);
    16861688}
Note: See TracChangeset for help on using the changeset viewer.