Changeset 62646 in webkit


Ignore:
Timestamp:
Jul 7, 2010 2:52:32 AM (14 years ago)
Author:
steveblock@google.com
Message:

2010-07-05 Steve Block <steveblock@google.com>

Reviewed by Adam Barth.

DeviceOrientation should be renamed to DeviceOrientationController
https://bugs.webkit.org/show_bug.cgi?id=41608

No new tests, renaming only.

  • Android.mk:
  • CMakeLists.txt:
  • GNUmakefile.am:
  • WebCore.gypi:
  • WebCore.pro:
  • WebCore.vcproj/WebCore.vcproj:
  • WebCore.xcodeproj/project.pbxproj:
  • dom/DeviceOrientation.cpp: Removed.
  • dom/DeviceOrientation.h: Removed.
  • dom/DeviceOrientationController.cpp: Copied from WebCore/dom/DeviceOrientation.cpp. (WebCore::DeviceOrientationController::DeviceOrientationController): (WebCore::DeviceOrientationController::onDeviceOrientationChange):
  • dom/DeviceOrientationController.h: Copied from WebCore/dom/DeviceOrientation.h.
  • page/Page.cpp: (WebCore::Page::Page):
  • page/Page.h: (WebCore::Page::deviceOrientationController):
Location:
trunk/WebCore
Files:
10 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/Android.mk

    r62610 r62646  
    149149        dom/OptionElement.cpp \
    150150        dom/OptionGroupElement.cpp \
    151         dom/DeviceOrientation.cpp \
     151        dom/DeviceOrientationController.cpp \
    152152        dom/DeviceOrientationEvent.cpp \
    153153        dom/OverflowEvent.cpp \
  • trunk/WebCore/CMakeLists.txt

    r62610 r62646  
    775775    dom/DatasetDOMStringMap.cpp
    776776    dom/DecodedDataDocumentParser.cpp
    777     dom/DeviceOrientation.cpp
     777    dom/DeviceOrientationController.cpp
    778778    dom/DeviceOrientationEvent.cpp
    779779    dom/Document.cpp
  • trunk/WebCore/ChangeLog

    r62645 r62646  
     12010-07-05  Steve Block  <steveblock@google.com>
     2
     3        Reviewed by Adam Barth.
     4
     5        DeviceOrientation should be renamed to DeviceOrientationController
     6        https://bugs.webkit.org/show_bug.cgi?id=41608
     7
     8        No new tests, renaming only.
     9
     10        * Android.mk:
     11        * CMakeLists.txt:
     12        * GNUmakefile.am:
     13        * WebCore.gypi:
     14        * WebCore.pro:
     15        * WebCore.vcproj/WebCore.vcproj:
     16        * WebCore.xcodeproj/project.pbxproj:
     17        * dom/DeviceOrientation.cpp: Removed.
     18        * dom/DeviceOrientation.h: Removed.
     19        * dom/DeviceOrientationController.cpp: Copied from WebCore/dom/DeviceOrientation.cpp.
     20        (WebCore::DeviceOrientationController::DeviceOrientationController):
     21        (WebCore::DeviceOrientationController::onDeviceOrientationChange):
     22        * dom/DeviceOrientationController.h: Copied from WebCore/dom/DeviceOrientation.h.
     23        * page/Page.cpp:
     24        (WebCore::Page::Page):
     25        * page/Page.h:
     26        (WebCore::Page::deviceOrientationController):
     27
    1282010-07-07  Pavel Podivilov  <podivilov@chromium.org>
    229
  • trunk/WebCore/GNUmakefile.am

    r62615 r62646  
    796796        WebCore/dom/DecodedDataDocumentParser.cpp \
    797797        WebCore/dom/DecodedDataDocumentParser.h \
    798         WebCore/dom/DeviceOrientation.cpp \
    799         WebCore/dom/DeviceOrientation.h \
    800798        WebCore/dom/DeviceOrientationClient.h \
     799        WebCore/dom/DeviceOrientationController.cpp \
     800        WebCore/dom/DeviceOrientationController.h \
    801801        WebCore/dom/DeviceOrientationEvent.cpp \
    802802        WebCore/dom/DeviceOrientationEvent.h \
  • trunk/WebCore/WebCore.gypi

    r62610 r62646  
    11171117            'dom/DecodedDataDocumentParser.cpp',
    11181118            'dom/DecodedDataDocumentParser.h',
    1119             'dom/DeviceOrientation.cpp',
    1120             'dom/DeviceOrientation.h',
    11211119            'dom/DeviceOrientationClient.h',
     1120            'dom/DeviceOrientationController.cpp',
     1121            'dom/DeviceOrientationController.h',
    11221122            'dom/DeviceOrientationEvent.cpp',
    11231123            'dom/DeviceOrientationEvent.h',
  • trunk/WebCore/WebCore.pro

    r62610 r62646  
    476476    dom/CustomEvent.cpp \
    477477    dom/DecodedDataDocumentParser.cpp \
    478     dom/DeviceOrientation.cpp \
     478    dom/DeviceOrientationController.cpp \
    479479    dom/DeviceOrientationEvent.cpp \
    480480    dom/Document.cpp \
     
    12321232    dom/CustomEvent.h \
    12331233    dom/default/PlatformMessagePortChannel.h \
    1234     dom/DeviceOrientation.h \
    12351234    dom/DeviceOrientationClient.h \
     1235    dom/DeviceOrientationController.h \
    12361236    dom/DeviceOrientationEvent.h \
    12371237    dom/DocumentFragment.h \
  • trunk/WebCore/WebCore.vcproj/WebCore.vcproj

    r62610 r62646  
    3237432374                        </File>
    3237532375                        <File
    32376                                 RelativePath="..\dom\DeviceOrientation.cpp"
    32377                                 >
    32378                         </File>
    32379                         <File
    32380                                 RelativePath="..\dom\DeviceOrientation.h"
    32381                                 >
    32382                         </File>
    32383                         <File
    3238432376                                RelativePath="..\dom\DeviceOrientationClient.h"
     32377                                >
     32378                        </File>
     32379                        <File
     32380                                RelativePath="..\dom\DeviceOrientationController.cpp"
     32381                                >
     32382                        </File>
     32383                        <File
     32384                                RelativePath="..\dom\DeviceOrientationController.h"
    3238532385                                >
    3238632386                        </File>
  • trunk/WebCore/WebCore.xcodeproj/project.pbxproj

    r62626 r62646  
    11941194                59A86006119DAF7F00DEF1EF /* JSDeviceOrientationEvent.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 59A86005119DAF7F00DEF1EF /* JSDeviceOrientationEvent.cpp */; };
    11951195                59A86008119DAFA100DEF1EF /* JSDeviceOrientationEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 59A86007119DAFA100DEF1EF /* JSDeviceOrientationEvent.h */; };
    1196                 59A8F1D411A69508001AC34A /* DeviceOrientation.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 59A8F1D311A69508001AC34A /* DeviceOrientation.cpp */; };
    1197                 59A8F1D611A69513001AC34A /* DeviceOrientation.h in Headers */ = {isa = PBXBuildFile; fileRef = 59A8F1D511A69513001AC34A /* DeviceOrientation.h */; };
     1196                59A8F1D411A69508001AC34A /* DeviceOrientationController.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 59A8F1D311A69508001AC34A /* DeviceOrientationController.cpp */; };
     1197                59A8F1D611A69513001AC34A /* DeviceOrientationController.h in Headers */ = {isa = PBXBuildFile; fileRef = 59A8F1D511A69513001AC34A /* DeviceOrientationController.h */; };
    11981198                59A8F1D811A69520001AC34A /* DeviceOrientationClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 59A8F1D711A69520001AC34A /* DeviceOrientationClient.h */; };
    11991199                59A9E7B01104758800DFB4C1 /* JavaInstanceJSC.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 59A9E7AF1104758800DFB4C1 /* JavaInstanceJSC.cpp */; };
     
    69306930                59A86005119DAF7F00DEF1EF /* JSDeviceOrientationEvent.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDeviceOrientationEvent.cpp; sourceTree = "<group>"; };
    69316931                59A86007119DAFA100DEF1EF /* JSDeviceOrientationEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSDeviceOrientationEvent.h; sourceTree = "<group>"; };
    6932                 59A8F1D311A69508001AC34A /* DeviceOrientation.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DeviceOrientation.cpp; sourceTree = "<group>"; };
    6933                 59A8F1D511A69513001AC34A /* DeviceOrientation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DeviceOrientation.h; sourceTree = "<group>"; };
     6932                59A8F1D311A69508001AC34A /* DeviceOrientationController.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DeviceOrientationController.cpp; sourceTree = "<group>"; };
     6933                59A8F1D511A69513001AC34A /* DeviceOrientationController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DeviceOrientationController.h; sourceTree = "<group>"; };
    69346934                59A8F1D711A69520001AC34A /* DeviceOrientationClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DeviceOrientationClient.h; sourceTree = "<group>"; };
    69356935                59A9E7AF1104758800DFB4C1 /* JavaInstanceJSC.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = JavaInstanceJSC.cpp; path = jsc/JavaInstanceJSC.cpp; sourceTree = "<group>"; };
     
    1687216872                                A8C228A011D5722E00D5A7D3 /* DecodedDataDocumentParser.cpp */,
    1687316873                                A8C2289F11D5722E00D5A7D3 /* DecodedDataDocumentParser.h */,
    16874                                 59A8F1D311A69508001AC34A /* DeviceOrientation.cpp */,
    16875                                 59A8F1D511A69513001AC34A /* DeviceOrientation.h */,
     16874                                59A8F1D311A69508001AC34A /* DeviceOrientationController.cpp */,
     16875                                59A8F1D511A69513001AC34A /* DeviceOrientationController.h */,
    1687616876                                59A8F1D711A69520001AC34A /* DeviceOrientationClient.h */,
    1687716877                                59A85EA1119D68D900DEF1EF /* DeviceOrientationEvent.cpp */,
     
    1737917379                                93F1998208245E59001E9ABC /* DeprecatedPtrList.h in Headers */,
    1738017380                                93F1996D08245E59001E9ABC /* DeprecatedPtrListImpl.h in Headers */,
    17381                                 59A8F1D611A69513001AC34A /* DeviceOrientation.h in Headers */,
     17381                                59A8F1D611A69513001AC34A /* DeviceOrientationController.h in Headers */,
    1738217382                                59A8F1D811A69520001AC34A /* DeviceOrientationClient.h in Headers */,
    1738317383                                59A85EA4119D68EC00DEF1EF /* DeviceOrientationEvent.h in Headers */,
     
    2026920269                                93309DE0099E64920056E581 /* DeleteSelectionCommand.cpp in Sources */,
    2027020270                                93F19A3C08245E59001E9ABC /* DeprecatedPtrListImpl.cpp in Sources */,
    20271                                 59A8F1D411A69508001AC34A /* DeviceOrientation.cpp in Sources */,
     20271                                59A8F1D411A69508001AC34A /* DeviceOrientationController.cpp in Sources */,
    2027220272                                59A85EA2119D68D900DEF1EF /* DeviceOrientationEvent.cpp in Sources */,
    2027320273                                B2F34FE90E82F82700F627CD /* DNSCFNet.cpp in Sources */,
  • trunk/WebCore/dom/DeviceOrientationController.cpp

    r62477 r62646  
    2525
    2626#include "config.h"
    27 #include "DeviceOrientation.h"
     27#include "DeviceOrientationController.h"
    2828
    2929#if ENABLE(DEVICE_ORIENTATION)
     
    3535namespace WebCore {
    3636
    37 DeviceOrientation::DeviceOrientation(Page* page, DeviceOrientationClient* client)
     37DeviceOrientationController::DeviceOrientationController(Page* page, DeviceOrientationClient* client)
    3838    : m_page(page)
    3939    , m_client(client)
     
    4141}
    4242
    43 void DeviceOrientation::onDeviceOrientationChange(double alpha, double beta, double gamma)
     43void DeviceOrientationController::onDeviceOrientationChange(double alpha, double beta, double gamma)
    4444{
    4545    // FIXME: Fire DeviceOrientationEvents on the window object of all frames
  • trunk/WebCore/dom/DeviceOrientationController.h

    r62477 r62646  
    2424 */
    2525
    26 #ifndef DeviceOrientation_h
    27 #define DeviceOrientation_h
     26#ifndef DeviceOrientationController_h
     27#define DeviceOrientationController_h
    2828
    2929namespace WebCore {
     
    3232class Page;
    3333
    34 class DeviceOrientation {
     34class DeviceOrientationController {
    3535public:
    36     DeviceOrientation(Page*, DeviceOrientationClient*);
     36    DeviceOrientationController(Page*, DeviceOrientationClient*);
    3737
    3838    // FIXME: Add methods to start and stop the service.
     
    4747} // namespace WebCore
    4848
    49 #endif // DeviceOrientation_h
     49#endif // DeviceOrientationController_h
  • trunk/WebCore/page/Page.cpp

    r62607 r62646  
    3030#include "ContextMenuController.h"
    3131#include "DOMWindow.h"
    32 #include "DeviceOrientation.h"
     32#include "DeviceOrientationController.h"
    3333#include "DragController.h"
    3434#include "EditorClient.h"
     
    139139#endif
    140140#if ENABLE(DEVICE_ORIENTATION)
    141     , m_deviceOrientation(new DeviceOrientation(this, deviceOrientationClient))
     141    , m_deviceOrientationController(new DeviceOrientationController(this, deviceOrientationClient))
    142142#endif
    143143    , m_settings(new Settings(this))
  • trunk/WebCore/page/Page.h

    r62607 r62646  
    4444    class ContextMenuClient;
    4545    class ContextMenuController;
    46     class DeviceOrientation;
    4746    class DeviceOrientationClient;
     47    class DeviceOrientationController;
    4848    class Document;
    4949    class DragClient;
     
    150150#endif
    151151#if ENABLE(DEVICE_ORIENTATION)
    152         DeviceOrientation* deviceOrientation() const { return m_deviceOrientation.get(); }
     152        DeviceOrientationController* deviceOrientationController() const { return m_deviceOrientationController.get(); }
    153153#endif
    154154        Settings* settings() const { return m_settings.get(); }
     
    267267#endif
    268268#if ENABLE(DEVICE_ORIENTATION)
    269         OwnPtr<DeviceOrientation> m_deviceOrientation;
     269        OwnPtr<DeviceOrientationController> m_deviceOrientationController;
    270270#endif
    271271        OwnPtr<Settings> m_settings;
Note: See TracChangeset for help on using the changeset viewer.