1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_LIBGTK2UI_GTK2_EVENT_LOOP_H_
6 #define CHROME_BROWSER_UI_LIBGTK2UI_GTK2_EVENT_LOOP_H_
8 #include "base/macros.h"
9 #include "ui/base/glib/glib_integers.h"
11 typedef union _GdkEvent GdkEvent;
12 typedef struct _GdkEventKey GdkEventKey;
14 template<typename Type> struct DefaultSingletonTraits;
20 static Gtk2EventLoop* GetInstance();
23 friend struct DefaultSingletonTraits<Gtk2EventLoop>;
28 static void GdkEventTrampoline(GdkEvent* event, gpointer data);
30 void DispatchGdkEvent(GdkEvent* gdk_event);
31 void ProcessGdkEventKey(const GdkEventKey& gdk_event_key);
33 DISALLOW_COPY_AND_ASSIGN(Gtk2EventLoop);
36 } // namespace libgtk2ui
38 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_EVENT_LOOP_H_