#include "common/options_switches.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_view.h"
+#include "content/public/common/renderer_preferences.h"
#include "ui/gfx/gtk_util.h"
#include "ui/gfx/rect.h"
+#include "ui/gfx/skia_utils_gtk.h"
namespace atom {
g_signal_connect(window_, "delete-event",
G_CALLBACK(OnWindowDeleteEventThunk), this);
+ g_signal_connect(window_, "focus-out-event",
+ G_CALLBACK(OnFocusOutThunk), this);
SetWebKitColorStyle();
}
return TRUE;
}
+gboolean NativeWindowGtk::OnFocusOut(GtkWidget* window, GdkEventFocus*) {
+ NotifyWindowBlur();
+ return FALSE;
+}
+
// static
NativeWindow* NativeWindow::Create(content::WebContents* web_contents,
base::DictionaryValue* options) {
CHROMEGTK_CALLBACK_1(NativeWindowGtk, gboolean, OnWindowDeleteEvent,
GdkEvent*);
+ CHROMEGTK_CALLBACK_1(NativeWindowGtk, gboolean, OnFocusOut, GdkEventFocus*);
GtkWindow* window_;