OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/message_loop/message_pump_gtk.h" | 5 #include "base/message_loop/message_pump_gtk.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 #include <gdk/gdkx.h> | 8 #include <gdk/gdkx.h> |
9 | 9 |
10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
11 #include "base/profiler/scoped_profile.h" | 11 #include "base/profiler/scoped_profile.h" |
12 | 12 |
| 13 #error "The GTK+ port will be deleted later this week. If you are seeing this, y
ou are trying to compile it. Please check your gyp flags for 'use_aura=0' and re
move them." |
| 14 |
13 namespace base { | 15 namespace base { |
14 | 16 |
15 namespace { | 17 namespace { |
16 | 18 |
17 ALLOW_UNUSED const char* EventToTypeString(const GdkEvent* event) { | 19 ALLOW_UNUSED const char* EventToTypeString(const GdkEvent* event) { |
18 switch (event->type) { | 20 switch (event->type) { |
19 case GDK_NOTHING: return "GDK_NOTHING"; | 21 case GDK_NOTHING: return "GDK_NOTHING"; |
20 case GDK_DELETE: return "GDK_DELETE"; | 22 case GDK_DELETE: return "GDK_DELETE"; |
21 case GDK_DESTROY: return "GDK_DESTROY"; | 23 case GDK_DESTROY: return "GDK_DESTROY"; |
22 case GDK_EXPOSE: return "GDK_EXPOSE"; | 24 case GDK_EXPOSE: return "GDK_EXPOSE"; |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 DidProcessEvent(event)); | 113 DidProcessEvent(event)); |
112 } | 114 } |
113 | 115 |
114 // static | 116 // static |
115 void MessagePumpGtk::EventDispatcher(GdkEvent* event, gpointer data) { | 117 void MessagePumpGtk::EventDispatcher(GdkEvent* event, gpointer data) { |
116 MessagePumpGtk* message_pump = reinterpret_cast<MessagePumpGtk*>(data); | 118 MessagePumpGtk* message_pump = reinterpret_cast<MessagePumpGtk*>(data); |
117 message_pump->DispatchEvents(event); | 119 message_pump->DispatchEvents(event); |
118 } | 120 } |
119 | 121 |
120 } // namespace base | 122 } // namespace base |
OLD | NEW |