Changeset 109646 in webkit


Ignore:
Timestamp:
Mar 2, 2012 6:41:36 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[BlackBerry] Expose WebInspector state to client and clean up WebSettings
https://bugs.webkit.org/show_bug.cgi?id=80177

Patch by Mike Fenton <mifenton@rim.com> on 2012-03-02
Reviewed by Antonio Gomes.

Expose the Web Inspector state to WebPage client's and
re-order initialization of WebSettings to be alphabetical
matching their definitions.

  • Api/WebPage.cpp:

(BlackBerry::WebKit::WebPage::isWebInspectorEnabled):

  • Api/WebPage.h:
  • Api/WebSettings.cpp:

(BlackBerry::WebKit::WebSettings::standardSettings):

Location:
trunk/Source/WebKit/blackberry
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/blackberry/Api/WebPage.cpp

    r109592 r109646  
    50255025}
    50265026
     5027bool WebPage::isWebInspectorEnabled()
     5028{
     5029    return d->m_page->settings()->developerExtrasEnabled();
     5030}
     5031
    50275032void WebPage::enablePasswordEcho()
    50285033{
  • trunk/Source/WebKit/blackberry/Api/WebPage.h

    r109150 r109646  
    301301    void enableWebInspector();
    302302    void disableWebInspector();
     303    bool isWebInspectorEnabled();
    303304    void enablePasswordEcho();
    304305    void disablePasswordEcho();
  • trunk/Source/WebKit/blackberry/Api/WebSettings.cpp

    r109238 r109646  
    5353DEFINE_STATIC_LOCAL(String, BlackBerryViewportWidth, ("BlackBerryViewportWidth"));
    5454DEFINE_STATIC_LOCAL(String, BlackBerryZoomToFitOnLoadEnabled, ("BlackBerryZoomToFitOnLoadEnabled"));
     55DEFINE_STATIC_LOCAL(String, SpatialNavigationEnabled, ("SpatialNavigationEnabled"));
    5556DEFINE_STATIC_LOCAL(String, WebKitDatabasePath, ("WebKitDatabasePath"));
    5657DEFINE_STATIC_LOCAL(String, WebKitDatabasesEnabled, ("WebKitDatabasesEnabled"));
     
    8384DEFINE_STATIC_LOCAL(String, WebKitWebSocketsEnabled, ("WebKitWebSocketsEnabled"));
    8485DEFINE_STATIC_LOCAL(String, WebKitXSSAuditorEnabled, ("WebKitXSSAuditorEnabled"));
    85 DEFINE_STATIC_LOCAL(String, SpatialNavigationEnabled, ("SpatialNavigationEnabled"));
    8686
    8787// FIXME: We should consider moving all the mime type code into its own object.
     
    216216    settings->m_private->setTextReflowMode(BlackBerryTextReflowMode, TextReflowDisabled);
    217217
     218    settings->m_private->setBoolean(BlackBerryUseWebKitCache, true);
    218219    settings->m_private->setBoolean(BlackBerryUserScalableEnabled, true);
    219     settings->m_private->setBoolean(BlackBerryUseWebKitCache, true);
    220220    settings->m_private->setBoolean(BlackBerryZoomToFitOnLoadEnabled, true);
     221
    221222    settings->m_private->setInteger(WebKitDefaultFontSize, 16);
    222223    settings->m_private->setInteger(WebKitDefaultFixedFontSize, 13);
    223     settings->m_private->setInteger(WebKitMinimumFontSize, 8);
    224224    settings->m_private->setString(WebKitDefaultTextEncodingName, "iso-8859-1");
     225    settings->m_private->setBoolean(WebKitDownloadableBinaryFontsEnabled, true);
    225226    settings->m_private->setInteger(WebKitFirstScheduledLayoutDelay, 250); // Match Document::cLayoutScheduleThreshold.
     227    settings->m_private->setString(WebKitFixedFontFamily, "Courier New");
    226228    settings->m_private->setBoolean(WebKitJavaScriptEnabled, true);
    227229    settings->m_private->setBoolean(WebKitLoadsImagesAutomatically, true);
    228     settings->m_private->setBoolean(WebKitDownloadableBinaryFontsEnabled, true);
    229230    settings->m_private->setUnsignedLongLong(WebKitLocalStorageQuota, 5 * 1024 * 1024);
    230231    settings->m_private->setInteger(WebKitMaximumPagesInCache, 0);
    231     settings->m_private->setBoolean(WebKitWebSocketsEnabled, true);
    232     settings->m_private->setString(WebKitFixedFontFamily, "Courier New");
     232    settings->m_private->setInteger(WebKitMinimumFontSize, 8);
    233233    settings->m_private->setString(WebKitSansSeriffFontFamily, "Arial");
    234234    settings->m_private->setString(WebKitSeriffFontFamily, "Times New Roman");
    235235    settings->m_private->setString(WebKitStandardFontFamily, "Times New Roman");
    236     settings->m_private->setBoolean(SpatialNavigationEnabled, false);
     236    settings->m_private->setBoolean(WebKitWebSocketsEnabled, true);
    237237
    238238    return settings;
  • trunk/Source/WebKit/blackberry/ChangeLog

    r109638 r109646  
     12012-03-02  Mike Fenton  <mifenton@rim.com>
     2
     3        [BlackBerry] Expose WebInspector state to client and clean up WebSettings
     4        https://bugs.webkit.org/show_bug.cgi?id=80177
     5
     6        Reviewed by Antonio Gomes.
     7
     8        Expose the Web Inspector state to WebPage client's and
     9        re-order initialization of WebSettings to be alphabetical
     10        matching their definitions.
     11
     12        * Api/WebPage.cpp:
     13        (BlackBerry::WebKit::WebPage::isWebInspectorEnabled):
     14        * Api/WebPage.h:
     15        * Api/WebSettings.cpp:
     16        (BlackBerry::WebKit::WebSettings::standardSettings):
     17
    1182012-03-02  Arvid Nilsson  <anilsson@rim.com>
    219
Note: See TracChangeset for help on using the changeset viewer.