summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/device_orientation_dispatcher.h
diff options
context:
space:
mode:
authorhans@chromium.org <hans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-27 08:06:31 +0000
committerhans@chromium.org <hans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-27 08:06:31 +0000
commit85d2223f7c8c1d9504fd190259f349e6b9495164 (patch)
tree760304b178caae44123a0548f1178210f2acc575 /chrome/renderer/device_orientation_dispatcher.h
parenta3a93a52038a65eca22006f49e880909800de962 (diff)
downloadchromium_src-85d2223f7c8c1d9504fd190259f349e6b9495164.zip
chromium_src-85d2223f7c8c1d9504fd190259f349e6b9495164.tar.gz
chromium_src-85d2223f7c8c1d9504fd190259f349e6b9495164.tar.bz2
DeviceOrientationDispatcher: no orientation updates equal to lastOrientation().
The DeviceOrientationDispatcher, which implements WebDeviceOrientationClient, must not send orientation updates that are equal to its lastOrientation(). This can happen when the client is stopped and then started again. BUG=44654 TEST=Manual Review URL: http://codereview.chromium.org/3104038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57650 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/device_orientation_dispatcher.h')
-rw-r--r--chrome/renderer/device_orientation_dispatcher.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/renderer/device_orientation_dispatcher.h b/chrome/renderer/device_orientation_dispatcher.h
index 0370f25..e2abf37 100644
--- a/chrome/renderer/device_orientation_dispatcher.h
+++ b/chrome/renderer/device_orientation_dispatcher.h
@@ -11,6 +11,7 @@
class RenderView;
namespace IPC { class Message; }
+namespace WebKit { class WebDeviceOrientation; }
struct ViewMsg_DeviceOrientationUpdated_Params;
@@ -34,7 +35,7 @@ class DeviceOrientationDispatcher : public WebKit::WebDeviceOrientationClient {
RenderView* render_view_;
scoped_ptr<WebKit::WebDeviceOrientationController> controller_;
- scoped_ptr<ViewMsg_DeviceOrientationUpdated_Params> last_update_;
+ scoped_ptr<WebKit::WebDeviceOrientation> last_orientation_;
bool started_;
};