| Index: Tools/DumpRenderTree/chromium/TestRunner/src/MockWebDeviceMotionProvider.h
|
| diff --git a/Tools/DumpRenderTree/chromium/TestRunner/src/MockWebDeviceMotionProvider.h b/Tools/DumpRenderTree/chromium/TestRunner/src/MockWebDeviceMotionProvider.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cc88ad30886cd0dfc035a1329d2eb8790d88de3b
|
| --- /dev/null
|
| +++ b/Tools/DumpRenderTree/chromium/TestRunner/src/MockWebDeviceMotionProvider.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 MockWebDeviceMotionProvider_h
|
| +#define MockWebDeviceMotionProvider_h
|
| +
|
| +#include "base/memory/scoped_ptr.h"
|
| +#include "base/shared_memory.h"
|
| +#include "base/time.h"
|
| +#include "third_party/WebKit/Source/Platform/chromium/public/WebDeviceMotionProvider.h"
|
| +
|
| +namespace WebKit {
|
| +class WebDeviceMotionData;
|
| +class WebDeviceMotionListener;
|
| +}
|
| +
|
| +namespace WebTestRunner {
|
| +
|
| +class MockWebDeviceMotionProvider : public WebKit::WebDeviceMotionProvider {
|
| +public:
|
| + MockWebDeviceMotionProvider() { }
|
| + virtual ~MockWebDeviceMotionProvider() { }
|
| +
|
| + // Sets the listener to receive updates for device motion data at
|
| + // regular intervals.
|
| + virtual void setListener(WebKit::WebDeviceMotionListener*) OVERRIDE;
|
| +
|
| + void fireEvent(WebKit::WebDeviceMotionData&);
|
| +
|
| +private:
|
| + WebKit::WebDeviceMotionListener* m_listener;
|
| +
|
| +};
|
| +
|
| +} // namespace WebTestRunner
|
| +
|
| +#endif // MockWebDeviceMotionProvider_h
|
|
|