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

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

Issue 6200005: Move OSExchangeData from src/app to src/ui/base/dragdrop... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « views/widget/widget_gtk.h ('k') | webkit/glue/webkit_glue.gypi » ('j') | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/widget_gtk.h" 5 #include "views/widget/widget_gtk.h"
6 6
7 #include <gdk/gdk.h> 7 #include <gdk/gdk.h>
8 #include <gdk/gdkx.h> 8 #include <gdk/gdkx.h>
9 #include <X11/extensions/shape.h> 9 #include <X11/extensions/shape.h>
10 10
11 #include <set> 11 #include <set>
12 #include <vector> 12 #include <vector>
13 13
14 #include "app/drag_drop_types.h" 14 #include "app/drag_drop_types.h"
15 #include "app/os_exchange_data.h"
16 #include "app/os_exchange_data_provider_gtk.h"
17 #include "base/auto_reset.h" 15 #include "base/auto_reset.h"
18 #include "base/compiler_specific.h" 16 #include "base/compiler_specific.h"
19 #include "base/message_loop.h" 17 #include "base/message_loop.h"
20 #include "base/utf_string_conversions.h" 18 #include "base/utf_string_conversions.h"
21 #include "gfx/path.h" 19 #include "gfx/path.h"
20 #include "ui/base/dragdrop/os_exchange_data.h"
21 #include "ui/base/dragdrop/os_exchange_data_provider_gtk.h"
22 #include "views/widget/default_theme_provider.h" 22 #include "views/widget/default_theme_provider.h"
23 #include "views/widget/drop_target_gtk.h" 23 #include "views/widget/drop_target_gtk.h"
24 #include "views/widget/gtk_views_fixed.h" 24 #include "views/widget/gtk_views_fixed.h"
25 #include "views/widget/gtk_views_window.h" 25 #include "views/widget/gtk_views_window.h"
26 #include "views/widget/root_view.h" 26 #include "views/widget/root_view.h"
27 #include "views/widget/tooltip_manager_gtk.h" 27 #include "views/widget/tooltip_manager_gtk.h"
28 #include "views/widget/widget_delegate.h" 28 #include "views/widget/widget_delegate.h"
29 #include "views/widget/widget_utils.h" 29 #include "views/widget/widget_utils.h"
30 #include "views/window/window_gtk.h" 30 #include "views/window/window_gtk.h"
31 31
32 using ui::OSExchangeData;
33 using ui::OSExchangeDataProviderGtk;
34
32 namespace { 35 namespace {
33 36
34 // g_object data keys to associate a WidgetGtk object to a GtkWidget. 37 // g_object data keys to associate a WidgetGtk object to a GtkWidget.
35 const char* kWidgetKey = "__VIEWS_WIDGET__"; 38 const char* kWidgetKey = "__VIEWS_WIDGET__";
36 // A g_object data key to associate a CompositePainter object to a GtkWidget. 39 // A g_object data key to associate a CompositePainter object to a GtkWidget.
37 const char* kCompositePainterKey = "__VIEWS_COMPOSITE_PAINTER__"; 40 const char* kCompositePainterKey = "__VIEWS_COMPOSITE_PAINTER__";
38 // A g_object data key to associate the flag whether or not the widget 41 // A g_object data key to associate the flag whether or not the widget
39 // is composited to a GtkWidget. gtk_widget_is_composited simply tells 42 // is composited to a GtkWidget. gtk_widget_is_composited simply tells
40 // if x11 supports composition and cannot be used to tell if given widget 43 // if x11 supports composition and cannot be used to tell if given widget
41 // is composited. 44 // is composited.
(...skipping 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after
1655 GtkWindow* window = GTK_WINDOW(element->data); 1658 GtkWindow* window = GTK_WINDOW(element->data);
1656 DCHECK(window); 1659 DCHECK(window);
1657 RootView *root_view = FindRootView(window); 1660 RootView *root_view = FindRootView(window);
1658 if (root_view) 1661 if (root_view)
1659 root_view->NotifyLocaleChanged(); 1662 root_view->NotifyLocaleChanged();
1660 } 1663 }
1661 g_list_free(window_list); 1664 g_list_free(window_list);
1662 } 1665 }
1663 1666
1664 } // namespace views 1667 } // namespace views
OLDNEW
« no previous file with comments | « views/widget/widget_gtk.h ('k') | webkit/glue/webkit_glue.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698