diff options
| author | Android (Google) Code Review <android-gerrit@google.com> | 2009-12-09 11:30:03 -0800 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-12-09 11:30:03 -0800 |
| commit | 4c60312020a74a5176fd86b0552720ac8f6121ba (patch) | |
| tree | f5dca1ea716971730ae05e81c0e0b9715fc84b60 /WebCore/platform/android/ScreenAndroid.cpp | |
| parent | 3d0d3fdaa1308448b47592c03cda81c7f9e1f789 (diff) | |
| parent | 4b81185780aaef7695b652ceb7770e2307867c59 (diff) | |
| download | external_webkit-4c60312020a74a5176fd86b0552720ac8f6121ba.zip external_webkit-4c60312020a74a5176fd86b0552720ac8f6121ba.tar.gz external_webkit-4c60312020a74a5176fd86b0552720ac8f6121ba.tar.bz2 | |
Merge change I85087ab0 into eclair-mr2
* changes:
Enable orientation events.
Diffstat (limited to 'WebCore/platform/android/ScreenAndroid.cpp')
| -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, |
