Changeset 121016 in webkit
- Timestamp:
- Jun 22, 2012 4:32:42 AM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 42 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/CMakeLists.txt
r120984 r121016 568 568 dom/DeviceMotionData.cpp 569 569 dom/DeviceMotionEvent.cpp 570 dom/DeviceOrientation.cpp571 570 dom/DeviceOrientationController.cpp 571 dom/DeviceOrientationData.cpp 572 572 dom/DeviceOrientationEvent.cpp 573 573 dom/Document.cpp -
trunk/Source/WebCore/ChangeLog
r121014 r121016 1 2012-06-22 Amy Ousterhout <aousterh@chromium.org> 2 3 Renamed DeviceOrientation to DeviceOrientationData 4 https://bugs.webkit.org/show_bug.cgi?id=88663 5 6 Reviewed by Steve Block. 7 8 No new tests because this is simply a name change. 9 10 Renamed DeviceOrientation to DeviceOrientationData in order to be consistent with DeviceMotionData. 11 Updated all files that use DeviceOrientation. 12 13 * CMakeLists.txt: 14 * GNUmakefile.list.am: 15 * Target.pri: 16 * WebCore.exp.in: 17 * WebCore.gypi: 18 * WebCore.vcproj/WebCore.vcproj: 19 * WebCore.xcodeproj/project.pbxproj: 20 * bindings/js/JSDeviceOrientationEventCustom.cpp: 21 (WebCore::JSDeviceOrientationEvent::initDeviceOrientationEvent): 22 * bindings/v8/custom/V8DeviceOrientationEventCustom.cpp: 23 (WebCore::V8DeviceOrientationEvent::initDeviceOrientationEventCallback): 24 * dom/DOMAllInOne.cpp: 25 * dom/DeviceOrientationClient.h: 26 (WebCore): 27 (DeviceOrientationClient): 28 * dom/DeviceOrientationController.cpp: 29 (WebCore::DeviceOrientationController::timerFired): 30 (WebCore::DeviceOrientationController::didChangeDeviceOrientation): 31 * dom/DeviceOrientationController.h: 32 (WebCore): 33 (DeviceOrientationController): 34 * dom/DeviceOrientationData.cpp: Renamed from Source/WebCore/dom/DeviceOrientation.cpp. 35 (WebCore): 36 (WebCore::DeviceOrientationData::create): 37 (WebCore::DeviceOrientationData::DeviceOrientationData): 38 (WebCore::DeviceOrientationData::alpha): 39 (WebCore::DeviceOrientationData::beta): 40 (WebCore::DeviceOrientationData::gamma): 41 (WebCore::DeviceOrientationData::absolute): 42 (WebCore::DeviceOrientationData::canProvideAlpha): 43 (WebCore::DeviceOrientationData::canProvideBeta): 44 (WebCore::DeviceOrientationData::canProvideGamma): 45 (WebCore::DeviceOrientationData::canProvideAbsolute): 46 * dom/DeviceOrientationData.h: Renamed from Source/WebCore/dom/DeviceOrientation.h. 47 (WebCore): 48 (DeviceOrientationData): 49 * dom/DeviceOrientationEvent.cpp: 50 (WebCore::DeviceOrientationEvent::DeviceOrientationEvent): 51 (WebCore::DeviceOrientationEvent::initDeviceOrientationEvent): 52 * dom/DeviceOrientationEvent.h: 53 (WebCore): 54 (WebCore::DeviceOrientationEvent::create): 55 (DeviceOrientationEvent): 56 (WebCore::DeviceOrientationEvent::orientation): 57 * loader/EmptyClients.h: 58 (WebCore::EmptyDeviceOrientationClient::lastOrientation): 59 * platform/mock/DeviceOrientationClientMock.cpp: 60 (WebCore::DeviceOrientationClientMock::setOrientation): 61 * platform/mock/DeviceOrientationClientMock.h: 62 (WebCore::DeviceOrientationClientMock::lastOrientation): 63 (DeviceOrientationClientMock): 64 * platform/qt/DeviceOrientationClientQt.cpp: 65 (DeviceOrientationClientQt): 66 * platform/qt/DeviceOrientationClientQt.h: 67 (DeviceOrientationClientQt): 68 * platform/qt/DeviceOrientationProviderQt.h: 69 (DeviceOrientationProviderQt): 70 1 71 2012-06-21 Vsevolod Vlasov <vsevik@chromium.org> 2 72 -
trunk/Source/WebCore/GNUmakefile.list.am
r120993 r121016 1825 1825 Source/WebCore/dom/DeviceOrientationController.cpp \ 1826 1826 Source/WebCore/dom/DeviceOrientationController.h \ 1827 Source/WebCore/dom/DeviceOrientation.cpp \ 1827 Source/WebCore/dom/DeviceOrientationData.cpp \ 1828 Source/WebCore/dom/DeviceOrientationData.h \ 1828 1829 Source/WebCore/dom/DeviceOrientationEvent.cpp \ 1829 1830 Source/WebCore/dom/DeviceOrientationEvent.h \ 1830 Source/WebCore/dom/DeviceOrientation.h \1831 1831 Source/WebCore/dom/Document.cpp \ 1832 1832 Source/WebCore/dom/DocumentFragment.cpp \ -
trunk/Source/WebCore/Target.pri
r120984 r121016 530 530 dom/DeviceMotionData.cpp \ 531 531 dom/DeviceMotionEvent.cpp \ 532 dom/DeviceOrientation.cpp \533 532 dom/DeviceOrientationController.cpp \ 533 dom/DeviceOrientationData.cpp \ 534 534 dom/DeviceOrientationEvent.cpp \ 535 535 dom/Document.cpp \ … … 1712 1712 dom/DeviceMotionData.h \ 1713 1713 dom/DeviceMotionEvent.h \ 1714 dom/DeviceOrientation.h \1715 1714 dom/DeviceOrientationClient.h \ 1716 1715 dom/DeviceOrientationController.h \ 1716 dom/DeviceOrientationData.h \ 1717 1717 dom/DeviceOrientationEvent.h \ 1718 1718 dom/Document.h \ -
trunk/Source/WebCore/WebCore.exp.in
r120879 r121016 614 614 __ZN7WebCore27AuthenticationChallengeBaseC2Ev 615 615 __ZN7WebCore27CSSComputedStyleDeclarationC1EN3WTF10PassRefPtrINS_4NodeEEEbRKNS1_6StringE 616 __ZN7WebCore27DeviceOrientationClientMock14setOrientationEN3WTF10PassRefPtrINS_ 17DeviceOrientationEEE616 __ZN7WebCore27DeviceOrientationClientMock14setOrientationEN3WTF10PassRefPtrINS_21DeviceOrientationDataEEE 617 617 __ZN7WebCore27DeviceOrientationClientMockC1Ev 618 618 __ZN7WebCore27startObservingCookieChangesEv … … 1526 1526 __ZN7WebCore16colorFromNSColorEP7NSColor 1527 1527 __ZN7WebCore16enclosingIntRectERK7_NSRect 1528 __ZN7WebCore 17DeviceOrientation6createEbdbdbdbb1528 __ZN7WebCore21DeviceOrientationData6createEbdbdbdbb 1529 1529 __ZN7WebCore18SearchPopupMenuMacC1EPNS_15PopupMenuClientE 1530 1530 __ZN7WebCore19applicationIsSafariEv -
trunk/Source/WebCore/WebCore.gypi
r120984 r121016 626 626 'dom/DeviceMotionClient.h', 627 627 'dom/DeviceMotionData.h', 628 'dom/DeviceOrientation.h',629 628 'dom/DeviceOrientationClient.h', 629 'dom/DeviceOrientationData.h', 630 630 'dom/Document.h', 631 631 'dom/DocumentFragment.h', … … 5292 5292 'dom/DeviceMotionEvent.cpp', 5293 5293 'dom/DeviceMotionEvent.h', 5294 'dom/DeviceOrientation.cpp',5295 5294 'dom/DeviceOrientationController.cpp', 5296 5295 'dom/DeviceOrientationController.h', 5296 'dom/DeviceOrientationData.cpp', 5297 5297 'dom/DeviceOrientationEvent.cpp', 5298 5298 'dom/DeviceOrientationEvent.h', -
trunk/Source/WebCore/WebCore.vcproj/WebCore.vcproj
r120984 r121016 49248 49248 </File> 49249 49249 <File 49250 RelativePath="..\dom\DeviceOrientation.cpp"49251 >49252 <FileConfiguration49253 Name="Debug|Win32"49254 ExcludedFromBuild="true"49255 >49256 <Tool49257 Name="VCCLCompilerTool"49258 />49259 </FileConfiguration>49260 <FileConfiguration49261 Name="Release|Win32"49262 ExcludedFromBuild="true"49263 >49264 <Tool49265 Name="VCCLCompilerTool"49266 />49267 </FileConfiguration>49268 <FileConfiguration49269 Name="Debug_Cairo_CFLite|Win32"49270 ExcludedFromBuild="true"49271 >49272 <Tool49273 Name="VCCLCompilerTool"49274 />49275 </FileConfiguration>49276 <FileConfiguration49277 Name="Release_Cairo_CFLite|Win32"49278 ExcludedFromBuild="true"49279 >49280 <Tool49281 Name="VCCLCompilerTool"49282 />49283 </FileConfiguration>49284 <FileConfiguration49285 Name="Debug_All|Win32"49286 ExcludedFromBuild="true"49287 >49288 <Tool49289 Name="VCCLCompilerTool"49290 />49291 </FileConfiguration>49292 <FileConfiguration49293 Name="Production|Win32"49294 ExcludedFromBuild="true"49295 >49296 <Tool49297 Name="VCCLCompilerTool"49298 />49299 </FileConfiguration>49300 </File>49301 <File49302 RelativePath="..\dom\DeviceOrientation.h"49303 >49304 </File>49305 <File49306 49250 RelativePath="..\dom\DeviceOrientationClient.h" 49307 49251 > … … 49363 49307 > 49364 49308 </File> 49309 <File 49310 RelativePath="..\dom\DeviceOrientationData.cpp" 49311 > 49312 <FileConfiguration 49313 Name="Debug|Win32" 49314 ExcludedFromBuild="true" 49315 > 49316 <Tool 49317 Name="VCCLCompilerTool" 49318 /> 49319 </FileConfiguration> 49320 <FileConfiguration 49321 Name="Release|Win32" 49322 ExcludedFromBuild="true" 49323 > 49324 <Tool 49325 Name="VCCLCompilerTool" 49326 /> 49327 </FileConfiguration> 49328 <FileConfiguration 49329 Name="Debug_Cairo_CFLite|Win32" 49330 ExcludedFromBuild="true" 49331 > 49332 <Tool 49333 Name="VCCLCompilerTool" 49334 /> 49335 </FileConfiguration> 49336 <FileConfiguration 49337 Name="Release_Cairo_CFLite|Win32" 49338 ExcludedFromBuild="true" 49339 > 49340 <Tool 49341 Name="VCCLCompilerTool" 49342 /> 49343 </FileConfiguration> 49344 <FileConfiguration 49345 Name="Debug_All|Win32" 49346 ExcludedFromBuild="true" 49347 > 49348 <Tool 49349 Name="VCCLCompilerTool" 49350 /> 49351 </FileConfiguration> 49352 <FileConfiguration 49353 Name="Production|Win32" 49354 ExcludedFromBuild="true" 49355 > 49356 <Tool 49357 Name="VCCLCompilerTool" 49358 /> 49359 </FileConfiguration> 49360 </File> 49361 <File 49362 RelativePath="..\dom\DeviceOrientationData.h" 49363 > 49364 </File> 49365 49365 <File 49366 49366 RelativePath="..\dom\DeviceOrientationEvent.cpp" -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r120984 r121016 1604 1604 5905ADBF1302F3CE00F116DF /* XMLTreeViewer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5905ADBD1302F3CE00F116DF /* XMLTreeViewer.cpp */; }; 1605 1605 5905ADC01302F3CE00F116DF /* XMLTreeViewer.h in Headers */ = {isa = PBXBuildFile; fileRef = 5905ADBE1302F3CE00F116DF /* XMLTreeViewer.h */; }; 1606 590E1B4911E4EF4B0069F784 /* DeviceOrientation .h in Headers */ = {isa = PBXBuildFile; fileRef = 590E1B4811E4EF4B0069F784 /* DeviceOrientation.h */; settings = {ATTRIBUTES = (Private, ); }; };1606 590E1B4911E4EF4B0069F784 /* DeviceOrientationData.h in Headers */ = {isa = PBXBuildFile; fileRef = 590E1B4811E4EF4B0069F784 /* DeviceOrientationData.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1607 1607 590E1B4B11E4EF700069F784 /* JSDeviceOrientationEventCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 590E1B4A11E4EF700069F784 /* JSDeviceOrientationEventCustom.cpp */; }; 1608 1608 59102FBB14327D3B003C9D04 /* ContentSearchUtils.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 59102FB914327D3B003C9D04 /* ContentSearchUtils.cpp */; }; … … 1640 1640 59C28045138DC2410079B7E2 /* XMLErrors.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 59C28043138DC2410079B7E2 /* XMLErrors.cpp */; }; 1641 1641 59C28046138DC2410079B7E2 /* XMLErrors.h in Headers */ = {isa = PBXBuildFile; fileRef = 59C28044138DC2410079B7E2 /* XMLErrors.h */; }; 1642 59D1C10411EB5DCF00B638C8 /* DeviceOrientation .cpp in Sources */ = {isa = PBXBuildFile; fileRef = 59D1C10311EB5DCF00B638C8 /* DeviceOrientation.cpp */; };1642 59D1C10411EB5DCF00B638C8 /* DeviceOrientationData.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 59D1C10311EB5DCF00B638C8 /* DeviceOrientationData.cpp */; }; 1643 1643 59DE790413F16C7F0007FCDF /* JavaMethodJSC.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 59DE790313F16C7F0007FCDF /* JavaMethodJSC.cpp */; }; 1644 1644 59DE790613F16C8C0007FCDF /* JavaMethodJSC.h in Headers */ = {isa = PBXBuildFile; fileRef = 59DE790513F16C8C0007FCDF /* JavaMethodJSC.h */; }; … … 8687 8687 5905ADBD1302F3CE00F116DF /* XMLTreeViewer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = XMLTreeViewer.cpp; sourceTree = "<group>"; }; 8688 8688 5905ADBE1302F3CE00F116DF /* XMLTreeViewer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XMLTreeViewer.h; sourceTree = "<group>"; }; 8689 590E1B4811E4EF4B0069F784 /* DeviceOrientation .h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DeviceOrientation.h; sourceTree = "<group>"; };8689 590E1B4811E4EF4B0069F784 /* DeviceOrientationData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DeviceOrientationData.h; sourceTree = "<group>"; }; 8690 8690 590E1B4A11E4EF700069F784 /* JSDeviceOrientationEventCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDeviceOrientationEventCustom.cpp; sourceTree = "<group>"; }; 8691 8691 59102FB914327D3B003C9D04 /* ContentSearchUtils.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ContentSearchUtils.cpp; sourceTree = "<group>"; }; … … 8726 8726 59C28043138DC2410079B7E2 /* XMLErrors.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = XMLErrors.cpp; sourceTree = "<group>"; }; 8727 8727 59C28044138DC2410079B7E2 /* XMLErrors.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XMLErrors.h; sourceTree = "<group>"; }; 8728 59D1C10311EB5DCF00B638C8 /* DeviceOrientation .cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DeviceOrientation.cpp; sourceTree = "<group>"; };8728 59D1C10311EB5DCF00B638C8 /* DeviceOrientationData.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DeviceOrientationData.cpp; sourceTree = "<group>"; }; 8729 8729 59DE790313F16C7F0007FCDF /* JavaMethodJSC.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = JavaMethodJSC.cpp; path = jsc/JavaMethodJSC.cpp; sourceTree = "<group>"; }; 8730 8730 59DE790513F16C8C0007FCDF /* JavaMethodJSC.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = JavaMethodJSC.h; path = jsc/JavaMethodJSC.h; sourceTree = "<group>"; }; … … 21305 21305 31FB1A55120A5D0600DC02A0 /* DeviceMotionEvent.h */, 21306 21306 31FB1A56120A5D0600DC02A0 /* DeviceMotionEvent.idl */, 21307 59D1C10311EB5DCF00B638C8 /* DeviceOrientation.cpp */,21308 590E1B4811E4EF4B0069F784 /* DeviceOrientation.h */,21309 21307 59A8F1D711A69520001AC34A /* DeviceOrientationClient.h */, 21310 21308 59A8F1D311A69508001AC34A /* DeviceOrientationController.cpp */, 21311 21309 59A8F1D511A69513001AC34A /* DeviceOrientationController.h */, 21310 59D1C10311EB5DCF00B638C8 /* DeviceOrientationData.cpp */, 21311 590E1B4811E4EF4B0069F784 /* DeviceOrientationData.h */, 21312 21312 59A85EA1119D68D900DEF1EF /* DeviceOrientationEvent.cpp */, 21313 21313 59A85EA3119D68EC00DEF1EF /* DeviceOrientationEvent.h */, … … 22274 22274 31FB1A5B120A5D0600DC02A0 /* DeviceMotionData.h in Headers */, 22275 22275 31FB1A5D120A5D0600DC02A0 /* DeviceMotionEvent.h in Headers */, 22276 590E1B4911E4EF4B0069F784 /* DeviceOrientation.h in Headers */,22277 22276 59A8F1D811A69520001AC34A /* DeviceOrientationClient.h in Headers */, 22278 22277 59309A1311F4AE6A00250603 /* DeviceOrientationClientMock.h in Headers */, 22279 22278 59A8F1D611A69513001AC34A /* DeviceOrientationController.h in Headers */, 22279 590E1B4911E4EF4B0069F784 /* DeviceOrientationData.h in Headers */, 22280 22280 59A85EA4119D68EC00DEF1EF /* DeviceOrientationEvent.h in Headers */, 22281 22281 CECADFC7153778FF00E37068 /* DictationAlternative.h in Headers */, … … 25783 25783 31FB1A5A120A5D0600DC02A0 /* DeviceMotionData.cpp in Sources */, 25784 25784 31FB1A5C120A5D0600DC02A0 /* DeviceMotionEvent.cpp in Sources */, 25785 59D1C10411EB5DCF00B638C8 /* DeviceOrientation.cpp in Sources */,25786 25785 59309A1111F4AE5800250603 /* DeviceOrientationClientMock.cpp in Sources */, 25787 25786 59A8F1D411A69508001AC34A /* DeviceOrientationController.cpp in Sources */, 25787 59D1C10411EB5DCF00B638C8 /* DeviceOrientationData.cpp in Sources */, 25788 25788 59A85EA2119D68D900DEF1EF /* DeviceOrientationEvent.cpp in Sources */, 25789 25789 CECADFC6153778FF00E37068 /* DictationAlternative.cpp in Sources */, -
trunk/Source/WebCore/bindings/js/JSDeviceOrientationEventCustom.cpp
r117646 r121016 30 30 #include "JSDeviceOrientationEvent.h" 31 31 32 #include "DeviceOrientation .h"32 #include "DeviceOrientationData.h" 33 33 #include "DeviceOrientationEvent.h" 34 34 … … 84 84 bool absoluteProvided = !exec->argument(5).isUndefinedOrNull(); 85 85 bool absolute = exec->argument(6).toBoolean(); 86 RefPtr<DeviceOrientation > orientation = DeviceOrientation::create(alphaProvided, alpha, betaProvided, beta, gammaProvided, gamma, absoluteProvided, absolute);86 RefPtr<DeviceOrientationData> orientation = DeviceOrientationData::create(alphaProvided, alpha, betaProvided, beta, gammaProvided, gamma, absoluteProvided, absolute); 87 87 DeviceOrientationEvent* imp = static_cast<DeviceOrientationEvent*>(impl()); 88 88 imp->initDeviceOrientationEvent(type, bubbles, cancelable, orientation.get()); -
trunk/Source/WebCore/bindings/v8/custom/V8DeviceOrientationEventCustom.cpp
r118998 r121016 29 29 #if ENABLE(DEVICE_ORIENTATION) 30 30 31 #include "DeviceOrientation .h"31 #include "DeviceOrientationData.h" 32 32 #include "V8Binding.h" 33 33 #include "V8BindingMacros.h" … … 94 94 bool absoluteProvided = !isUndefinedOrNull(args[6]); 95 95 bool absolute = args[6]->BooleanValue(); 96 RefPtr<DeviceOrientation > orientation = DeviceOrientation::create(alphaProvided, alpha, betaProvided, beta, gammaProvided, gamma, absoluteProvided, absolute);96 RefPtr<DeviceOrientationData> orientation = DeviceOrientationData::create(alphaProvided, alpha, betaProvided, beta, gammaProvided, gamma, absoluteProvided, absolute); 97 97 imp->initDeviceOrientationEvent(type, bubbles, cancelable, orientation.get()); 98 98 return v8::Handle<v8::Value>(); -
trunk/Source/WebCore/dom/DOMAllInOne.cpp
r120168 r121016 56 56 #include "DeviceMotionData.cpp" 57 57 #include "DeviceMotionEvent.cpp" 58 #include "DeviceOrientation.cpp"59 58 #include "DeviceOrientationController.cpp" 59 #include "DeviceOrientationData.cpp" 60 60 #include "DeviceOrientationEvent.cpp" 61 61 #include "Document.cpp" -
trunk/Source/WebCore/dom/DeviceOrientationClient.h
r107518 r121016 29 29 namespace WebCore { 30 30 31 class DeviceOrientation;32 31 class DeviceOrientationController; 32 class DeviceOrientationData; 33 33 class Page; 34 34 … … 36 36 public: 37 37 virtual ~DeviceOrientationClient() {} 38 39 38 virtual void setController(DeviceOrientationController*) = 0; 40 39 virtual void startUpdating() = 0; 41 40 virtual void stopUpdating() = 0; 42 virtual DeviceOrientation * lastOrientation() const = 0;41 virtual DeviceOrientationData* lastOrientation() const = 0; 43 42 virtual void deviceOrientationControllerDestroyed() = 0; 44 43 }; -
trunk/Source/WebCore/dom/DeviceOrientationController.cpp
r120061 r121016 27 27 #include "DeviceOrientationController.h" 28 28 29 #include "DeviceOrientation.h"30 29 #include "DeviceOrientationClient.h" 30 #include "DeviceOrientationData.h" 31 31 #include "DeviceOrientationEvent.h" 32 32 … … 56 56 ASSERT(m_client->lastOrientation()); 57 57 58 RefPtr<DeviceOrientation > orientation = m_client->lastOrientation();58 RefPtr<DeviceOrientationData> orientation = m_client->lastOrientation(); 59 59 RefPtr<DeviceOrientationEvent> event = DeviceOrientationEvent::create(eventNames().deviceorientationEvent, orientation.get()); 60 60 … … 128 128 } 129 129 130 void DeviceOrientationController::didChangeDeviceOrientation(DeviceOrientation * orientation)130 void DeviceOrientationController::didChangeDeviceOrientation(DeviceOrientationData* orientation) 131 131 { 132 132 RefPtr<DeviceOrientationEvent> event = DeviceOrientationEvent::create(eventNames().deviceorientationEvent, orientation); -
trunk/Source/WebCore/dom/DeviceOrientationController.h
r120061 r121016 35 35 namespace WebCore { 36 36 37 class DeviceOrientation ;37 class DeviceOrientationData; 38 38 class DeviceOrientationClient; 39 39 … … 51 51 void resumeEventsForAllListeners(DOMWindow*); 52 52 53 void didChangeDeviceOrientation(DeviceOrientation *);53 void didChangeDeviceOrientation(DeviceOrientationData*); 54 54 55 55 bool isActive() { return !m_listeners.isEmpty(); } -
trunk/Source/WebCore/dom/DeviceOrientationData.cpp
r121015 r121016 25 25 26 26 #include "config.h" 27 #include "DeviceOrientation .h"27 #include "DeviceOrientationData.h" 28 28 29 29 namespace WebCore { 30 30 31 PassRefPtr<DeviceOrientation > DeviceOrientation::create()31 PassRefPtr<DeviceOrientationData> DeviceOrientationData::create() 32 32 { 33 return adoptRef(new DeviceOrientation );33 return adoptRef(new DeviceOrientationData); 34 34 } 35 35 36 PassRefPtr<DeviceOrientation > DeviceOrientation::create(bool canProvideAlpha, double alpha, bool canProvideBeta, double beta, bool canProvideGamma, double gamma, bool canProvideAbsolute, bool absolute)36 PassRefPtr<DeviceOrientationData> DeviceOrientationData::create(bool canProvideAlpha, double alpha, bool canProvideBeta, double beta, bool canProvideGamma, double gamma, bool canProvideAbsolute, bool absolute) 37 37 { 38 return adoptRef(new DeviceOrientation (canProvideAlpha, alpha, canProvideBeta, beta, canProvideGamma, gamma, canProvideAbsolute, absolute));38 return adoptRef(new DeviceOrientationData(canProvideAlpha, alpha, canProvideBeta, beta, canProvideGamma, gamma, canProvideAbsolute, absolute)); 39 39 } 40 40 41 41 42 DeviceOrientation ::DeviceOrientation()42 DeviceOrientationData::DeviceOrientationData() 43 43 : m_canProvideAlpha(false) 44 44 , m_canProvideBeta(false) … … 52 52 } 53 53 54 DeviceOrientation ::DeviceOrientation(bool canProvideAlpha, double alpha, bool canProvideBeta, double beta, bool canProvideGamma, double gamma, bool canProvideAbsolute, bool absolute)54 DeviceOrientationData::DeviceOrientationData(bool canProvideAlpha, double alpha, bool canProvideBeta, double beta, bool canProvideGamma, double gamma, bool canProvideAbsolute, bool absolute) 55 55 : m_canProvideAlpha(canProvideAlpha) 56 56 , m_canProvideBeta(canProvideBeta) … … 64 64 } 65 65 66 double DeviceOrientation ::alpha() const66 double DeviceOrientationData::alpha() const 67 67 { 68 68 return m_alpha; 69 69 } 70 70 71 double DeviceOrientation ::beta() const71 double DeviceOrientationData::beta() const 72 72 { 73 73 return m_beta; 74 74 } 75 75 76 double DeviceOrientation ::gamma() const76 double DeviceOrientationData::gamma() const 77 77 { 78 78 return m_gamma; 79 79 } 80 80 81 bool DeviceOrientation ::absolute() const81 bool DeviceOrientationData::absolute() const 82 82 { 83 83 return m_absolute; 84 84 } 85 85 86 bool DeviceOrientation ::canProvideAlpha() const86 bool DeviceOrientationData::canProvideAlpha() const 87 87 { 88 88 return m_canProvideAlpha; 89 89 } 90 90 91 bool DeviceOrientation ::canProvideBeta() const91 bool DeviceOrientationData::canProvideBeta() const 92 92 { 93 93 return m_canProvideBeta; 94 94 } 95 95 96 bool DeviceOrientation ::canProvideGamma() const96 bool DeviceOrientationData::canProvideGamma() const 97 97 { 98 98 return m_canProvideGamma; 99 99 } 100 100 101 bool DeviceOrientation ::canProvideAbsolute() const101 bool DeviceOrientationData::canProvideAbsolute() const 102 102 { 103 103 return m_canProvideAbsolute; -
trunk/Source/WebCore/dom/DeviceOrientationData.h
r121015 r121016 24 24 */ 25 25 26 #ifndef DeviceOrientation _h27 #define DeviceOrientation _h26 #ifndef DeviceOrientationData_h 27 #define DeviceOrientationData_h 28 28 29 29 #include <wtf/PassRefPtr.h> … … 32 32 namespace WebCore { 33 33 34 class DeviceOrientation : public RefCounted<DeviceOrientation> {34 class DeviceOrientationData : public RefCounted<DeviceOrientationData> { 35 35 public: 36 static PassRefPtr<DeviceOrientation > create();37 static PassRefPtr<DeviceOrientation > create(bool canProvideAlpha, double alpha, bool canProvideBeta, double beta, bool canProvideGamma, double gamma, bool canProvideAbsolute = false, bool absolute = false);36 static PassRefPtr<DeviceOrientationData> create(); 37 static PassRefPtr<DeviceOrientationData> create(bool canProvideAlpha, double alpha, bool canProvideBeta, double beta, bool canProvideGamma, double gamma, bool canProvideAbsolute = false, bool absolute = false); 38 38 39 39 double alpha() const; … … 47 47 48 48 private: 49 DeviceOrientation ();50 DeviceOrientation (bool canProvideAlpha, double alpha, bool canProvideBeta, double beta, bool canProvideGamma, double gamma, bool canProvideAbsolute, bool absolute);49 DeviceOrientationData(); 50 DeviceOrientationData(bool canProvideAlpha, double alpha, bool canProvideBeta, double beta, bool canProvideGamma, double gamma, bool canProvideAbsolute, bool absolute); 51 51 52 52 bool m_canProvideAlpha; … … 62 62 } // namespace WebCore 63 63 64 #endif // DeviceOrientation _h64 #endif // DeviceOrientationData_h -
trunk/Source/WebCore/dom/DeviceOrientationEvent.cpp
r98044 r121016 27 27 #include "DeviceOrientationEvent.h" 28 28 29 #include "DeviceOrientation .h"29 #include "DeviceOrientationData.h" 30 30 #include "EventNames.h" 31 31 … … 37 37 38 38 DeviceOrientationEvent::DeviceOrientationEvent() 39 : m_orientation(DeviceOrientation ::create())39 : m_orientation(DeviceOrientationData::create()) 40 40 { 41 41 } 42 42 43 DeviceOrientationEvent::DeviceOrientationEvent(const AtomicString& eventType, DeviceOrientation * orientation)43 DeviceOrientationEvent::DeviceOrientationEvent(const AtomicString& eventType, DeviceOrientationData* orientation) 44 44 : Event(eventType, false, false) // Can't bubble, not cancelable 45 45 , m_orientation(orientation) … … 47 47 } 48 48 49 void DeviceOrientationEvent::initDeviceOrientationEvent(const AtomicString& type, bool bubbles, bool cancelable, DeviceOrientation * orientation)49 void DeviceOrientationEvent::initDeviceOrientationEvent(const AtomicString& type, bool bubbles, bool cancelable, DeviceOrientationData* orientation) 50 50 { 51 51 if (dispatched()) -
trunk/Source/WebCore/dom/DeviceOrientationEvent.h
r98044 r121016 31 31 namespace WebCore { 32 32 33 class DeviceOrientation ;33 class DeviceOrientationData; 34 34 35 35 class DeviceOrientationEvent : public Event { … … 40 40 return adoptRef(new DeviceOrientationEvent); 41 41 } 42 static PassRefPtr<DeviceOrientationEvent> create(const AtomicString& eventType, DeviceOrientation * orientation)42 static PassRefPtr<DeviceOrientationEvent> create(const AtomicString& eventType, DeviceOrientationData* orientation) 43 43 { 44 44 return adoptRef(new DeviceOrientationEvent(eventType, orientation)); 45 45 } 46 46 47 void initDeviceOrientationEvent(const AtomicString& type, bool bubbles, bool cancelable, DeviceOrientation *);47 void initDeviceOrientationEvent(const AtomicString& type, bool bubbles, bool cancelable, DeviceOrientationData*); 48 48 49 DeviceOrientation * orientation() const { return m_orientation.get(); }49 DeviceOrientationData* orientation() const { return m_orientation.get(); } 50 50 51 51 virtual const AtomicString& interfaceName() const; … … 53 53 private: 54 54 DeviceOrientationEvent(); 55 DeviceOrientationEvent(const AtomicString& eventType, DeviceOrientation *);55 DeviceOrientationEvent(const AtomicString& eventType, DeviceOrientationData*); 56 56 57 RefPtr<DeviceOrientation > m_orientation;57 RefPtr<DeviceOrientationData> m_orientation; 58 58 }; 59 59 -
trunk/Source/WebCore/loader/EmptyClients.h
r120224 r121016 592 592 virtual void startUpdating() { } 593 593 virtual void stopUpdating() { } 594 virtual DeviceOrientation * lastOrientation() const { return 0; }594 virtual DeviceOrientationData* lastOrientation() const { return 0; } 595 595 virtual void deviceOrientationControllerDestroyed() { } 596 596 }; -
trunk/Source/WebCore/platform/mock/DeviceOrientationClientMock.cpp
r95901 r121016 56 56 } 57 57 58 void DeviceOrientationClientMock::setOrientation(PassRefPtr<DeviceOrientation > orientation)58 void DeviceOrientationClientMock::setOrientation(PassRefPtr<DeviceOrientationData> orientation) 59 59 { 60 60 m_orientation = orientation; -
trunk/Source/WebCore/platform/mock/DeviceOrientationClientMock.h
r120655 r121016 27 27 #define DeviceOrientationClientMock_h 28 28 29 #include "DeviceOrientation.h"30 29 #include "DeviceOrientationClient.h" 30 #include "DeviceOrientationData.h" 31 31 #include "Timer.h" 32 32 … … 49 49 virtual void startUpdating() OVERRIDE; 50 50 virtual void stopUpdating() OVERRIDE; 51 virtual DeviceOrientation * lastOrientation() const OVERRIDE { return m_orientation.get(); }51 virtual DeviceOrientationData* lastOrientation() const OVERRIDE { return m_orientation.get(); } 52 52 virtual void deviceOrientationControllerDestroyed() OVERRIDE { } 53 53 54 void setOrientation(PassRefPtr<DeviceOrientation >);54 void setOrientation(PassRefPtr<DeviceOrientationData>); 55 55 56 56 private: 57 57 void timerFired(Timer<DeviceOrientationClientMock>*); 58 58 59 RefPtr<DeviceOrientation > m_orientation;59 RefPtr<DeviceOrientationData> m_orientation; 60 60 DeviceOrientationController* m_controller; 61 61 Timer<DeviceOrientationClientMock> m_timer; -
trunk/Source/WebCore/platform/qt/DeviceOrientationClientQt.cpp
r115812 r121016 51 51 } 52 52 53 DeviceOrientation * DeviceOrientationClientQt::lastOrientation() const53 DeviceOrientationData* DeviceOrientationClientQt::lastOrientation() const 54 54 { 55 55 return (m_provider) ? m_provider->lastOrientation() : 0; -
trunk/Source/WebCore/platform/qt/DeviceOrientationClientQt.h
r115812 r121016 21 21 #define DeviceOrientationClientQt_h 22 22 23 #include "DeviceOrientation.h"24 23 #include "DeviceOrientationClient.h" 24 #include "DeviceOrientationData.h" 25 25 26 26 #include "DeviceOrientationController.h" … … 38 38 virtual void startUpdating(); 39 39 virtual void stopUpdating(); 40 virtual DeviceOrientation * lastOrientation() const;40 virtual DeviceOrientationData* lastOrientation() const; 41 41 virtual void deviceOrientationControllerDestroyed(); 42 42 -
trunk/Source/WebCore/platform/qt/DeviceOrientationProviderQt.cpp
r115857 r121016 27 27 { 28 28 m_sensor.addFilter(this); 29 m_lastOrientation = DeviceOrientation ::create();29 m_lastOrientation = DeviceOrientationData::create(); 30 30 } 31 31 … … 67 67 // depending if the device is able do detect the alpha rotation. X (beta) and 68 68 // Y (gamma) axis are availble in this context. 69 m_lastOrientation = DeviceOrientation ::create(hasAlpha(), reading->z(),69 m_lastOrientation = DeviceOrientationData::create(hasAlpha(), reading->z(), 70 70 /* x available */ true, reading->x(), 71 71 /* y available */ true, reading->y()); -
trunk/Source/WebCore/platform/qt/DeviceOrientationProviderQt.h
r119098 r121016 21 21 #define DeviceOrientationProviderQt_h 22 22 23 #include "DeviceOrientation.h"24 23 #include "DeviceOrientationController.h" 24 #include "DeviceOrientationData.h" 25 25 #include <QRotationFilter> 26 26 #include <wtf/RefPtr.h> … … 46 46 void stop(); 47 47 bool isActive() const { return m_sensor.isActive(); } 48 DeviceOrientation * lastOrientation() const { return m_lastOrientation.get(); }48 DeviceOrientationData* lastOrientation() const { return m_lastOrientation.get(); } 49 49 bool hasAlpha() const { return m_sensor.property("hasZ").toBool(); } 50 50 51 51 private: 52 RefPtr<DeviceOrientation > m_lastOrientation;52 RefPtr<DeviceOrientationData> m_lastOrientation; 53 53 DeviceOrientationController* m_controller; 54 54 QRotationSensor m_sensor; -
trunk/Source/WebKit/blackberry/ChangeLog
r121013 r121016 1 2012-06-22 Amy Ousterhout <aousterh@chromium.org> 2 3 Renamed DeviceOrientation to DeviceOrientationData 4 https://bugs.webkit.org/show_bug.cgi?id=88663 5 6 Reviewed by Steve Block. 7 8 Updated files to use the renamed DeviceOrientationData instead of DeviceOrientation. 9 This change makes DeviceOrientationData consistent with DeviceMotionData. 10 11 * WebCoreSupport/DeviceOrientationClientBlackBerry.h: 12 (DeviceOrientationClientBlackBerry): 13 1 14 2012-06-22 Joseph Pecoraro <pecoraro@apple.com> 2 15 -
trunk/Source/WebKit/blackberry/WebCoreSupport/DeviceOrientationClientBlackBerry.h
r106976 r121016 20 20 #define DeviceOrientationClientBlackBerry_h 21 21 22 #include "DeviceOrientation.h"23 22 #include "DeviceOrientationClient.h" 23 #include "DeviceOrientationData.h" 24 24 25 25 #include <BlackBerryPlatformDeviceOrientationTrackerListener.h> … … 48 48 virtual void startUpdating(); 49 49 virtual void stopUpdating(); 50 virtual DeviceOrientation * lastOrientation() const;50 virtual DeviceOrientationData* lastOrientation() const; 51 51 virtual void deviceOrientationControllerDestroyed(); 52 52 virtual void onOrientation(const BlackBerry::Platform::DeviceOrientationEvent*); … … 56 56 BlackBerry::Platform::DeviceOrientationTracker* m_tracker; 57 57 DeviceOrientationController* m_controller; 58 RefPtr<DeviceOrientation > m_currentOrientation;58 RefPtr<DeviceOrientationData> m_currentOrientation; 59 59 }; 60 60 } -
trunk/Source/WebKit/chromium/ChangeLog
r121013 r121016 1 2012-06-22 Amy Ousterhout <aousterh@chromium.org> 2 3 Renamed DeviceOrientation to DeviceOrientationData 4 https://bugs.webkit.org/show_bug.cgi?id=88663 5 6 Reviewed by Steve Block. 7 8 Updated files to use the renamed DeviceOrientationData instead of DeviceOrientation. 9 This change makes DeviceOrientationData consistent with DeviceMotionData. 10 11 * public/WebDeviceOrientation.h: 12 (WebDeviceOrientation): 13 * src/DeviceOrientationClientProxy.cpp: 14 (WebKit::DeviceOrientationClientProxy::lastOrientation): 15 * src/DeviceOrientationClientProxy.h: 16 (DeviceOrientationClientProxy): 17 * src/WebDeviceOrientation.cpp: 18 (WebKit::WebDeviceOrientation::WebDeviceOrientation): 19 (WebKit::WebDeviceOrientation::operator=): 20 (WebKit::WebDeviceOrientation::operator PassRefPtr<WebCore::DeviceOrientationData>): 21 * src/WebDeviceOrientationController.cpp: 22 (WebKit::WebDeviceOrientationController::didChangeDeviceOrientation): 23 1 24 2012-06-22 Joseph Pecoraro <pecoraro@apple.com> 2 25 -
trunk/Source/WebKit/chromium/public/WebDeviceOrientation.h
r120655 r121016 29 29 #if WEBKIT_IMPLEMENTATION 30 30 namespace WTF { template <typename T> class PassRefPtr; } 31 namespace WebCore { class DeviceOrientation ; }31 namespace WebCore { class DeviceOrientationData; } 32 32 #endif 33 33 … … 87 87 88 88 #if WEBKIT_IMPLEMENTATION 89 WebDeviceOrientation(const WebCore::DeviceOrientation *);90 WebDeviceOrientation& operator=(const WebCore::DeviceOrientation *);91 operator WTF::PassRefPtr<WebCore::DeviceOrientation >() const;89 WebDeviceOrientation(const WebCore::DeviceOrientationData*); 90 WebDeviceOrientation& operator=(const WebCore::DeviceOrientationData*); 91 operator WTF::PassRefPtr<WebCore::DeviceOrientationData>() const; 92 92 #endif 93 93 -
trunk/Source/WebKit/chromium/src/DeviceOrientationClientProxy.cpp
r95901 r121016 27 27 #include "DeviceOrientationClientProxy.h" 28 28 29 #include "DeviceOrientation .h"29 #include "DeviceOrientationData.h" 30 30 #include "WebDeviceOrientation.h" 31 31 #include "WebDeviceOrientationController.h" … … 61 61 } 62 62 63 WebCore::DeviceOrientation * DeviceOrientationClientProxy::lastOrientation() const63 WebCore::DeviceOrientationData* DeviceOrientationClientProxy::lastOrientation() const 64 64 { 65 65 if (!m_client) 66 66 return 0; 67 67 68 // Cache the DeviceOrientation pointer so its reference count does not drop to zero upon return.68 // Cache the DeviceOrientationData pointer so its reference count does not drop to zero upon return. 69 69 m_lastOrientation = m_client->lastOrientation(); 70 70 -
trunk/Source/WebKit/chromium/src/DeviceOrientationClientProxy.h
r120655 r121016 27 27 #define DeviceOrientationClientProxy_h 28 28 29 #include "DeviceOrientation.h"30 29 #include "DeviceOrientationClient.h" 30 #include "DeviceOrientationData.h" 31 31 #include "WebDeviceOrientationClient.h" 32 32 #include <wtf/RefPtr.h> … … 48 48 virtual void startUpdating() OVERRIDE; 49 49 virtual void stopUpdating() OVERRIDE; 50 virtual WebCore::DeviceOrientation * lastOrientation() const OVERRIDE;50 virtual WebCore::DeviceOrientationData* lastOrientation() const OVERRIDE; 51 51 virtual void deviceOrientationControllerDestroyed() OVERRIDE; 52 52 53 53 private: 54 54 WebDeviceOrientationClient* m_client; 55 mutable RefPtr<WebCore::DeviceOrientation > m_lastOrientation;55 mutable RefPtr<WebCore::DeviceOrientationData> m_lastOrientation; 56 56 }; 57 57 -
trunk/Source/WebKit/chromium/src/WebDeviceOrientation.cpp
r120655 r121016 27 27 #include "WebDeviceOrientation.h" 28 28 29 #include "DeviceOrientation .h"29 #include "DeviceOrientationData.h" 30 30 #include <wtf/PassRefPtr.h> 31 31 32 32 namespace WebKit { 33 33 34 WebDeviceOrientation::WebDeviceOrientation(const WebCore::DeviceOrientation * orientation)34 WebDeviceOrientation::WebDeviceOrientation(const WebCore::DeviceOrientationData* orientation) 35 35 { 36 36 if (!orientation) { … … 58 58 } 59 59 60 WebDeviceOrientation& WebDeviceOrientation::operator=(const WebCore::DeviceOrientation * orientation)60 WebDeviceOrientation& WebDeviceOrientation::operator=(const WebCore::DeviceOrientationData* orientation) 61 61 { 62 62 if (!orientation) { … … 85 85 } 86 86 87 WebDeviceOrientation::operator PassRefPtr<WebCore::DeviceOrientation >() const87 WebDeviceOrientation::operator PassRefPtr<WebCore::DeviceOrientationData>() const 88 88 { 89 89 if (m_isNull) 90 90 return 0; 91 return WebCore::DeviceOrientation ::create(m_canProvideAlpha, m_alpha, m_canProvideBeta, m_beta, m_canProvideGamma, m_gamma, m_canProvideAbsolute, m_absolute);91 return WebCore::DeviceOrientationData::create(m_canProvideAlpha, m_alpha, m_canProvideBeta, m_beta, m_canProvideGamma, m_gamma, m_canProvideAbsolute, m_absolute); 92 92 } 93 93 -
trunk/Source/WebKit/chromium/src/WebDeviceOrientationController.cpp
r120716 r121016 27 27 #include "WebDeviceOrientationController.h" 28 28 29 #include "DeviceOrientation.h"30 29 #include "DeviceOrientationController.h" 30 #include "DeviceOrientationData.h" 31 31 #include "WebDeviceOrientation.h" 32 32 #include <wtf/PassRefPtr.h> … … 36 36 void WebDeviceOrientationController::didChangeDeviceOrientation(const WebDeviceOrientation& orientation) 37 37 { 38 RefPtr<WebCore::DeviceOrientation > deviceOrientation = PassRefPtr<WebCore::DeviceOrientation>(orientation);38 RefPtr<WebCore::DeviceOrientationData> deviceOrientation = PassRefPtr<WebCore::DeviceOrientationData>(orientation); 39 39 m_controller->didChangeDeviceOrientation(deviceOrientation.get()); 40 40 } -
trunk/Source/WebKit/efl/ChangeLog
r120694 r121016 1 2012-06-22 Amy Ousterhout <aousterh@chromium.org> 2 3 Renamed DeviceOrientation to DeviceOrientationData 4 https://bugs.webkit.org/show_bug.cgi?id=88663 5 6 Reviewed by Steve Block. 7 8 Updated files to use the renamed DeviceOrientationData instead of DeviceOrientation. 9 This change makes DeviceOrientationData consistent with DeviceMotionData. 10 11 * WebCoreSupport/DeviceOrientationClientEfl.h: 12 (DeviceOrientationClientEfl): 13 1 14 2012-06-19 Sergio Villar Senin <svillar@igalia.com> 2 15 -
trunk/Source/WebKit/efl/WebCoreSupport/DeviceOrientationClientEfl.h
r95901 r121016 21 21 #define DeviceOrientationClientEfl_h 22 22 23 #include "DeviceOrientation.h"24 23 #include "DeviceOrientationClient.h" 24 #include "DeviceOrientationData.h" 25 25 26 26 namespace WebCore { … … 34 34 virtual void startUpdating(); 35 35 virtual void stopUpdating(); 36 virtual DeviceOrientation * lastOrientation() const;36 virtual DeviceOrientationData* lastOrientation() const; 37 37 virtual void deviceOrientationControllerDestroyed(); 38 38 -
trunk/Source/WebKit/gtk/ChangeLog
r120918 r121016 1 2012-06-22 Amy Ousterhout <aousterh@chromium.org> 2 3 Renamed DeviceOrientation to DeviceOrientationData 4 https://bugs.webkit.org/show_bug.cgi?id=88663 5 6 Reviewed by Steve Block. 7 8 Updated files to use the renamed DeviceOrientationData instead of DeviceOrientation. 9 This change makes DeviceOrientationData consistent with DeviceMotionData. 10 11 * WebCoreSupport/DeviceOrientationClientGtk.h: 12 (DeviceOrientationClientGtk): 13 1 14 2012-06-21 Daniel Drake <dsd@laptop.org> 2 15 -
trunk/Source/WebKit/gtk/WebCoreSupport/DeviceOrientationClientGtk.h
r95901 r121016 22 22 #define DeviceOrientationClientGtk_h 23 23 24 #include "DeviceOrientation.h"25 24 #include "DeviceOrientationClient.h" 25 #include "DeviceOrientationData.h" 26 26 27 27 namespace WebKit { … … 35 35 virtual void startUpdating(); 36 36 virtual void stopUpdating(); 37 virtual WebCore::DeviceOrientation * lastOrientation() const;37 virtual WebCore::DeviceOrientationData* lastOrientation() const; 38 38 virtual void deviceOrientationControllerDestroyed(); 39 39 -
trunk/Source/WebKit/mac/ChangeLog
r120885 r121016 1 2012-06-22 Amy Ousterhout <aousterh@chromium.org> 2 3 Renamed DeviceOrientation to DeviceOrientationData 4 https://bugs.webkit.org/show_bug.cgi?id=88663 5 6 Reviewed by Steve Block. 7 8 Updated files to use the renamed DeviceOrientationData instead of DeviceOrientation. 9 This change makes DeviceOrientationData consistent with DeviceMotionData. 10 * WebCoreSupport/WebDeviceOrientationClient.h: 11 (WebDeviceOrientationClient): 12 * WebCoreSupport/WebDeviceOrientationClient.mm: 13 (WebDeviceOrientationClient::lastOrientation): 14 * WebView/WebDeviceOrientation.mm: 15 * WebView/WebDeviceOrientationInternal.h: 16 1 17 2012-06-20 Garret Kelly <gdk@chromium.org> 2 18 -
trunk/Source/WebKit/mac/WebCoreSupport/WebDeviceOrientationClient.h
r95901 r121016 47 47 virtual void startUpdating() OVERRIDE; 48 48 virtual void stopUpdating() OVERRIDE; 49 virtual WebCore::DeviceOrientation * lastOrientation() const OVERRIDE;49 virtual WebCore::DeviceOrientationData* lastOrientation() const OVERRIDE; 50 50 virtual void deviceOrientationControllerDestroyed() OVERRIDE; 51 51 -
trunk/Source/WebKit/mac/WebCoreSupport/WebDeviceOrientationClient.mm
r95901 r121016 56 56 } 57 57 58 DeviceOrientation * WebDeviceOrientationClient::lastOrientation() const58 DeviceOrientationData* WebDeviceOrientationClient::lastOrientation() const 59 59 { 60 60 return core([getProvider() lastOrientation]); -
trunk/Source/WebKit/mac/WebView/WebDeviceOrientation.mm
r95901 r121016 30 30 @implementation WebDeviceOrientationInternal 31 31 32 - (id)initWithCoreDeviceOrientation:(PassRefPtr<DeviceOrientation >)coreDeviceOrientation32 - (id)initWithCoreDeviceOrientation:(PassRefPtr<DeviceOrientationData>)coreDeviceOrientation 33 33 { 34 34 self = [super init]; … … 43 43 @implementation WebDeviceOrientation (Internal) 44 44 45 - (id)initWithCoreDeviceOrientation:(PassRefPtr<WebCore::DeviceOrientation >)coreDeviceOrientation45 - (id)initWithCoreDeviceOrientation:(PassRefPtr<WebCore::DeviceOrientationData>)coreDeviceOrientation 46 46 { 47 47 self = [super init]; … … 56 56 @implementation WebDeviceOrientation 57 57 58 DeviceOrientation * core(WebDeviceOrientation* orientation)58 DeviceOrientationData* core(WebDeviceOrientation* orientation) 59 59 { 60 60 return orientation ? orientation->m_internal->m_orientation.get() : 0; … … 66 66 if (!self) 67 67 return nil; 68 m_internal = [[WebDeviceOrientationInternal alloc] initWithCoreDeviceOrientation:DeviceOrientation ::create(canProvideAlpha, alpha, canProvideBeta, beta, canProvideGamma, gamma)];68 m_internal = [[WebDeviceOrientationInternal alloc] initWithCoreDeviceOrientation:DeviceOrientationData::create(canProvideAlpha, alpha, canProvideBeta, beta, canProvideGamma, gamma)]; 69 69 return self; 70 70 } -
trunk/Source/WebKit/mac/WebView/WebDeviceOrientationInternal.h
r95901 r121016 26 26 #import "WebDeviceOrientation.h" 27 27 28 #import <WebCore/DeviceOrientation .h>28 #import <WebCore/DeviceOrientationData.h> 29 29 #import <wtf/RefPtr.h> 30 30 31 31 @interface WebDeviceOrientationInternal : NSObject { 32 32 @public 33 RefPtr<WebCore::DeviceOrientation > m_orientation;33 RefPtr<WebCore::DeviceOrientationData> m_orientation; 34 34 } 35 35 36 - (id)initWithCoreDeviceOrientation:(PassRefPtr<WebCore::DeviceOrientation >)coreDeviceOrientation;36 - (id)initWithCoreDeviceOrientation:(PassRefPtr<WebCore::DeviceOrientationData>)coreDeviceOrientation; 37 37 @end 38 38 39 39 @interface WebDeviceOrientation (Internal) 40 40 41 - (id)initWithCoreDeviceOrientation:(PassRefPtr<WebCore::DeviceOrientation >)coreDeviceOrientation;41 - (id)initWithCoreDeviceOrientation:(PassRefPtr<WebCore::DeviceOrientationData>)coreDeviceOrientation; 42 42 43 43 @end 44 44 45 WebCore::DeviceOrientation * core(WebDeviceOrientation*);45 WebCore::DeviceOrientationData* core(WebDeviceOrientation*); -
trunk/Source/WebKit/qt/ChangeLog
r120915 r121016 1 2012-06-22 Amy Ousterhout <aousterh@chromium.org> 2 3 Renamed DeviceOrientation to DeviceOrientationData 4 https://bugs.webkit.org/show_bug.cgi?id=88663 5 6 Reviewed by Steve Block. 7 8 Updated files to use the renamed DeviceOrientationData instead of DeviceOrientation. 9 This change makes DeviceOrientationData consistent with DeviceMotionData. 10 11 * WebCoreSupport/DumpRenderTreeSupportQt.cpp: 12 (DumpRenderTreeSupportQt::setMockDeviceOrientation): 13 1 14 2012-06-21 Thiago Marcos P. Santos <thiago.santos@intel.com> 2 15 -
trunk/Source/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.cpp
r120054 r121016 34 34 #include "ContextMenuClientQt.h" 35 35 #include "ContextMenuController.h" 36 #include "DeviceOrientation.h"37 36 #include "DeviceOrientationClientMock.h" 38 37 #include "DeviceOrientationController.h" 38 #include "DeviceOrientationData.h" 39 39 #include "DocumentLoader.h" 40 40 #include "Editor.h" … … 770 770 Page* corePage = QWebPagePrivate::core(page); 771 771 DeviceOrientationClientMock* mockClient = toDeviceOrientationClientMock(DeviceOrientationController::from(corePage)->client()); 772 mockClient->setOrientation(DeviceOrientation ::create(canProvideAlpha, alpha, canProvideBeta, beta, canProvideGamma, gamma));772 mockClient->setOrientation(DeviceOrientationData::create(canProvideAlpha, alpha, canProvideBeta, beta, canProvideGamma, gamma)); 773 773 #endif 774 774 }
Note: See TracChangeset
for help on using the changeset viewer.