Changeset 108610 in webkit


Ignore:
Timestamp:
Feb 22, 2012 10:26:07 PM (12 years ago)
Author:
haraken@chromium.org
Message:

Enable Geolocation bindings for GObject
https://bugs.webkit.org/show_bug.cgi?id=79293

Reviewed by Adam Barth.

This patch adds "WebCore::" to supplemental method calls.
This will solve the GTK build failure we have observed in the Geolocation API,
and thus this patch enables the Geolocation API.

  • Modules/geolocation/NavigatorGeolocation.idl:
  • bindings/scripts/CodeGeneratorGObject.pm:

(GenerateProperty):
(GenerateFunction):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r108608 r108610  
     12012-02-22  Kentaro Hara  <haraken@chromium.org>
     2
     3        Enable Geolocation bindings for GObject
     4        https://bugs.webkit.org/show_bug.cgi?id=79293
     5
     6        Reviewed by Adam Barth.
     7
     8        This patch adds "WebCore::" to supplemental method calls.
     9        This will solve the GTK build failure we have observed in the Geolocation API,
     10        and thus this patch enables the Geolocation API.
     11
     12        * Modules/geolocation/NavigatorGeolocation.idl:
     13        * bindings/scripts/CodeGeneratorGObject.pm:
     14        (GenerateProperty):
     15        (GenerateFunction):
     16
    1172012-02-22  MORITA Hajime  <morrita@google.com>
    218
  • trunk/Source/WebCore/Modules/geolocation/NavigatorGeolocation.idl

    r108428 r108610  
    2424        Supplemental=Navigator
    2525    ] NavigatorGeolocation {
    26 #if !defined(LANGUAGE_GOBJECT) || !LANGUAGE_GOBJECT
    27         // FIXME: Enable this interface for GOBJECT.
    2826        readonly attribute [V8EnabledAtRuntime] Geolocation geolocation;
    29 #endif
    3027    };
    3128
  • trunk/Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm

    r108428 r108610  
    390390        unshift(@getterArguments, "coreSelf");
    391391        unshift(@setterArguments, "coreSelf");
    392         $getterFunctionName = "${implementedBy}::$getterFunctionName";
    393         $setterFunctionName = "${implementedBy}::$setterFunctionName";
     392        $getterFunctionName = "WebCore::${implementedBy}::$getterFunctionName";
     393        $setterFunctionName = "WebCore::${implementedBy}::$setterFunctionName";
    394394    } else {
    395395        push(@setterArguments, "${convertFunction}(g_value_get_$gtype(value))");
     
    927927                $implIncludes{"${implementedBy}.h"} = 1;
    928928                unshift(@arguments, "item");
    929                 $functionName = "${implementedBy}::${functionName}";
     929                $functionName = "WebCore::${implementedBy}::${functionName}";
    930930            } else {
    931931                $functionName = "item->${functionName}";
     
    938938                $implIncludes{"${implementedBy}.h"} = 1;
    939939                unshift(@arguments, "item");
    940                 $getterContentHead = "${assign}convertToUTF8String(${implementedBy}::${functionSigName}(" . join(", ", @arguments) . "));\n";
     940                $getterContentHead = "${assign}convertToUTF8String(WebCore::${implementedBy}::${functionSigName}(" . join(", ", @arguments) . "));\n";
    941941            } else {
    942942                $getterContentHead = "${assign}convertToUTF8String(item->${functionSigName}(" . join(", ", @arguments) . "));\n";
     
    953953                $implIncludes{"${implementedBy}.h"} = 1;
    954954                unshift(@arguments, "item");
    955                 $functionName = "${implementedBy}::${functionName}";
     955                $functionName = "WebCore::${implementedBy}::${functionName}";
    956956            } else {
    957957                $functionName = "item->${functionName}";
     
    965965                $implIncludes{"${implementedBy}.h"} = 1;
    966966                unshift(@arguments, "item");
    967                 $functionName = "${implementedBy}::${functionName}";
     967                $functionName = "WebCore::${implementedBy}::${functionName}";
    968968                $contentHead = "${assign}${assignPre}${functionName}(" . join(", ", @arguments) . "${assignPost});\n";
    969969            } else {
     
    977977                $implIncludes{"${implementedBy}.h"} = 1;
    978978                unshift(@arguments, "item");
    979                 $contentHead = "${assign}${assignPre}${implementedBy}::${functionSigName}(" . join(", ", @arguments) . "${assignPost});\n";
     979                $contentHead = "${assign}${assignPre}WebCore::${implementedBy}::${functionSigName}(" . join(", ", @arguments) . "${assignPost});\n";
    980980            } else {
    981981                $contentHead = "${assign}${assignPre}item->${functionSigName}(" . join(", ", @arguments) . "${assignPost});\n";
Note: See TracChangeset for help on using the changeset viewer.