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

Unified Diff: chrome/browser/ui/libgtk2ui/gtk2_event_loop.h

Issue 224723008: [linux/aura] Supports IBus in async mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed review comments. Created 6 years, 8 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 | chrome/browser/ui/libgtk2ui/gtk2_event_loop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/libgtk2ui/gtk2_event_loop.h
diff --git a/chrome/browser/ui/libgtk2ui/gtk2_event_loop.h b/chrome/browser/ui/libgtk2ui/gtk2_event_loop.h
new file mode 100644
index 0000000000000000000000000000000000000000..d52e4fd84b1e39e3d59ffdd7011bdfd02aab56e4
--- /dev/null
+++ b/chrome/browser/ui/libgtk2ui/gtk2_event_loop.h
@@ -0,0 +1,38 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_LIBGTK2UI_GTK2_EVENT_LOOP_H_
+#define CHROME_BROWSER_UI_LIBGTK2UI_GTK2_EVENT_LOOP_H_
+
+#include "base/macros.h"
+#include "ui/base/glib/glib_integers.h"
+
+typedef union _GdkEvent GdkEvent;
+typedef struct _GdkEventKey GdkEventKey;
+
+template<typename Type> struct DefaultSingletonTraits;
+
+namespace libgtk2ui {
+
+class Gtk2EventLoop {
+ public:
+ static Gtk2EventLoop* GetInstance();
+
+ private:
+ friend struct DefaultSingletonTraits<Gtk2EventLoop>;
+
+ Gtk2EventLoop();
+ ~Gtk2EventLoop();
+
+ static void GdkEventTrampoline(GdkEvent* event, gpointer data);
+
+ void DispatchGdkEvent(GdkEvent* gdk_event);
+ void ProcessGdkEventKey(const GdkEventKey& gdk_event_key);
+
+ DISALLOW_COPY_AND_ASSIGN(Gtk2EventLoop);
+};
+
+} // namespace libgtk2ui
+
+#endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_EVENT_LOOP_H_
« no previous file with comments | « no previous file | chrome/browser/ui/libgtk2ui/gtk2_event_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698