OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/drop_target_gtk.h" | 5 #include "views/widget/drop_target_gtk.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <iterator> | 8 #include <iterator> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
14 #include "gfx/point.h" | |
15 #include "net/base/net_util.h" | 14 #include "net/base/net_util.h" |
16 #include "ui/base/dragdrop/drag_drop_types.h" | 15 #include "ui/base/dragdrop/drag_drop_types.h" |
17 #include "ui/base/dragdrop/gtk_dnd_util.h" | 16 #include "ui/base/dragdrop/gtk_dnd_util.h" |
18 #include "ui/base/dragdrop/os_exchange_data_provider_gtk.h" | 17 #include "ui/base/dragdrop/os_exchange_data_provider_gtk.h" |
| 18 #include "ui/gfx/point.h" |
19 #include "views/widget/root_view.h" | 19 #include "views/widget/root_view.h" |
20 #include "views/widget/widget_gtk.h" | 20 #include "views/widget/widget_gtk.h" |
21 | 21 |
22 using ui::OSExchangeData; | 22 using ui::OSExchangeData; |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 std::string GdkAtomToString(GdkAtom atom) { | 26 std::string GdkAtomToString(GdkAtom atom) { |
27 gchar* c_name = gdk_atom_name(atom); | 27 gchar* c_name = gdk_atom_name(atom); |
28 std::string name(c_name); | 28 std::string name(c_name); |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 gtk_drag_get_data(widget, context, *i, time); | 320 gtk_drag_get_data(widget, context, *i, time); |
321 } | 321 } |
322 } | 322 } |
323 } | 323 } |
324 | 324 |
325 OSExchangeDataProviderGtk& DropTargetGtk::data_provider() const { | 325 OSExchangeDataProviderGtk& DropTargetGtk::data_provider() const { |
326 return static_cast<OSExchangeDataProviderGtk&>(data_->provider()); | 326 return static_cast<OSExchangeDataProviderGtk&>(data_->provider()); |
327 } | 327 } |
328 | 328 |
329 } // namespace views | 329 } // namespace views |
OLD | NEW |