Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4493)

Unified Diff: chrome/renderer/device_orientation_dispatcher.cc

Issue 6151011: Introduce RenderView::Observer interface so that RenderView doesn't have to k... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698