Changeset 126960 in webkit


Ignore:
Timestamp:
Aug 28, 2012 10:54:51 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL] Add support for localization to the Web Inspector
https://bugs.webkit.org/show_bug.cgi?id=92961

Patch by Seokju Kwon <seokju.kwon@samsung.com> on 2012-08-28
Reviewed by Gyuyoung Kim.

Implement InspectorFrontendClientEfl::localizedStringsURL()
to return the URL of the localizedStrings.js.

  • WebCoreSupport/InspectorClientEfl.cpp:

(WebCore::InspectorClientEfl::openInspectorFrontend):
(WebCore::InspectorClientEfl::inspectorFilesPath):
(WebCore::InspectorFrontendClientEfl::localizedStringsURL):

Location:
trunk/Source/WebKit/efl
Files:
2 edited

Legend:

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

    r126926 r126960  
     12012-08-28  Seokju Kwon  <seokju.kwon@samsung.com>
     2
     3        [EFL] Add support for localization to the Web Inspector
     4        https://bugs.webkit.org/show_bug.cgi?id=92961
     5
     6        Reviewed by Gyuyoung Kim.
     7
     8        Implement InspectorFrontendClientEfl::localizedStringsURL()
     9        to return the URL of the localizedStrings.js.
     10
     11        * WebCoreSupport/InspectorClientEfl.cpp:
     12        (WebCore::InspectorClientEfl::openInspectorFrontend):
     13        (WebCore::InspectorClientEfl::inspectorFilesPath):
     14        (WebCore::InspectorFrontendClientEfl::localizedStringsURL):
     15
    1162012-08-28  Sheriff Bot  <webkit.review.bot@gmail.com>
    217
  • trunk/Source/WebKit/efl/WebCoreSupport/InspectorClientEfl.cpp

    r123831 r126960  
    9494    m_inspectorView = inspectorView;
    9595
    96     String inspectorUri = inspectorFilesPath();
     96    String inspectorUri = inspectorFilesPath() + "/inspector.html";
    9797    ewk_view_uri_set(m_inspectorView, inspectorUri.utf8().data());
    9898
     
    141141String InspectorClientEfl::inspectorFilesPath()
    142142{
    143     String inspectorFilesPath = makeString("file://", WEB_INSPECTOR_INSTALL_DIR, "/inspector.html");
    144     if (access(inspectorFilesPath.utf8().data(), R_OK)) // On success, zero is returned
    145         inspectorFilesPath = makeString("file://", WEB_INSPECTOR_DIR, "/inspector.html");
     143    String inspectorFilesPath = "file://" + String(WEB_INSPECTOR_INSTALL_DIR);
     144    if (access(inspectorFilesPath.utf8().data(), R_OK))
     145        inspectorFilesPath = "file://" + String(WEB_INSPECTOR_DIR);
    146146
    147147    return inspectorFilesPath;
     
    169169String InspectorFrontendClientEfl::localizedStringsURL()
    170170{
    171     notImplemented();
    172     return String();
     171    return m_inspectorClient->inspectorFilesPath() + "/localizedStrings.js";
    173172}
    174173
Note: See TracChangeset for help on using the changeset viewer.