@@ -88,6 +88,7 @@ class UI_EXPORT Clipboard : NON_EXPORTED_BASE(public base::ThreadChecker) {
88
88
bool operator<(const FormatType& other) const ;
89
89
#endif
90
90
91
+ #if !defined(TOOLKIT_QT)
91
92
#if defined(OS_WIN)
92
93
const FORMATETC& ToFormatEtc () const { return data_; }
93
94
#elif defined(OS_MACOSX)
@@ -97,6 +98,9 @@ class UI_EXPORT Clipboard : NON_EXPORTED_BASE(public base::ThreadChecker) {
97
98
#elif defined(USE_AURA)
98
99
const std::string& ToString () const { return data_; }
99
100
#endif
101
+ #else
102
+ const std::string& ToString () const { return data_; }
103
+ #endif // !defined(TOOLKIT_QT)
100
104
101
105
bool Equals (const FormatType& other) const ;
102
106
@@ -111,7 +115,10 @@ class UI_EXPORT Clipboard : NON_EXPORTED_BASE(public base::ThreadChecker) {
111
115
//
112
116
// Note that in some cases, the accessor for the wrapped descriptor may be
113
117
// public, as these format types can be used by drag and drop code as well.
114
- #if defined(OS_WIN)
118
+ #if defined(TOOLKIT_QT)
119
+ explicit FormatType (const std::string& native_format);
120
+ std::string data_;
121
+ #elif defined(OS_WIN)
115
122
explicit FormatType (UINT native_format);
116
123
FormatType (UINT native_format, LONG index);
117
124
UINT ToUINT () const { return data_.cfFormat ; }
@@ -339,7 +346,7 @@ class UI_EXPORT Clipboard : NON_EXPORTED_BASE(public base::ThreadChecker) {
339
346
void WriteData (const FormatType& format,
340
347
const char * data_data,
341
348
size_t data_len);
342
- #if defined(OS_WIN)
349
+ #if !defined(TOOLKIT_QT) && defined(OS_WIN)
343
350
void WriteBitmapFromHandle (HBITMAP source_hbitmap,
344
351
const gfx::Size& size);
345
352
0 commit comments