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

Unified Diff: plugin/linux/main_linux.cc

Issue 6348018: Add HANDLE_CRASHES to Linux callback functions, since they are plugin entry p... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: plugin/linux/main_linux.cc
===================================================================
--- plugin/linux/main_linux.cc (revision 71191)
+++ plugin/linux/main_linux.cc (working copy)
@@ -77,6 +77,7 @@
// Xt support functions
void LinuxTimer(XtPointer data, XtIntervalId* id) {
+ HANDLE_CRASHES;
PluginObject *obj = static_cast<PluginObject *>(data);
DCHECK(obj->xt_interval_ == *id);
obj->client()->Tick();
@@ -97,6 +98,7 @@
XtPointer user_data,
XEvent *event,
Boolean *cont) {
+ HANDLE_CRASHES;
PluginObject *obj = static_cast<PluginObject *>(user_data);
if (event->type != Expose) return;
DrawPlugin(obj);
@@ -252,6 +254,7 @@
XtPointer user_data,
XEvent *xevent,
Boolean *cont) {
+ HANDLE_CRASHES;
PluginObject *obj = static_cast<PluginObject *>(user_data);
XKeyEvent *key_event = &xevent->xkey;
Event::Type type;
@@ -291,6 +294,7 @@
XtPointer user_data,
XEvent *xevent,
Boolean *cont) {
+ HANDLE_CRASHES;
PluginObject *obj = static_cast<PluginObject *>(user_data);
XButtonEvent *button_event = &xevent->xbutton;
Event::Type type;
@@ -349,6 +353,7 @@
XtPointer user_data,
XEvent *xevent,
Boolean *cont) {
+ HANDLE_CRASHES;
PluginObject *obj = static_cast<PluginObject *>(user_data);
if (xevent->type != MotionNotify)
return;
@@ -366,6 +371,7 @@
XtPointer user_data,
XEvent *xevent,
Boolean *cont) {
+ HANDLE_CRASHES;
PluginObject *obj = static_cast<PluginObject *>(user_data);
switch (xevent->type) {
case EnterNotify:
@@ -553,6 +559,7 @@
static gboolean GtkEventCallback(GtkWidget *widget,
GdkEvent *event,
gpointer user_data) {
+ HANDLE_CRASHES;
PluginObject *obj = static_cast<PluginObject *>(user_data);
DLOG_ASSERT(widget == obj->gtk_event_source_);
switch (event->type) {
@@ -587,6 +594,7 @@
static gboolean GtkConfigureEventCallback(GtkWidget *widget,
GdkEventConfigure *configure_event,
gpointer user_data) {
+ HANDLE_CRASHES;
PluginObject *obj = static_cast<PluginObject *>(user_data);
return obj->OnGtkConfigure(widget, configure_event);
}
@@ -594,11 +602,13 @@
static gboolean GtkDeleteEventCallback(GtkWidget *widget,
GdkEvent *event,
gpointer user_data) {
+ HANDLE_CRASHES;
PluginObject *obj = static_cast<PluginObject *>(user_data);
return obj->OnGtkDelete(widget, event);
}
static gboolean GtkTimeoutCallback(gpointer user_data) {
+ HANDLE_CRASHES;
PluginObject *obj = static_cast<PluginObject *>(user_data);
obj->draw_ = true;
obj->client()->Tick();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698