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

Unified Diff: content/browser/device_orientation/message_filter.cc

Issue 6688054: Move geolocation, desktop notification, and device orientation into their own message files. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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/common/webkit_param_traits.h ('k') | content/browser/geolocation/geolocation_dispatcher_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/device_orientation/message_filter.cc
===================================================================
--- content/browser/device_orientation/message_filter.cc (revision 78781)
+++ content/browser/device_orientation/message_filter.cc (working copy)
@@ -5,13 +5,12 @@
#include "content/browser/device_orientation/message_filter.h"
#include "base/scoped_ptr.h"
-#include "chrome/common/render_messages.h"
-#include "chrome/common/render_messages_params.h"
#include "content/browser/browser_thread.h"
#include "content/browser/device_orientation/orientation.h"
#include "content/browser/device_orientation/provider.h"
#include "content/browser/renderer_host/render_view_host.h"
#include "content/browser/renderer_host/render_view_host_notification_task.h"
+#include "content/common/device_orientation_messages.h"
namespace device_orientation {
@@ -60,7 +59,7 @@
void MessageFilter::ObserverDelegate::OnOrientationUpdate(
const Orientation& orientation) {
- ViewMsg_DeviceOrientationUpdated_Params params;
+ DeviceOrientationMsg_Updated_Params params;
params.can_provide_alpha = orientation.can_provide_alpha_;
params.alpha = orientation.alpha_;
params.can_provide_beta = orientation.can_provide_beta_;
@@ -68,7 +67,7 @@
params.can_provide_gamma = orientation.can_provide_gamma_;
params.gamma = orientation.gamma_;
- sender_->Send(new ViewMsg_DeviceOrientationUpdated(render_view_id_, params));
+ sender_->Send(new DeviceOrientationMsg_Updated(render_view_id_, params));
}
bool MessageFilter::OnMessageReceived(const IPC::Message& message,
@@ -76,10 +75,8 @@
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
bool handled = true;
IPC_BEGIN_MESSAGE_MAP_EX(MessageFilter, message, *message_was_ok)
- IPC_MESSAGE_HANDLER(ViewHostMsg_DeviceOrientation_StartUpdating,
- OnStartUpdating)
- IPC_MESSAGE_HANDLER(ViewHostMsg_DeviceOrientation_StopUpdating,
- OnStopUpdating)
+ IPC_MESSAGE_HANDLER(DeviceOrientationHostMsg_StartUpdating, OnStartUpdating)
+ IPC_MESSAGE_HANDLER(DeviceOrientationHostMsg_StopUpdating, OnStopUpdating)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
return handled;
« no previous file with comments | « chrome/common/webkit_param_traits.h ('k') | content/browser/geolocation/geolocation_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698