OLD | NEW |
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 #ifndef UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_GTK_H_ | 5 #ifndef UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_GTK_H_ |
6 #define UI_BASE_DRAGDROP_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 "base/pickle.h" | 14 #include "base/pickle.h" |
15 #include "base/string16.h" | 15 #include "base/string16.h" |
16 #include "gfx/point.h" | |
17 #include "googleurl/src/gurl.h" | 16 #include "googleurl/src/gurl.h" |
18 #include "ui/base/dragdrop/os_exchange_data.h" | 17 #include "ui/base/dragdrop/os_exchange_data.h" |
| 18 #include "ui/gfx/point.h" |
19 | 19 |
20 namespace ui { | 20 namespace ui { |
21 | 21 |
22 // OSExchangeData::Provider implementation for Gtk. OSExchangeDataProviderGtk | 22 // OSExchangeData::Provider implementation for Gtk. OSExchangeDataProviderGtk |
23 // 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 |
24 // 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. |
25 // 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 |
26 // constructor, or explicitly set. | 26 // constructor, or explicitly set. |
27 class OSExchangeDataProviderGtk : public OSExchangeData::Provider { | 27 class OSExchangeDataProviderGtk : public OSExchangeData::Provider { |
28 public: | 28 public: |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 // Drag image and offset data. | 111 // Drag image and offset data. |
112 GdkPixbuf* drag_image_; | 112 GdkPixbuf* drag_image_; |
113 gfx::Point cursor_offset_; | 113 gfx::Point cursor_offset_; |
114 | 114 |
115 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderGtk); | 115 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderGtk); |
116 }; | 116 }; |
117 | 117 |
118 } // namespace ui | 118 } // namespace ui |
119 | 119 |
120 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_GTK_H_ | 120 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_GTK_H_ |
OLD | NEW |