diff options
author | Patrick Scott <phanna@android.com> | 2009-12-02 08:32:13 -0500 |
---|---|---|
committer | Patrick Scott <phanna@android.com> | 2009-12-09 12:36:31 -0500 |
commit | 4b81185780aaef7695b652ceb7770e2307867c59 (patch) | |
tree | a2944783f6d398e343e6dfa87e62f8607a2a9680 /WebCore/platform/android | |
parent | bf16ddc110ef3fde2cfa1ae43ab31d993377981d (diff) | |
download | external_webkit-4b81185780aaef7695b652ceb7770e2307867c59.zip external_webkit-4b81185780aaef7695b652ceb7770e2307867c59.tar.gz external_webkit-4b81185780aaef7695b652ceb7770e2307867c59.tar.bz2 |
Enable orientation events.
Remove our old orientation hacks as webkit now supports the orientation event.
Call down into webkit when the orientation changes to send the js event.
The change to Frame.cpp has been submited to bugs.webkit.org as issue 32321.
Diffstat (limited to 'WebCore/platform/android')
-rw-r--r-- | WebCore/platform/android/ScreenAndroid.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/WebCore/platform/android/ScreenAndroid.cpp b/WebCore/platform/android/ScreenAndroid.cpp index 881c246..ad6e008 100644 --- a/WebCore/platform/android/ScreenAndroid.cpp +++ b/WebCore/platform/android/ScreenAndroid.cpp @@ -60,32 +60,6 @@ bool screenIsMonochrome(Widget* page) return false; } -#ifdef ANDROID_ORIENTATION_SUPPORT -int Screen::orientation() const -{ - android::DisplayInfo info; - android::SurfaceComposerClient::getDisplayInfo( - android::DisplayID(0), &info); - // getDisplayInfo returns an enum describing the orientation. Map the enum - // to the values described here - // (http://developer.apple.com/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/chapter_8_section_6.html) - switch (info.orientation) { - case android::ISurfaceComposer::eOrientationDefault: - return 0; - case android::ISurfaceComposer::eOrientation90: - return 90; - case android::ISurfaceComposer::eOrientation180: - return 180; - case android::ISurfaceComposer::eOrientation270: - return -90; - default: - LOGE("Bad orientation returned from getDisplayIndo %d", - info.orientation); - return 0; - } -} -#endif - // The only place I have seen these values used is // positioning popup windows. If we support multiple windows // they will be most likely full screen. Therefore, |