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

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
« no previous file with comments | « chrome/renderer/device_orientation_dispatcher.h ('k') | chrome/renderer/devtools_agent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/device_orientation_dispatcher.cc
===================================================================
--- chrome/renderer/device_orientation_dispatcher.cc (revision 71253)
+++ chrome/renderer/device_orientation_dispatcher.cc (working copy)
@@ -4,14 +4,14 @@
#include "chrome/renderer/device_orientation_dispatcher.h"
+#include "chrome/common/render_messages.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),
+ : RenderViewObserver(render_view),
controller_(NULL),
started_(false) {
}
@@ -37,14 +37,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;
}
« no previous file with comments | « chrome/renderer/device_orientation_dispatcher.h ('k') | chrome/renderer/devtools_agent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698