OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_H_ | 5 #ifndef UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_H_ |
6 #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_H_ | 6 #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 /////////////////////////////////////////////////////////////////////////////// | 43 /////////////////////////////////////////////////////////////////////////////// |
44 | 44 |
45 // NOTE: Support for html and file contents is required by TabContentViewWin. | 45 // NOTE: Support for html and file contents is required by TabContentViewWin. |
46 // TabContentsViewGtk uses a different class to handle drag support that does | 46 // TabContentsViewGtk uses a different class to handle drag support that does |
47 // not use OSExchangeData. As such, file contents and html support is only | 47 // not use OSExchangeData. As such, file contents and html support is only |
48 // compiled on windows. | 48 // compiled on windows. |
49 class UI_EXPORT OSExchangeData { | 49 class UI_EXPORT OSExchangeData { |
50 public: | 50 public: |
51 // CustomFormats are used for non-standard data types. For example, bookmark | 51 // CustomFormats are used for non-standard data types. For example, bookmark |
52 // nodes are written using a CustomFormat. | 52 // nodes are written using a CustomFormat. |
53 #if defined(USE_AURA) | 53 #if defined(USE_AURA) && !defined(OS_WIN) |
54 // Use the same type as the clipboard (why do we want two different | 54 // Use the same type as the clipboard (why do we want two different |
55 // definitions of this on other platforms?). | 55 // definitions of this on other platforms?). |
56 typedef Clipboard::FormatType CustomFormat; | 56 typedef Clipboard::FormatType CustomFormat; |
57 #elif defined(OS_WIN) | 57 #elif defined(OS_WIN) |
58 typedef CLIPFORMAT CustomFormat; | 58 typedef CLIPFORMAT CustomFormat; |
59 #elif defined(TOOLKIT_GTK) | 59 #elif defined(TOOLKIT_GTK) |
60 typedef GdkAtom CustomFormat; | 60 typedef GdkAtom CustomFormat; |
61 #else | 61 #else |
62 typedef void* CustomFormat; | 62 typedef void* CustomFormat; |
63 #endif | 63 #endif |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 | 213 |
214 // Provides the actual data. | 214 // Provides the actual data. |
215 scoped_ptr<Provider> provider_; | 215 scoped_ptr<Provider> provider_; |
216 | 216 |
217 DISALLOW_COPY_AND_ASSIGN(OSExchangeData); | 217 DISALLOW_COPY_AND_ASSIGN(OSExchangeData); |
218 }; | 218 }; |
219 | 219 |
220 } // namespace ui | 220 } // namespace ui |
221 | 221 |
222 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_H_ | 222 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_H_ |
OLD | NEW |