summaryrefslogtreecommitdiffstats
path: root/WebCore/loader/EmptyClients.h
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2010-08-11 14:24:41 +0100
committerBen Murdoch <benm@google.com>2010-08-13 12:42:03 +0100
commit71592cfffc4caa56c15e84b432898708f043d1d3 (patch)
tree74c9b711064901d635d005f3d49fd991a7fa56a6 /WebCore/loader/EmptyClients.h
parentaf7a57d40c100e8c29fa6bd758313d0f27d0ac05 (diff)
downloadexternal_webkit-71592cfffc4caa56c15e84b432898708f043d1d3.zip
external_webkit-71592cfffc4caa56c15e84b432898708f043d1d3.tar.gz
external_webkit-71592cfffc4caa56c15e84b432898708f043d1d3.tar.bz2
Merge WebKit at r65072 : Complete cherry-pick of WebKit change 43848 to add EmptyDeviceMotionClient
See https://android-git.corp.google.com/g/#change,61020 which picked part of this change for EmptyDeviceOrientationClient. See also https://bugs.webkit.org/show_bug.cgi?id=43848 Change-Id: Idefd9becf89199ae9afe475074fc56a66252db8a
Diffstat (limited to 'WebCore/loader/EmptyClients.h')
-rw-r--r--WebCore/loader/EmptyClients.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/WebCore/loader/EmptyClients.h b/WebCore/loader/EmptyClients.h
index c40e3cc..0d30713 100644
--- a/WebCore/loader/EmptyClients.h
+++ b/WebCore/loader/EmptyClients.h
@@ -31,6 +31,7 @@
#include "ChromeClient.h"
#include "Console.h"
#include "ContextMenuClient.h"
+#include "DeviceMotionClient.h"
#include "DeviceOrientationClient.h"
#include "DocumentLoader.h"
#include "DragClient.h"
@@ -540,6 +541,14 @@ public:
virtual bool sendMessageToFrontend(const String&) { return false; }
};
+class EmptyDeviceMotionClient : public DeviceMotionClient {
+public:
+ virtual void setController(DeviceMotionController*) { }
+ virtual void startUpdating() { }
+ virtual void stopUpdating() { }
+ virtual DeviceMotionData* currentDeviceMotion() const { return 0; }
+};
+
class EmptyDeviceOrientationClient : public DeviceOrientationClient {
public:
virtual void setController(DeviceOrientationController*) { }