Diff
Modified: trunk/Source/WebCore/CMakeLists.txt (146584 => 146585)
--- trunk/Source/WebCore/CMakeLists.txt 2013-03-22 10:04:16 UTC (rev 146584)
+++ trunk/Source/WebCore/CMakeLists.txt 2013-03-22 10:08:55 UTC (rev 146585)
@@ -804,6 +804,7 @@
Modules/gamepad/GamepadList.cpp
Modules/gamepad/NavigatorGamepad.cpp
+ Modules/geolocation/Coordinates.cpp
Modules/geolocation/Geolocation.cpp
Modules/geolocation/GeolocationController.cpp
Modules/geolocation/NavigatorGeolocation.cpp
Modified: trunk/Source/WebCore/ChangeLog (146584 => 146585)
--- trunk/Source/WebCore/ChangeLog 2013-03-22 10:04:16 UTC (rev 146584)
+++ trunk/Source/WebCore/ChangeLog 2013-03-22 10:08:55 UTC (rev 146585)
@@ -1,3 +1,34 @@
+2013-03-22 Steve Block <[email protected]>
+
+ Use generated bindings for the Coordinates type used by Geolocation
+ https://bugs.webkit.org/show_bug.cgi?id=112975
+
+ Reviewed by Kentaro Hara.
+
+ No new tests, refactoring only.
+
+ * CMakeLists.txt:
+ * GNUmakefile.list.am:
+ * Modules/geolocation/Coordinates.cpp: Renamed from Source/WebCore/bindings/js/JSCoordinatesCustom.cpp.
+ (WebCore):
+ (WebCore::Coordinates::altitude):
+ (WebCore::Coordinates::altitudeAccuracy):
+ (WebCore::Coordinates::heading):
+ (WebCore::Coordinates::speed):
+ * Modules/geolocation/Coordinates.h:
+ (Coordinates):
+ * Modules/geolocation/Coordinates.idl:
+ * Target.pri:
+ * UseJSC.cmake:
+ * UseV8.cmake:
+ * WebCore.gypi:
+ * WebCore.vcproj/WebCore.vcproj:
+ * WebCore.vcxproj/WebCore.vcxproj:
+ * WebCore.vcxproj/WebCore.vcxproj.filters:
+ * WebCore.xcodeproj/project.pbxproj:
+ * bindings/js/JSBindingsAllInOne.cpp:
+ * bindings/v8/custom/V8CoordinatesCustom.cpp: Removed.
+
2013-03-22 Kunihiko Sakamoto <[email protected]>
INPUT_MULTIPLE_FIELDS_UI: Incomplete datetime format should fallback to default
Modified: trunk/Source/WebCore/GNUmakefile.list.am (146584 => 146585)
--- trunk/Source/WebCore/GNUmakefile.list.am 2013-03-22 10:04:16 UTC (rev 146584)
+++ trunk/Source/WebCore/GNUmakefile.list.am 2013-03-22 10:08:55 UTC (rev 146585)
@@ -1856,6 +1856,7 @@
Source/WebCore/Modules/gamepad/GamepadList.h \
Source/WebCore/Modules/gamepad/NavigatorGamepad.cpp \
Source/WebCore/Modules/gamepad/NavigatorGamepad.h \
+ Source/WebCore/Modules/geolocation/Coordinates.cpp \
Source/WebCore/Modules/geolocation/Coordinates.h \
Source/WebCore/Modules/geolocation/Geolocation.cpp \
Source/WebCore/Modules/geolocation/Geolocation.h \
@@ -2332,7 +2333,6 @@
Source/WebCore/bindings/js/JSCanvasRenderingContextCustom.cpp \
Source/WebCore/bindings/js/JSClipboardCustom.cpp \
Source/WebCore/bindings/js/JSConsoleCustom.cpp \
- Source/WebCore/bindings/js/JSCoordinatesCustom.cpp \
Source/WebCore/bindings/js/JSCryptoCustom.cpp \
Source/WebCore/bindings/js/JSCustomSQLStatementErrorCallback.cpp \
Source/WebCore/bindings/js/JSCustomXPathNSResolver.cpp \
Copied: trunk/Source/WebCore/Modules/geolocation/Coordinates.cpp (from rev 146584, trunk/Source/WebCore/bindings/js/JSCoordinatesCustom.cpp) (0 => 146585)
--- trunk/Source/WebCore/Modules/geolocation/Coordinates.cpp (rev 0)
+++ trunk/Source/WebCore/Modules/geolocation/Coordinates.cpp 2013-03-22 10:08:55 UTC (rev 146585)
@@ -0,0 +1,67 @@
+/*
+ * Copyright (C) 2013 Google Inc. All Rights Reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "config.h"
+#include "Coordinates.h"
+
+namespace WebCore {
+
+double Coordinates::altitude(bool& isNull) const
+{
+ if (m_canProvideAltitude)
+ return m_altitude;
+
+ isNull = true;
+ return 0;
+}
+
+double Coordinates::altitudeAccuracy(bool& isNull) const
+{
+ if (m_canProvideAltitudeAccuracy)
+ return m_altitudeAccuracy;
+
+ isNull = true;
+ return 0;
+}
+
+double Coordinates::heading(bool& isNull) const
+{
+ if (m_canProvideHeading)
+ return m_heading;
+
+ isNull = true;
+ return 0;
+}
+
+double Coordinates::speed(bool& isNull) const
+{
+ if (m_canProvideSpeed)
+ return m_speed;
+
+ isNull = true;
+ return 0;
+}
+
+} // namespace WebCore
Modified: trunk/Source/WebCore/Modules/geolocation/Coordinates.h (146584 => 146585)
--- trunk/Source/WebCore/Modules/geolocation/Coordinates.h 2013-03-22 10:04:16 UTC (rev 146584)
+++ trunk/Source/WebCore/Modules/geolocation/Coordinates.h 2013-03-22 10:08:55 UTC (rev 146585)
@@ -42,16 +42,11 @@
double latitude() const { return m_latitude; }
double longitude() const { return m_longitude; }
- double altitude() const { return m_altitude; }
+ double altitude(bool& isNull) const;
double accuracy() const { return m_accuracy; }
- double altitudeAccuracy() const { return m_altitudeAccuracy; }
- double heading() const { return m_heading; }
- double speed() const { return m_speed; }
-
- bool canProvideAltitude() const { return m_canProvideAltitude; }
- bool canProvideAltitudeAccuracy() const { return m_canProvideAltitudeAccuracy; }
- bool canProvideHeading() const { return m_canProvideHeading; }
- bool canProvideSpeed() const { return m_canProvideSpeed; }
+ double altitudeAccuracy(bool& isNull) const;
+ double heading(bool& isNull) const;
+ double speed(bool& isNull) const;
private:
Coordinates(double latitude, double longitude, bool providesAltitude, double altitude, double accuracy, bool providesAltitudeAccuracy, double altitudeAccuracy, bool providesHeading, double heading, bool providesSpeed, double speed)
Modified: trunk/Source/WebCore/Modules/geolocation/Coordinates.idl (146584 => 146585)
--- trunk/Source/WebCore/Modules/geolocation/Coordinates.idl 2013-03-22 10:04:16 UTC (rev 146584)
+++ trunk/Source/WebCore/Modules/geolocation/Coordinates.idl 2013-03-22 10:08:55 UTC (rev 146585)
@@ -29,9 +29,9 @@
] interface Coordinates {
readonly attribute double latitude;
readonly attribute double longitude;
- [Custom] readonly attribute double altitude;
+ readonly attribute double? altitude;
readonly attribute double accuracy;
- [Custom] readonly attribute double altitudeAccuracy;
- [Custom] readonly attribute double heading;
- [Custom] readonly attribute double speed;
+ readonly attribute double? altitudeAccuracy;
+ readonly attribute double? heading;
+ readonly attribute double? speed;
};
Modified: trunk/Source/WebCore/Target.pri (146584 => 146585)
--- trunk/Source/WebCore/Target.pri 2013-03-22 10:04:16 UTC (rev 146584)
+++ trunk/Source/WebCore/Target.pri 2013-03-22 10:08:55 UTC (rev 146585)
@@ -27,6 +27,7 @@
}
SOURCES += \
+ Modules/geolocation/Coordinates.cpp \
Modules/geolocation/Geolocation.cpp \
Modules/geolocation/GeolocationController.cpp \
Modules/geolocation/NavigatorGeolocation.cpp \
@@ -95,7 +96,6 @@
bindings/js/JSCanvasRenderingContextCustom.cpp \
bindings/js/JSClipboardCustom.cpp \
bindings/js/JSConsoleCustom.cpp \
- bindings/js/JSCoordinatesCustom.cpp \
bindings/js/JSCryptoCustom.cpp \
bindings/js/JSCustomXPathNSResolver.cpp \
bindings/js/JSDictionary.cpp \
Modified: trunk/Source/WebCore/UseJSC.cmake (146584 => 146585)
--- trunk/Source/WebCore/UseJSC.cmake 2013-03-22 10:04:16 UTC (rev 146584)
+++ trunk/Source/WebCore/UseJSC.cmake 2013-03-22 10:08:55 UTC (rev 146585)
@@ -48,7 +48,6 @@
bindings/js/JSCanvasRenderingContextCustom.cpp
bindings/js/JSClipboardCustom.cpp
bindings/js/JSConsoleCustom.cpp
- bindings/js/JSCoordinatesCustom.cpp
bindings/js/JSCryptoCustom.cpp
bindings/js/JSCustomXPathNSResolver.cpp
bindings/js/JSDictionary.cpp
Modified: trunk/Source/WebCore/UseV8.cmake (146584 => 146585)
--- trunk/Source/WebCore/UseV8.cmake 2013-03-22 10:04:16 UTC (rev 146584)
+++ trunk/Source/WebCore/UseV8.cmake 2013-03-22 10:08:55 UTC (rev 146585)
@@ -84,7 +84,6 @@
bindings/v8/custom/V8CanvasRenderingContextCustom.cpp
bindings/v8/custom/V8ClipboardCustom.cpp
bindings/v8/custom/V8ConsoleCustom.cpp
- bindings/v8/custom/V8CoordinatesCustom.cpp
bindings/v8/custom/V8CustomEventCustom.cpp
bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp
bindings/v8/custom/V8CustomXPathNSResolver.cpp
Modified: trunk/Source/WebCore/WebCore.gypi (146584 => 146585)
--- trunk/Source/WebCore/WebCore.gypi 2013-03-22 10:04:16 UTC (rev 146584)
+++ trunk/Source/WebCore/WebCore.gypi 2013-03-22 10:08:55 UTC (rev 146585)
@@ -797,6 +797,7 @@
'Modules/gamepad/GamepadList.h',
'Modules/gamepad/NavigatorGamepad.cpp',
'Modules/gamepad/NavigatorGamepad.h',
+ 'Modules/geolocation/Coordinates.cpp',
'Modules/geolocation/Geolocation.cpp',
'Modules/geolocation/GeolocationController.cpp',
'Modules/geolocation/NavigatorGeolocation.cpp',
@@ -1442,7 +1443,6 @@
'bindings/v8/custom/V8CanvasRenderingContextCustom.cpp',
'bindings/v8/custom/V8ClipboardCustom.cpp',
'bindings/v8/custom/V8ConsoleCustom.cpp',
- 'bindings/v8/custom/V8CoordinatesCustom.cpp',
'bindings/v8/custom/V8CryptoCustom.cpp',
'bindings/v8/custom/V8CustomElementConstructorCustom.cpp',
'bindings/v8/custom/V8CustomEventCustom.cpp',
Modified: trunk/Source/WebCore/WebCore.vcproj/WebCore.vcproj (146584 => 146585)
--- trunk/Source/WebCore/WebCore.vcproj/WebCore.vcproj 2013-03-22 10:04:16 UTC (rev 146584)
+++ trunk/Source/WebCore/WebCore.vcproj/WebCore.vcproj 2013-03-22 10:08:55 UTC (rev 146585)
@@ -25178,6 +25178,10 @@
Name="geolocation"
>
<File
+ RelativePath="..\Modules\geolocation\Coordinates.cpp"
+ >
+ </File>
+ <File
RelativePath="..\Modules\geolocation\Coordinates.h"
>
</File>
@@ -66850,58 +66854,6 @@
</FileConfiguration>
</File>
<File
- RelativePath="..\bindings\js\JSCoordinatesCustom.cpp"
- >
- <FileConfiguration
- Name="Debug|Win32"
- ExcludedFromBuild="true"
- >
- <Tool
- Name="VCCLCompilerTool"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- ExcludedFromBuild="true"
- >
- <Tool
- Name="VCCLCompilerTool"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug_Cairo_CFLite|Win32"
- ExcludedFromBuild="true"
- >
- <Tool
- Name="VCCLCompilerTool"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release_Cairo_CFLite|Win32"
- ExcludedFromBuild="true"
- >
- <Tool
- Name="VCCLCompilerTool"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug_All|Win32"
- ExcludedFromBuild="true"
- >
- <Tool
- Name="VCCLCompilerTool"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Production|Win32"
- ExcludedFromBuild="true"
- >
- <Tool
- Name="VCCLCompilerTool"
- />
- </FileConfiguration>
- </File>
- <File
RelativePath="..\bindings\js\JSCSSFontFaceRuleCustom.cpp"
>
<FileConfiguration
Modified: trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj (146584 => 146585)
--- trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj 2013-03-22 10:04:16 UTC (rev 146584)
+++ trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj 2013-03-22 10:08:55 UTC (rev 146585)
@@ -3634,6 +3634,7 @@
<ClCompile Include="..\Modules\filesystem\FileWriterSync.cpp" />
<ClCompile Include="..\Modules\filesystem\LocalFileSystem.cpp" />
<ClCompile Include="..\Modules\filesystem\WorkerContextFileSystem.cpp" />
+ <ClCompile Include="..\Modules\geolocation\Coordinates.cpp" />
<ClCompile Include="..\Modules\geolocation\Geolocation.cpp" />
<ClCompile Include="..\Modules\geolocation\GeolocationController.cpp" />
<ClCompile Include="..\Modules\geolocation\NavigatorGeolocation.cpp" />
@@ -9229,14 +9230,6 @@
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|Win32'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|Win32'">true</ExcludedFromBuild>
</ClCompile>
- <ClCompile Include="..\bindings\js\JSCoordinatesCustom.cpp">
- <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
- <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_WinCairo|Win32'">true</ExcludedFromBuild>
- <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='DebugSuffix|Win32'">true</ExcludedFromBuild>
- <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
- <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|Win32'">true</ExcludedFromBuild>
- <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|Win32'">true</ExcludedFromBuild>
- </ClCompile>
<ClCompile Include="..\bindings\js\JSCSSFontFaceRuleCustom.cpp">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_WinCairo|Win32'">true</ExcludedFromBuild>
Modified: trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters (146584 => 146585)
--- trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters 2013-03-22 10:04:16 UTC (rev 146584)
+++ trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters 2013-03-22 10:08:55 UTC (rev 146585)
@@ -1734,6 +1734,9 @@
<ClCompile Include="..\Modules\filesystem\WorkerContextFileSystem.cpp">
<Filter>Modules\filesystem</Filter>
</ClCompile>
+ <ClCompile Include="..\Modules\geolocation\Coordinates.cpp">
+ <Filter>Modules\geolocation</Filter>
+ </ClCompile>
<ClCompile Include="..\Modules\geolocation\Geolocation.cpp">
<Filter>Modules\geolocation</Filter>
</ClCompile>
@@ -5871,9 +5874,6 @@
<ClCompile Include="..\bindings\js\JSConsoleCustom.cpp">
<Filter>bindings\js</Filter>
</ClCompile>
- <ClCompile Include="..\bindings\js\JSCoordinatesCustom.cpp">
- <Filter>bindings\js</Filter>
- </ClCompile>
<ClCompile Include="..\bindings\js\JSCSSFontFaceRuleCustom.cpp">
<Filter>bindings\js</Filter>
</ClCompile>
Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (146584 => 146585)
--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj 2013-03-22 10:04:16 UTC (rev 146584)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj 2013-03-22 10:08:55 UTC (rev 146585)
@@ -3578,6 +3578,7 @@
973F418B169B96030006BF60 /* HTMLParserOptions.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 973F4187169B95EF0006BF60 /* HTMLParserOptions.cpp */; };
974187D316A7932700FA77A7 /* HTMLParserThread.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 974187D016A7932200FA77A7 /* HTMLParserThread.cpp */; };
974187D416A7932900FA77A7 /* HTMLParserThread.h in Headers */ = {isa = PBXBuildFile; fileRef = 974187D116A7932200FA77A7 /* HTMLParserThread.h */; };
+ 9746AF2114F4DDE6003E7A72 /* Coordinates.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9746AF1114F4DDE6003E7A72 /* Coordinates.cpp */; };
9746AF2114F4DDE6003E7A71 /* Coordinates.h in Headers */ = {isa = PBXBuildFile; fileRef = 9746AF1114F4DDE6003E7A70 /* Coordinates.h */; settings = {ATTRIBUTES = (Private, ); }; };
9746AF2314F4DDE6003E7A70 /* Geolocation.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9746AF1314F4DDE6003E7A70 /* Geolocation.cpp */; };
9746AF2414F4DDE6003E7A70 /* Geolocation.h in Headers */ = {isa = PBXBuildFile; fileRef = 9746AF1414F4DDE6003E7A70 /* Geolocation.h */; settings = {ATTRIBUTES = (Private, ); }; };
@@ -6824,7 +6825,6 @@
FE6F6AB0169E057500FC30A2 /* DatabaseBackendContext.h in Headers */ = {isa = PBXBuildFile; fileRef = FE6F6AAE169E057500FC30A2 /* DatabaseBackendContext.h */; settings = {ATTRIBUTES = (Private, ); }; };
FE6FD48D0F676E9300092873 /* JSCoordinates.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FE6FD48B0F676E9300092873 /* JSCoordinates.cpp */; };
FE6FD48E0F676E9300092873 /* JSCoordinates.h in Headers */ = {isa = PBXBuildFile; fileRef = FE6FD48C0F676E9300092873 /* JSCoordinates.h */; };
- FE700DD10F92D81A008E2BFE /* JSCoordinatesCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FE700DD00F92D81A008E2BFE /* JSCoordinatesCustom.cpp */; };
FE80D7AB0E9C1ED2000D6F75 /* JSGeolocationCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FE80D7A60E9C1ED2000D6F75 /* JSGeolocationCustom.cpp */; };
FE80DA630E9C4703000D6F75 /* JSGeolocation.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FE80DA5F0E9C4703000D6F75 /* JSGeolocation.cpp */; };
FE80DA640E9C4703000D6F75 /* JSGeolocation.h in Headers */ = {isa = PBXBuildFile; fileRef = FE80DA600E9C4703000D6F75 /* JSGeolocation.h */; };
@@ -11092,6 +11092,7 @@
973F4188169B95EF0006BF60 /* HTMLParserOptions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = HTMLParserOptions.h; path = parser/HTMLParserOptions.h; sourceTree = "<group>"; };
974187D016A7932200FA77A7 /* HTMLParserThread.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = HTMLParserThread.cpp; path = parser/HTMLParserThread.cpp; sourceTree = "<group>"; };
974187D116A7932200FA77A7 /* HTMLParserThread.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = HTMLParserThread.h; path = parser/HTMLParserThread.h; sourceTree = "<group>"; };
+ 9746AF1114F4DDE6003E7A72 /* Coordinates.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Coordinates.cpp; path = Modules/geolocation/Coordinates.cpp; sourceTree = "<group>"; };
9746AF1114F4DDE6003E7A70 /* Coordinates.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Coordinates.h; path = Modules/geolocation/Coordinates.h; sourceTree = "<group>"; };
9746AF1214F4DDE6003E7A70 /* Coordinates.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = Coordinates.idl; path = Modules/geolocation/Coordinates.idl; sourceTree = "<group>"; };
9746AF1314F4DDE6003E7A70 /* Geolocation.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Geolocation.cpp; path = Modules/geolocation/Geolocation.cpp; sourceTree = "<group>"; };
@@ -14638,7 +14639,6 @@
FE6F6AAE169E057500FC30A2 /* DatabaseBackendContext.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DatabaseBackendContext.h; path = Modules/webdatabase/DatabaseBackendContext.h; sourceTree = "<group>"; };
FE6FD48B0F676E9300092873 /* JSCoordinates.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSCoordinates.cpp; sourceTree = "<group>"; };
FE6FD48C0F676E9300092873 /* JSCoordinates.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSCoordinates.h; sourceTree = "<group>"; };
- FE700DD00F92D81A008E2BFE /* JSCoordinatesCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSCoordinatesCustom.cpp; sourceTree = "<group>"; };
FE80D7A60E9C1ED2000D6F75 /* JSGeolocationCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSGeolocationCustom.cpp; sourceTree = "<group>"; };
FE80DA5F0E9C4703000D6F75 /* JSGeolocation.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSGeolocation.cpp; sourceTree = "<group>"; };
FE80DA600E9C4703000D6F75 /* JSGeolocation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSGeolocation.h; sourceTree = "<group>"; };
@@ -18508,6 +18508,7 @@
971145FF14EF007900674FD9 /* geolocation */ = {
isa = PBXGroup;
children = (
+ 9746AF1114F4DDE6003E7A72 /* Coordinates.cpp */,
9746AF1114F4DDE6003E7A70 /* Coordinates.h */,
9746AF1214F4DDE6003E7A70 /* Coordinates.idl */,
9746AF1314F4DDE6003E7A70 /* Geolocation.cpp */,
@@ -21228,7 +21229,6 @@
93BA59B10F2AA5FE008E8E99 /* JSCDATASectionCustom.cpp */,
BCA83E510D7CE205003421A8 /* JSClipboardCustom.cpp */,
C0DFC86F0DB6841A003EAE7C /* JSConsoleCustom.cpp */,
- FE700DD00F92D81A008E2BFE /* JSCoordinatesCustom.cpp */,
209B456A16796A7E00E54E4E /* JSCryptoCustom.cpp */,
E1AD14901297337400ACA989 /* JSCSSFontFaceRuleCustom.cpp */,
E1AD147B1297307E00ACA989 /* JSCSSImportRuleCustom.cpp */,
@@ -27310,6 +27310,7 @@
E1424C90164B460B00F32D40 /* CookieJarMac.mm in Sources */,
7EE6846312D26E3800E79415 /* CookieStorageCFNet.cpp in Sources */,
E13F01F11270E19000DFBA71 /* CookieStorageMac.mm in Sources */,
+ 9746AF2114F4DDE6003E7A72 /* Coordinates.cpp in Sources */,
BC5EB9500E82056B00B25965 /* CounterDirectives.cpp in Sources */,
9392F1500AD1862300691BD4 /* CounterNode.cpp in Sources */,
D0B0556909C6700100307E43 /* CreateLinkCommand.cpp in Sources */,
@@ -28307,7 +28308,6 @@
C0DFC8700DB6841A003EAE7C /* JSConsoleCustom.cpp in Sources */,
FDA15EBD12B03F0B003A583A /* JSConvolverNode.cpp in Sources */,
FE6FD48D0F676E9300092873 /* JSCoordinates.cpp in Sources */,
- FE700DD10F92D81A008E2BFE /* JSCoordinatesCustom.cpp in Sources */,
930705D809E0C9B700B17FE4 /* JSCounter.cpp in Sources */,
975CA2A11303679D00E99AD9 /* JSCrypto.cpp in Sources */,
209B456B16796A7E00E54E4E /* JSCryptoCustom.cpp in Sources */,
Modified: trunk/Source/WebCore/bindings/js/JSBindingsAllInOne.cpp (146584 => 146585)
--- trunk/Source/WebCore/bindings/js/JSBindingsAllInOne.cpp 2013-03-22 10:04:16 UTC (rev 146584)
+++ trunk/Source/WebCore/bindings/js/JSBindingsAllInOne.cpp 2013-03-22 10:08:55 UTC (rev 146585)
@@ -50,7 +50,6 @@
#include "JSCanvasRenderingContextCustom.cpp"
#include "JSClipboardCustom.cpp"
#include "JSConsoleCustom.cpp"
-#include "JSCoordinatesCustom.cpp"
#include "JSCryptoCustom.cpp"
#include "JSCustomSQLStatementErrorCallback.cpp"
#include "JSCustomXPathNSResolver.cpp"
Deleted: trunk/Source/WebCore/bindings/js/JSCoordinatesCustom.cpp (146584 => 146585)
--- trunk/Source/WebCore/bindings/js/JSCoordinatesCustom.cpp 2013-03-22 10:04:16 UTC (rev 146584)
+++ trunk/Source/WebCore/bindings/js/JSCoordinatesCustom.cpp 2013-03-22 10:08:55 UTC (rev 146585)
@@ -1,67 +0,0 @@
-/*
- * Copyright (C) 2009 Apple Inc. All Rights Reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include "config.h"
-#include "JSCoordinates.h"
-
-#include "Coordinates.h"
-
-using namespace JSC;
-
-namespace WebCore {
-
-JSValue JSCoordinates::altitude(ExecState*) const
-{
- Coordinates* imp = impl();
- if (!imp->canProvideAltitude())
- return jsNull();
- return jsNumber(imp->altitude());
-}
-
-JSValue JSCoordinates::altitudeAccuracy(ExecState*) const
-{
- Coordinates* imp = impl();
- if (!imp->canProvideAltitudeAccuracy())
- return jsNull();
- return jsNumber(imp->altitudeAccuracy());
-}
-
-JSValue JSCoordinates::heading(ExecState*) const
-{
- Coordinates* imp = impl();
- if (!imp->canProvideHeading())
- return jsNull();
- return jsNumber(imp->heading());
-}
-
-JSValue JSCoordinates::speed(ExecState*) const
-{
- Coordinates* imp = impl();
- if (!imp->canProvideSpeed())
- return jsNull();
- return jsNumber(imp->speed());
-}
-
-} // namespace WebCore
Deleted: trunk/Source/WebCore/bindings/v8/custom/V8CoordinatesCustom.cpp (146584 => 146585)
--- trunk/Source/WebCore/bindings/v8/custom/V8CoordinatesCustom.cpp 2013-03-22 10:04:16 UTC (rev 146584)
+++ trunk/Source/WebCore/bindings/v8/custom/V8CoordinatesCustom.cpp 2013-03-22 10:08:55 UTC (rev 146585)
@@ -1,70 +0,0 @@
-/*
- * Copyright 2009, The Android Open Source Project
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include "config.h"
-#include "V8Coordinates.h"
-
-#include "Coordinates.h"
-#include "V8Binding.h"
-
-namespace WebCore {
-
-v8::Handle<v8::Value> V8Coordinates::altitudeAttrGetterCustom(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- v8::Handle<v8::Object> holder = info.Holder();
- Coordinates* imp = V8Coordinates::toNative(holder);
- if (!imp->canProvideAltitude())
- return v8Null(info.GetIsolate());
- return v8::Number::New(imp->altitude());
-}
-
-v8::Handle<v8::Value> V8Coordinates::altitudeAccuracyAttrGetterCustom(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- v8::Handle<v8::Object> holder = info.Holder();
- Coordinates* imp = V8Coordinates::toNative(holder);
- if (!imp->canProvideAltitudeAccuracy())
- return v8Null(info.GetIsolate());
- return v8::Number::New(imp->altitudeAccuracy());
-}
-
-v8::Handle<v8::Value> V8Coordinates::headingAttrGetterCustom(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- v8::Handle<v8::Object> holder = info.Holder();
- Coordinates* imp = V8Coordinates::toNative(holder);
- if (!imp->canProvideHeading())
- return v8Null(info.GetIsolate());
- return v8::Number::New(imp->heading());
-}
-
-v8::Handle<v8::Value> V8Coordinates::speedAttrGetterCustom(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- v8::Handle<v8::Object> holder = info.Holder();
- Coordinates* imp = V8Coordinates::toNative(holder);
- if (!imp->canProvideSpeed())
- return v8Null(info.GetIsolate());
- return v8::Number::New(imp->speed());
-}
-
-} // namespace WebCore