| 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_CLIPBOARD_CLIPBOARD_H_ | 5 #ifndef UI_BASE_CLIPBOARD_CLIPBOARD_H_ |
| 6 #define UI_BASE_CLIPBOARD_CLIPBOARD_H_ | 6 #define UI_BASE_CLIPBOARD_CLIPBOARD_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 // | 111 // |
| 112 // Note that in some cases, the accessor for the wrapped descriptor may be | 112 // Note that in some cases, the accessor for the wrapped descriptor may be |
| 113 // public, as these format types can be used by drag and drop code as well. | 113 // public, as these format types can be used by drag and drop code as well. |
| 114 #if defined(OS_WIN) | 114 #if defined(OS_WIN) |
| 115 explicit FormatType(UINT native_format); | 115 explicit FormatType(UINT native_format); |
| 116 FormatType(UINT native_format, LONG index); | 116 FormatType(UINT native_format, LONG index); |
| 117 UINT ToUINT() const { return data_.cfFormat; } | 117 UINT ToUINT() const { return data_.cfFormat; } |
| 118 FORMATETC data_; | 118 FORMATETC data_; |
| 119 #elif defined(USE_AURA) | 119 #elif defined(USE_AURA) |
| 120 explicit FormatType(const std::string& native_format); | 120 explicit FormatType(const std::string& native_format); |
| 121 const std::string& data() const { return data_; } |
| 121 std::string data_; | 122 std::string data_; |
| 122 #elif defined(OS_MACOSX) | 123 #elif defined(OS_MACOSX) |
| 123 explicit FormatType(NSString* native_format); | 124 explicit FormatType(NSString* native_format); |
| 124 NSString* ToNSString() const { return data_; } | 125 NSString* ToNSString() const { return data_; } |
| 125 NSString* data_; | 126 NSString* data_; |
| 126 #elif defined(TOOLKIT_GTK) | 127 #elif defined(TOOLKIT_GTK) |
| 127 explicit FormatType(const std::string& native_format); | 128 explicit FormatType(const std::string& native_format); |
| 128 explicit FormatType(const GdkAtom& native_format); | 129 explicit FormatType(const GdkAtom& native_format); |
| 129 const GdkAtom& ToGdkAtom() const { return data_; } | 130 const GdkAtom& ToGdkAtom() const { return data_; } |
| 130 GdkAtom data_; | 131 GdkAtom data_; |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 class AuraX11Details; | 392 class AuraX11Details; |
| 392 scoped_ptr<AuraX11Details> aurax11_details_; | 393 scoped_ptr<AuraX11Details> aurax11_details_; |
| 393 #endif | 394 #endif |
| 394 | 395 |
| 395 DISALLOW_COPY_AND_ASSIGN(Clipboard); | 396 DISALLOW_COPY_AND_ASSIGN(Clipboard); |
| 396 }; | 397 }; |
| 397 | 398 |
| 398 } // namespace ui | 399 } // namespace ui |
| 399 | 400 |
| 400 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_H_ | 401 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_H_ |
| OLD | NEW |