| Index: Tools/DumpRenderTree/chromium/TestRunner/src/MockWebDeviceMotionListener.h
|
| diff --git a/Tools/DumpRenderTree/chromium/TestRunner/src/MockWebDeviceMotionListener.h b/Tools/DumpRenderTree/chromium/TestRunner/src/MockWebDeviceMotionListener.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..71807ab234e90094b9c8a9e0e863c26772f8c4d1
|
| --- /dev/null
|
| +++ b/Tools/DumpRenderTree/chromium/TestRunner/src/MockWebDeviceMotionListener.h
|
| @@ -0,0 +1,38 @@
|
| +// Copyright (c) 2013 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.
|
| +
|
| +#ifndef MockWebDeviceMotionListener_h
|
| +#define MockWebDeviceMotionListener_h
|
| +
|
| +#include "base/memory/scoped_ptr.h"
|
| +#include "base/shared_memory.h"
|
| +#include "base/time.h"
|
| +#include "third_party/WebKit/Source/Platform/chromium/public/WebDeviceMotionListener.h"
|
| +
|
| +namespace WebKit {
|
| +class WebDeviceMotionData;
|
| +class WebDeviceMotionListener;
|
| +}
|
| +
|
| +namespace WebTestRunner {
|
| +
|
| +class MockWebDeviceMotionListener : public WebKit::WebDeviceMotionListener {
|
| +public:
|
| + MockWebDeviceMotionListener() { }
|
| + virtual ~MockWebDeviceMotionListener() { }
|
| +
|
| + virtual void didChangeDeviceMotion(const WebKit::WebDeviceMotionData&);
|
| +
|
| + // Sets the listener to receive updates for device motion data at
|
| + // regular intervals.
|
| + virtual void setListener(WebKit::WebDeviceMotionListener*);
|
| +
|
| +private:
|
| + WebKit::WebDeviceMotionListener* m_listener;
|
| +
|
| +};
|
| +
|
| +} // namespace WebTestRunner
|
| +
|
| +#endif // MockWebDeviceMotionListener_h
|
|
|