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

Side by Side Diff: views/widget/native_widget_gtk.cc

Issue 8595003: Have panels respond to changes in work area on Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move observers into their own header files. Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« ui/ui.gyp ('K') | « views/widget/native_widget_gtk.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "views/widget/native_widget_gtk.h" 5 #include "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>
11 #include <gdk/gdkx.h> 11 #include <gdk/gdkx.h>
12 12
13 #include <set> 13 #include <set>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/auto_reset.h" 16 #include "base/auto_reset.h"
17 #include "base/bind.h" 17 #include "base/bind.h"
18 #include "base/compiler_specific.h" 18 #include "base/compiler_specific.h"
19 #include "base/message_loop.h" 19 #include "base/message_loop.h"
20 #include "base/utf_string_conversions.h" 20 #include "base/utf_string_conversions.h"
21 #include "ui/base/dragdrop/drag_drop_types.h" 21 #include "ui/base/dragdrop/drag_drop_types.h"
22 #include "ui/base/dragdrop/os_exchange_data.h" 22 #include "ui/base/dragdrop/os_exchange_data.h"
23 #include "ui/base/dragdrop/os_exchange_data_provider_gtk.h" 23 #include "ui/base/dragdrop/os_exchange_data_provider_gtk.h"
24 #include "ui/base/gtk/g_object_destructor_filo.h" 24 #include "ui/base/gtk/g_object_destructor_filo.h"
25 #include "ui/base/gtk/gtk_signal_registrar.h" 25 #include "ui/base/gtk/gtk_signal_registrar.h"
26 #include "ui/base/gtk/gtk_windowing.h" 26 #include "ui/base/gtk/gtk_windowing.h"
27 #include "ui/base/gtk/scoped_handle_gtk.h" 27 #include "ui/base/gtk/scoped_handle_gtk.h"
28 #include "ui/base/hit_test.h" 28 #include "ui/base/hit_test.h"
29 #include "ui/base/x/active_window_watcher_x.h"
29 #include "ui/base/x/x11_util.h" 30 #include "ui/base/x/x11_util.h"
30 #include "ui/gfx/canvas_skia_paint.h" 31 #include "ui/gfx/canvas_skia_paint.h"
31 #include "ui/gfx/compositor/compositor.h" 32 #include "ui/gfx/compositor/compositor.h"
32 #include "ui/gfx/gtk_util.h" 33 #include "ui/gfx/gtk_util.h"
33 #include "ui/gfx/path.h" 34 #include "ui/gfx/path.h"
34 #include "ui/gfx/screen.h" 35 #include "ui/gfx/screen.h"
35 #include "ui/views/ime/input_method_gtk.h" 36 #include "ui/views/ime/input_method_gtk.h"
36 #include "views/bubble/bubble_delegate.h" 37 #include "views/bubble/bubble_delegate.h"
37 #include "views/controls/textfield/native_textfield_views.h" 38 #include "views/controls/textfield/native_textfield_views.h"
38 #include "views/focus/view_storage.h" 39 #include "views/focus/view_storage.h"
(...skipping 11 matching lines...) Expand all
50 #else 51 #else
51 #include "views/widget/tooltip_manager_gtk.h" 52 #include "views/widget/tooltip_manager_gtk.h"
52 #endif 53 #endif
53 54
54 #if defined(HAVE_IBUS) 55 #if defined(HAVE_IBUS)
55 #include "ui/views/ime/input_method_ibus.h" 56 #include "ui/views/ime/input_method_ibus.h"
56 #endif 57 #endif
57 58
58 using ui::OSExchangeData; 59 using ui::OSExchangeData;
59 using ui::OSExchangeDataProviderGtk; 60 using ui::OSExchangeDataProviderGtk;
60 using ui::ActiveWindowWatcherX;
61 61
62 namespace views { 62 namespace views {
63 63
64 namespace { 64 namespace {
65 65
66 // Links the GtkWidget to its NativeWidget. 66 // Links the GtkWidget to its NativeWidget.
67 const char* const kNativeWidgetKey = "__VIEWS_NATIVE_WIDGET__"; 67 const char* const kNativeWidgetKey = "__VIEWS_NATIVE_WIDGET__";
68 68
69 // A g_object data key to associate a CompositePainter object to a GtkWidget. 69 // A g_object data key to associate a CompositePainter object to a GtkWidget.
70 const char* kCompositePainterKey = "__VIEWS_COMPOSITE_PAINTER__"; 70 const char* kCompositePainterKey = "__VIEWS_COMPOSITE_PAINTER__";
(...skipping 2245 matching lines...) Expand 10 before | Expand all | Expand 10 after
2316 button_pressed = event->type == GDK_BUTTON_PRESS || 2316 button_pressed = event->type == GDK_BUTTON_PRESS ||
2317 event->type == GDK_2BUTTON_PRESS || 2317 event->type == GDK_2BUTTON_PRESS ||
2318 event->type == GDK_3BUTTON_PRESS; 2318 event->type == GDK_3BUTTON_PRESS;
2319 gdk_event_free(event); 2319 gdk_event_free(event);
2320 } 2320 }
2321 return button_pressed; 2321 return button_pressed;
2322 } 2322 }
2323 2323
2324 } // namespace internal 2324 } // namespace internal
2325 } // namespace views 2325 } // namespace views
OLDNEW
« ui/ui.gyp ('K') | « views/widget/native_widget_gtk.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698