@@ -72,12 +72,12 @@ void NotificationManagerLinux::onClose(NotifyNotification *notif)
72
72
73
73
bool NotificationManagerLinux::AddDesktopNotification (const content::ShowDesktopNotificationHostMsgParams& params,
74
74
const int render_process_id,
75
- const int render_view_id ,
75
+ const int render_frame_id ,
76
76
const int notification_id,
77
77
const bool worker,
78
78
const std::vector<SkBitmap>* bitmaps) {
79
79
80
- content::RenderViewHost* host = content::RenderFrameHost::FromID (render_process_id, render_view_id )->GetRenderViewHost ();
80
+ content::RenderViewHost* host = content::RenderFrameHost::FromID (render_process_id, render_frame_id )->GetRenderViewHost ();
81
81
if (host == NULL )
82
82
return false ;
83
83
@@ -88,7 +88,7 @@ bool NotificationManagerLinux::AddDesktopNotification(const content::ShowDesktop
88
88
DesktopNotificationParams desktop_notification_params;
89
89
desktop_notification_params.params_ = params;
90
90
desktop_notification_params.render_process_id_ = render_process_id;
91
- desktop_notification_params.render_view_id_ = render_view_id ;
91
+ desktop_notification_params.render_frame_id_ = render_frame_id ;
92
92
93
93
// download the icon image first
94
94
content::WebContents::ImageDownloadCallback imageDownloadCallback = base::Bind (&NotificationManager::ImageDownloadCallback);
@@ -118,7 +118,7 @@ bool NotificationManagerLinux::AddDesktopNotification(const content::ShowDesktop
118
118
NotificationData data;
119
119
data.mNotification = notif;
120
120
data.mRenderProcessId = render_process_id;
121
- data.mRenderViewId = render_view_id ;
121
+ data.mRenderViewId = render_frame_id ;
122
122
mNotificationIDmap [notification_id] = data;
123
123
}
124
124
else {
@@ -133,7 +133,7 @@ bool NotificationManagerLinux::AddDesktopNotification(const content::ShowDesktop
133
133
g_object_ref (G_OBJECT (notif));
134
134
onClose (notif);
135
135
data.mRenderProcessId = render_process_id;
136
- data.mRenderViewId = render_view_id ;
136
+ data.mRenderViewId = render_frame_id ;
137
137
mNotificationIDmap [notification_id] = data;
138
138
}
139
139
}
@@ -146,16 +146,16 @@ bool NotificationManagerLinux::AddDesktopNotification(const content::ShowDesktop
146
146
147
147
GError* error = NULL ;
148
148
if (notify_notification_show (notif, &error)) {
149
- DesktopNotificationPostDisplay (render_process_id, render_view_id , notification_id);
149
+ DesktopNotificationPostDisplay (render_process_id, render_frame_id , notification_id);
150
150
}
151
151
else {
152
152
base::string16 errorMsg = base::UTF8ToUTF16 (error->message );
153
- DesktopNotificationPostError (render_process_id, render_view_id , notification_id, errorMsg);
153
+ DesktopNotificationPostError (render_process_id, render_frame_id , notification_id, errorMsg);
154
154
}
155
155
return error==NULL ;
156
156
}
157
157
158
- bool NotificationManagerLinux::CancelDesktopNotification (int render_process_id, int render_view_id , int notification_id) {
158
+ bool NotificationManagerLinux::CancelDesktopNotification (int render_process_id, int render_frame_id , int notification_id) {
159
159
NotificationMap::const_iterator i = getNotification (notification_id);
160
160
if (i!=mNotificationIDmap .end ()) {
161
161
return notify_notification_close (i->second .mNotification , NULL );
@@ -165,10 +165,10 @@ bool NotificationManagerLinux::CancelDesktopNotification(int render_process_id,
165
165
166
166
bool NotificationManagerLinux::AddDesktopNotification (const content::ShowDesktopNotificationHostMsgParams& params,
167
167
const int render_process_id,
168
- const int render_view_id ,
168
+ const int render_frame_id ,
169
169
const int notification_id,
170
170
const bool worker) {
171
- return AddDesktopNotification (params, render_process_id, render_view_id , notification_id, worker, NULL );
171
+ return AddDesktopNotification (params, render_process_id, render_frame_id , notification_id, worker, NULL );
172
172
}
173
173
174
174
} // namespace nw
0 commit comments