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

Unified Diff: chrome/browser/notifications/notification_object_proxy.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/browser/notifications/desktop_notifications_unittest.cc ('k') | chrome/common/common_param_traits.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/notifications/notification_object_proxy.cc
===================================================================
--- chrome/browser/notifications/notification_object_proxy.cc (revision 78781)
+++ chrome/browser/notifications/notification_object_proxy.cc (working copy)
@@ -6,9 +6,9 @@
#include "base/message_loop.h"
#include "base/string16.h"
-#include "chrome/common/render_messages.h"
#include "content/browser/browser_thread.h"
#include "content/browser/renderer_host/render_view_host.h"
+#include "content/common/desktop_notification_messages.h"
NotificationObjectProxy::NotificationObjectProxy(int process_id, int route_id,
int notification_id, bool worker)
@@ -19,22 +19,21 @@
}
void NotificationObjectProxy::Display() {
- Send(new ViewMsg_PostDisplayToNotificationObject(
- route_id_, notification_id_));
+ Send(new DesktopNotificationMsg_PostDisplay(route_id_, notification_id_));
}
void NotificationObjectProxy::Error() {
- Send(new ViewMsg_PostErrorToNotificationObject(
+ Send(new DesktopNotificationMsg_PostError(
route_id_, notification_id_, string16()));
}
void NotificationObjectProxy::Close(bool by_user) {
- Send(new ViewMsg_PostCloseToNotificationObject(
+ Send(new DesktopNotificationMsg_PostClose(
route_id_, notification_id_, by_user));
}
void NotificationObjectProxy::Click() {
- Send(new ViewMsg_PostClickToNotificationObject(route_id_, notification_id_));
+ Send(new DesktopNotificationMsg_PostClick(route_id_, notification_id_));
}
std::string NotificationObjectProxy::id() const {
« no previous file with comments | « chrome/browser/notifications/desktop_notifications_unittest.cc ('k') | chrome/common/common_param_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698