| Index: chrome/renderer/device_orientation_dispatcher.cc
|
| ===================================================================
|
| --- chrome/renderer/device_orientation_dispatcher.cc (revision 71253)
|
| +++ chrome/renderer/device_orientation_dispatcher.cc (working copy)
|
| @@ -5,15 +5,11 @@
|
| #include "chrome/renderer/device_orientation_dispatcher.h"
|
|
|
| #include "chrome/common/render_messages_params.h"
|
| -#include "chrome/renderer/render_view.h"
|
| #include "third_party/WebKit/WebKit/chromium/public/WebDeviceOrientation.h"
|
| #include "third_party/WebKit/WebKit/chromium/public/WebDeviceOrientationController.h"
|
|
|
| -DeviceOrientationDispatcher::DeviceOrientationDispatcher(
|
| - RenderView* render_view)
|
| - : render_view_(render_view),
|
| - controller_(NULL),
|
| - started_(false) {
|
| +DeviceOrientationDispatcher::DeviceOrientationDispatcher()
|
| + : controller_(NULL), started_(false) {
|
| }
|
|
|
| DeviceOrientationDispatcher::~DeviceOrientationDispatcher() {
|
| @@ -37,14 +33,12 @@
|
| }
|
|
|
| void DeviceOrientationDispatcher::startUpdating() {
|
| - render_view_->Send(new ViewHostMsg_DeviceOrientation_StartUpdating(
|
| - render_view_->routing_id()));
|
| + Send(new ViewHostMsg_DeviceOrientation_StartUpdating(routing_id()));
|
| started_ = true;
|
| }
|
|
|
| void DeviceOrientationDispatcher::stopUpdating() {
|
| - render_view_->Send(new ViewHostMsg_DeviceOrientation_StopUpdating(
|
| - render_view_->routing_id()));
|
| + Send(new ViewHostMsg_DeviceOrientation_StopUpdating(routing_id()));
|
| started_ = false;
|
| }
|
|
|
|
|