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 #ifndef APP_OS_EXCHANGE_DATA_PROVIDER_GTK_H_ | 5 #ifndef UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_GTK_H_ |
6 #define APP_OS_EXCHANGE_DATA_PROVIDER_GTK_H_ | 6 #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 #include <map> | 10 #include <map> |
11 #include <set> | 11 #include <set> |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "app/os_exchange_data.h" | |
15 #include "base/pickle.h" | 14 #include "base/pickle.h" |
16 #include "base/string16.h" | 15 #include "base/string16.h" |
17 #include "gfx/point.h" | 16 #include "gfx/point.h" |
18 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
| 18 #include "ui/base/dragdrop/os_exchange_data.h" |
| 19 |
| 20 namespace ui { |
19 | 21 |
20 // OSExchangeData::Provider implementation for Gtk. OSExchangeDataProviderGtk | 22 // OSExchangeData::Provider implementation for Gtk. OSExchangeDataProviderGtk |
21 // is created with a set of known data types. In addition specific data | 23 // is created with a set of known data types. In addition specific data |
22 // types can be set on OSExchangeDataProviderGtk by way of the various setters. | 24 // types can be set on OSExchangeDataProviderGtk by way of the various setters. |
23 // The various has methods return true if the format was supplied to the | 25 // The various has methods return true if the format was supplied to the |
24 // constructor, or explicitly set. | 26 // constructor, or explicitly set. |
25 class OSExchangeDataProviderGtk : public OSExchangeData::Provider { | 27 class OSExchangeDataProviderGtk : public OSExchangeData::Provider { |
26 public: | 28 public: |
27 OSExchangeDataProviderGtk(int known_formats, | 29 OSExchangeDataProviderGtk(int known_formats, |
28 const std::set<GdkAtom>& known_custom_formats_); | 30 const std::set<GdkAtom>& known_custom_formats_); |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 // PICKLED_DATA contents. | 108 // PICKLED_DATA contents. |
107 PickleData pickle_data_; | 109 PickleData pickle_data_; |
108 | 110 |
109 // Drag image and offset data. | 111 // Drag image and offset data. |
110 GdkPixbuf* drag_image_; | 112 GdkPixbuf* drag_image_; |
111 gfx::Point cursor_offset_; | 113 gfx::Point cursor_offset_; |
112 | 114 |
113 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderGtk); | 115 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderGtk); |
114 }; | 116 }; |
115 | 117 |
116 #endif // APP_OS_EXCHANGE_DATA_PROVIDER_GTK_H_ | 118 } // namespace ui |
| 119 |
| 120 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_GTK_H_ |
OLD | NEW |