| Index: Source/web/ScreenOrientationClientProxy.cpp
|
| diff --git a/Source/web/ScreenOrientationClientProxy.cpp b/Source/web/ScreenOrientationClientProxy.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..88c695a6bce79cefe654d95fd68ed1676f4cd2db
|
| --- /dev/null
|
| +++ b/Source/web/ScreenOrientationClientProxy.cpp
|
| @@ -0,0 +1,29 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "config.h"
|
| +#include "ScreenOrientationClientProxy.h"
|
| +
|
| +#include "WebScreenOrientationClient.h"
|
| +#include "WebScreenOrientationController.h"
|
| +#include "modules/screen_orientation/ScreenOrientationController.h"
|
| +
|
| +namespace blink {
|
| +
|
| +using namespace WebCore;
|
| +
|
| +ScreenOrientationClientProxy::ScreenOrientationClientProxy(WebScreenOrientationClient* client)
|
| + : m_client(client)
|
| +{
|
| +}
|
| +
|
| +void ScreenOrientationClientProxy::setController(ScreenOrientationController* controller)
|
| +{
|
| + if (m_client) {
|
| + // Ownership of the WebScreenOrientationController is transferred to the client.
|
| + m_client->setController(new WebScreenOrientationController(controller));
|
| + }
|
| +}
|
| +
|
| +} // namespace blink
|
|
|