| OLD | NEW |
| 1 // Copyright (c) 2010 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 "app/os_exchange_data_provider_gtk.h" | 5 #include "ui/base/dragdrop/os_exchange_data_provider_gtk.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "app/gtk_dnd_util.h" | 9 #include "app/gtk_dnd_util.h" |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| 11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
| 12 #include "net/base/net_util.h" | 12 #include "net/base/net_util.h" |
| 13 | 13 |
| 14 namespace ui { |
| 15 |
| 14 OSExchangeDataProviderGtk::OSExchangeDataProviderGtk( | 16 OSExchangeDataProviderGtk::OSExchangeDataProviderGtk( |
| 15 int known_formats, | 17 int known_formats, |
| 16 const std::set<GdkAtom>& known_custom_formats) | 18 const std::set<GdkAtom>& known_custom_formats) |
| 17 : known_formats_(known_formats), | 19 : known_formats_(known_formats), |
| 18 known_custom_formats_(known_custom_formats), | 20 known_custom_formats_(known_custom_formats), |
| 19 formats_(0), | 21 formats_(0), |
| 20 drag_image_(NULL) { | 22 drag_image_(NULL) { |
| 21 } | 23 } |
| 22 | 24 |
| 23 OSExchangeDataProviderGtk::OSExchangeDataProviderGtk() | 25 OSExchangeDataProviderGtk::OSExchangeDataProviderGtk() |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 // OSExchangeData, public: | 237 // OSExchangeData, public: |
| 236 | 238 |
| 237 // static | 239 // static |
| 238 OSExchangeData::Provider* OSExchangeData::CreateProvider() { | 240 OSExchangeData::Provider* OSExchangeData::CreateProvider() { |
| 239 return new OSExchangeDataProviderGtk(); | 241 return new OSExchangeDataProviderGtk(); |
| 240 } | 242 } |
| 241 | 243 |
| 242 GdkAtom OSExchangeData::RegisterCustomFormat(const std::string& type) { | 244 GdkAtom OSExchangeData::RegisterCustomFormat(const std::string& type) { |
| 243 return gdk_atom_intern(type.c_str(), false); | 245 return gdk_atom_intern(type.c_str(), false); |
| 244 } | 246 } |
| 247 |
| 248 } // namespace ui |
| OLD | NEW |