| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "ui/views/widget/native_widget_gtk.h" | 5 #include "ui/views/widget/native_widget_gtk.h" |
| 6 | 6 |
| 7 #include <X11/Xatom.h> | 7 #include <X11/Xatom.h> |
| 8 #include <X11/Xlib.h> | 8 #include <X11/Xlib.h> |
| 9 #include <X11/extensions/shape.h> | 9 #include <X11/extensions/shape.h> |
| 10 #include <gdk/gdk.h> | 10 #include <gdk/gdk.h> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "ui/base/x/x11_util.h" | 30 #include "ui/base/x/x11_util.h" |
| 31 #include "ui/gfx/canvas_skia_paint.h" | 31 #include "ui/gfx/canvas_skia_paint.h" |
| 32 #include "ui/gfx/compositor/compositor.h" | 32 #include "ui/gfx/compositor/compositor.h" |
| 33 #include "ui/gfx/gtk_util.h" | 33 #include "ui/gfx/gtk_util.h" |
| 34 #include "ui/gfx/path.h" | 34 #include "ui/gfx/path.h" |
| 35 #include "ui/gfx/screen.h" | 35 #include "ui/gfx/screen.h" |
| 36 #include "ui/views/bubble/bubble_delegate.h" | 36 #include "ui/views/bubble/bubble_delegate.h" |
| 37 #include "ui/views/controls/textfield/native_textfield_views.h" | 37 #include "ui/views/controls/textfield/native_textfield_views.h" |
| 38 #include "ui/views/focus/view_storage.h" | 38 #include "ui/views/focus/view_storage.h" |
| 39 #include "ui/views/ime/input_method_gtk.h" | 39 #include "ui/views/ime/input_method_gtk.h" |
| 40 #include "ui/views/views_delegate.h" |
| 40 #include "ui/views/widget/drop_target_gtk.h" | 41 #include "ui/views/widget/drop_target_gtk.h" |
| 41 #include "ui/views/widget/gtk_views_fixed.h" | 42 #include "ui/views/widget/gtk_views_fixed.h" |
| 42 #include "ui/views/widget/gtk_views_window.h" | 43 #include "ui/views/widget/gtk_views_window.h" |
| 43 #include "ui/views/widget/root_view.h" | 44 #include "ui/views/widget/root_view.h" |
| 44 #include "ui/views/widget/tooltip_manager_gtk.h" | 45 #include "ui/views/widget/tooltip_manager_gtk.h" |
| 45 #include "ui/views/widget/widget_delegate.h" | 46 #include "ui/views/widget/widget_delegate.h" |
| 46 #include "views/views_delegate.h" | |
| 47 | 47 |
| 48 #if defined(HAVE_IBUS) | 48 #if defined(HAVE_IBUS) |
| 49 #include "ui/views/ime/input_method_ibus.h" | 49 #include "ui/views/ime/input_method_ibus.h" |
| 50 #endif | 50 #endif |
| 51 | 51 |
| 52 using ui::OSExchangeData; | 52 using ui::OSExchangeData; |
| 53 using ui::OSExchangeDataProviderGtk; | 53 using ui::OSExchangeDataProviderGtk; |
| 54 using ui::ActiveWindowWatcherX; | 54 using ui::ActiveWindowWatcherX; |
| 55 | 55 |
| 56 namespace views { | 56 namespace views { |
| (...skipping 2164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2221 button_pressed = event->type == GDK_BUTTON_PRESS || | 2221 button_pressed = event->type == GDK_BUTTON_PRESS || |
| 2222 event->type == GDK_2BUTTON_PRESS || | 2222 event->type == GDK_2BUTTON_PRESS || |
| 2223 event->type == GDK_3BUTTON_PRESS; | 2223 event->type == GDK_3BUTTON_PRESS; |
| 2224 gdk_event_free(event); | 2224 gdk_event_free(event); |
| 2225 } | 2225 } |
| 2226 return button_pressed; | 2226 return button_pressed; |
| 2227 } | 2227 } |
| 2228 | 2228 |
| 2229 } // namespace internal | 2229 } // namespace internal |
| 2230 } // namespace views | 2230 } // namespace views |
| OLD | NEW |