Changeset 58876 in webkit


Ignore:
Timestamp:
May 6, 2010 6:00:54 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-05-06 Simon Hausmann <simon.hausmann@nokia.com>

Reviewed by Kenneth Rohde Christiansen.

[Qt] Replace public inspector url with private property for QtLauncher
https://bugs.webkit.org/show_bug.cgi?id=35340

Replace the public API with a private dynamic property until this feature
is ready.

  • Api/qwebsettings.cpp:
  • Api/qwebsettings.h:
  • WebCoreSupport/InspectorClientQt.cpp: (WebCore::InspectorClientQt::openInspectorFrontend):
  • symbian/bwins/QtWebKitu.def:
  • symbian/eabi/QtWebKitu.def:

2010-05-06 Simon Hausmann <simon.hausmann@nokia.com>

Reviewed by Kenneth Rohde Christiansen.

[Qt] Replace public inspector url with private property for QtLauncher
https://bugs.webkit.org/show_bug.cgi?id=35340

Replace the public API with a private dynamic property until this feature
is ready.

  • QtLauncher/main.cpp: (LauncherWindow::init):
Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/qt/Api/qwebsettings.cpp

    r58703 r58876  
    7373    QString offlineWebApplicationCachePath;
    7474    qint64 offlineStorageDefaultQuota;
    75     QUrl inspectorLocation;
    7675
    7776    void apply();
     
    10051004
    10061005/*!
    1007     \since 4.7
    1008 
    1009     Specifies the \a location of a frontend to load with each web page when using Web Inspector.
    1010 
    1011     \sa inspectorUrl()
    1012 */
    1013 void QWebSettings::setInspectorUrl(const QUrl& location)
    1014 {
    1015     d->inspectorLocation = location;
    1016     d->apply();
    1017 }
    1018 
    1019 /*!
    1020     \since 4.7
    1021 
    1022     Returns the location of the Web Inspector frontend.
    1023 
    1024     \sa setInspectorUrl()
    1025 */
    1026 QUrl QWebSettings::inspectorUrl() const
    1027 {
    1028     return d->inspectorLocation;
    1029 }
    1030 
    1031 /*!
    10321006    \since 4.6
    10331007    \relates QWebSettings
  • trunk/WebKit/qt/Api/qwebsettings.h

    r58754 r58876  
    139139    QString localStoragePath() const;
    140140
    141     void setInspectorUrl(const QUrl &location);
    142     QUrl inspectorUrl() const;
    143 
    144141    static void clearMemoryCaches();
    145142
  • trunk/WebKit/qt/ChangeLog

    r58764 r58876  
     12010-05-06  Simon Hausmann  <simon.hausmann@nokia.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [Qt] Replace public inspector url with private property for QtLauncher
     6        https://bugs.webkit.org/show_bug.cgi?id=35340
     7
     8        Replace the public API with a private dynamic property until this feature
     9        is ready.
     10
     11        * Api/qwebsettings.cpp:
     12        * Api/qwebsettings.h:
     13        * WebCoreSupport/InspectorClientQt.cpp:
     14        (WebCore::InspectorClientQt::openInspectorFrontend):
     15        * symbian/bwins/QtWebKitu.def:
     16        * symbian/eabi/QtWebKitu.def:
     17
    1182010-05-04  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
    219
  • trunk/WebKit/qt/WebCoreSupport/InspectorClientQt.cpp

    r57281 r58876  
    8989    inspectorView->setPage(inspectorPage);
    9090
    91     QUrl inspectorUrl = m_inspectedWebPage->settings()->inspectorUrl();
     91    QWebInspector* inspector = m_inspectedWebPage->d->getOrCreateInspector();
     92    QUrl inspectorUrl = inspector->property("_q_inspectorUrl").toUrl();
    9293    if (!inspectorUrl.isValid())
    9394        inspectorUrl = QUrl("qrc:/webkit/inspector/inspector.html");
    9495    inspectorView->page()->mainFrame()->load(inspectorUrl);
    9596    m_inspectedWebPage->d->inspectorFrontend = inspectorView;
    96     m_inspectedWebPage->d->getOrCreateInspector()->d->setFrontend(inspectorView);
     97    inspector->d->setFrontend(inspectorView);
    9798
    9899    inspectorView->page()->d->page->inspectorController()->setInspectorFrontendClient(new InspectorFrontendClientQt(m_inspectedWebPage, inspectorView));
  • trunk/WebKit/qt/symbian/bwins/QtWebKitu.def

    r58391 r58876  
    626626        ?qtwebkit_webframe_scrollRecursively@@YA_NPAVQWebFrame@@HH@Z @ 625 NONAME ABSENT ; bool qtwebkit_webframe_scrollRecursively(class QWebFrame *, int, int)
    627627        ?closeEvent@QWebInspector@@MAEXPAVQCloseEvent@@@Z @ 626 NONAME ; void QWebInspector::closeEvent(class QCloseEvent *)
    628         ?inspectorUrl@QWebSettings@@QBE?AVQUrl@@XZ @ 627 NONAME ; class QUrl QWebSettings::inspectorUrl(void) const
     628        ?inspectorUrl@QWebSettings@@QBE?AVQUrl@@XZ @ 627 NONAME ABSENT ; class QUrl QWebSettings::inspectorUrl(void) const
    629629        ?isTiledBackingStoreFrozen@QGraphicsWebView@@QBE_NXZ @ 628 NONAME ; bool QGraphicsWebView::isTiledBackingStoreFrozen(void) const
    630630        ?pageChanged@QWebFrame@@IAEXXZ @ 629 NONAME ; void QWebFrame::pageChanged(void)
     
    647647        ?resizesToContents@QGraphicsWebView@@QBE_NXZ @ 646 NONAME ; bool QGraphicsWebView::resizesToContents(void) const
    648648        ?scrollToAnchor@QWebFrame@@QAEXABVQString@@@Z @ 647 NONAME ; void QWebFrame::scrollToAnchor(class QString const &)
    649         ?setInspectorUrl@QWebSettings@@QAEXABVQUrl@@@Z @ 648 NONAME ; void QWebSettings::setInspectorUrl(class QUrl const &)
     649        ?setInspectorUrl@QWebSettings@@QAEXABVQUrl@@@Z @ 648 NONAME ABSENT ; void QWebSettings::setInspectorUrl(class QUrl const &)
    650650        ?setResizesToContents@QGraphicsWebView@@QAEX_N@Z @ 649 NONAME ; void QGraphicsWebView::setResizesToContents(bool)
    651651        ?setTiledBackingStoreFrozen@QGraphicsWebView@@QAEX_N@Z @ 650 NONAME ; void QGraphicsWebView::setTiledBackingStoreFrozen(bool)
  • trunk/WebKit/qt/symbian/eabi/QtWebKitu.def

    r57029 r58876  
    713713        _ZN9QWebFrame11pageChangedEv @ 712 NONAME
    714714        _ZN9QWebFrame14scrollToAnchorERK7QString @ 713 NONAME
    715         _ZN12QWebSettings15setInspectorUrlERK4QUrl @ 714 NONAME
     715        _ZN12QWebSettings15setInspectorUrlERK4QUrl @ 714 NONAME ABSENT
    716716        _ZN13QWebInspector10closeEventEP11QCloseEvent @ 715 NONAME
    717717        _ZN16QGraphicsWebView26setTiledBackingStoreFrozenEb @ 716 NONAME
     
    720720        _Z19qt_drt_setMediaTypeP9QWebFrameRK7QString @ 719 NONAME
    721721        _Z26qt_drt_enableCaretBrowsingP8QWebPageb @ 720 NONAME
    722         _ZNK12QWebSettings12inspectorUrlEv @ 721 NONAME
     722        _ZNK12QWebSettings12inspectorUrlEv @ 721 NONAME ABSENT
  • trunk/WebKitTools/ChangeLog

    r58868 r58876  
     12010-05-06  Simon Hausmann  <simon.hausmann@nokia.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [Qt] Replace public inspector url with private property for QtLauncher
     6        https://bugs.webkit.org/show_bug.cgi?id=35340
     7
     8        Replace the public API with a private dynamic property until this feature
     9        is ready.
     10
     11        * QtLauncher/main.cpp:
     12        (LauncherWindow::init):
     13
    1142010-05-05  Joseph Pecoraro  <joepeck@webkit.org>
    215
  • trunk/WebKitTools/QtLauncher/main.cpp

    r57974 r58876  
    238238    connect(this, SIGNAL(enteredFullScreenMode(bool)), this, SLOT(toggleFullScreenMode(bool)));
    239239
     240    m_inspector = new WebInspector(splitter);
    240241    if (!gInspectorUrl.isEmpty())
    241       page()->settings()->setInspectorUrl(gInspectorUrl);
    242 
    243     m_inspector = new WebInspector(splitter);
     242        m_inspector->setProperty("_q_inspectorUrl", gInspectorUrl);
    244243    m_inspector->setPage(page());
    245244    m_inspector->hide();
Note: See TracChangeset for help on using the changeset viewer.