Commit 7bc16110 authored by mlamouri@chromium.org's avatar mlamouri@chromium.org

lockOrientation() fallback when the callback one isn't implemented.

Required to keep chromium working until it handles the callback method.

BUG=162827

Review URL: https://codereview.chromium.org/302703003

git-svn-id: svn://svn.chromium.org/blink/trunk@175128 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 464a0978
...@@ -639,8 +639,12 @@ public: ...@@ -639,8 +639,12 @@ public:
// Request a screen orientation lock and pass a |callback| object to be used // Request a screen orientation lock and pass a |callback| object to be used
// to notify of success/failure. The |callback| parameter is expected to be // to notify of success/failure. The |callback| parameter is expected to be
// owned by the implementation. // owned by the implementation.
virtual void lockOrientation(WebScreenOrientationLockType, WebLockOrientationCallback* callback) virtual void lockOrientation(WebScreenOrientationLockType orientation, WebLockOrientationCallback* callback)
{ {
// FIXME: remove this when
// lockOrientation(orientation, callback) will be handled in Chromium.
lockOrientation(orientation);
delete callback; // prevents memory leak if there is no implementation. delete callback; // prevents memory leak if there is no implementation.
} }
virtual void unlockOrientation() { } virtual void unlockOrientation() { }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment