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_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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 void WriteObjects(const ObjectMap& objects); | 120 void WriteObjects(const ObjectMap& objects); |
121 | 121 |
122 // Behaves as above. If there is some shared memory handle passed as one of | 122 // Behaves as above. If there is some shared memory handle passed as one of |
123 // the objects, it came from the process designated by |process|. This will | 123 // the objects, it came from the process designated by |process|. This will |
124 // assist in turning it into a shared memory region that the current process | 124 // assist in turning it into a shared memory region that the current process |
125 // can use. | 125 // can use. |
126 void WriteObjects(const ObjectMap& objects, base::ProcessHandle process); | 126 void WriteObjects(const ObjectMap& objects, base::ProcessHandle process); |
127 | 127 |
128 // On Linux/BSD, we need to know when the clipboard is set to a URL. Most | 128 // On Linux/BSD, we need to know when the clipboard is set to a URL. Most |
129 // platforms don't care. | 129 // platforms don't care. |
130 #if defined(OS_WIN) || defined(OS_MACOSX) | 130 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(USE_AURA) |
131 void DidWriteURL(const std::string& utf8_text) {} | 131 void DidWriteURL(const std::string& utf8_text) {} |
132 #else // !defined(OS_WIN) && !defined(OS_MACOSX) | 132 #else // !defined(OS_WIN) && !defined(OS_MACOSX) |
133 void DidWriteURL(const std::string& utf8_text); | 133 void DidWriteURL(const std::string& utf8_text); |
134 #endif | 134 #endif |
135 | 135 |
136 // Tests whether the clipboard contains a certain format | 136 // Tests whether the clipboard contains a certain format |
137 bool IsFormatAvailable(const FormatType& format, Buffer buffer) const; | 137 bool IsFormatAvailable(const FormatType& format, Buffer buffer) const; |
138 | 138 |
139 // As above, but instead of interpreting |format| by some platform-specific | 139 // As above, but instead of interpreting |format| by some platform-specific |
140 // definition, interpret it as a literal MIME type. | 140 // definition, interpret it as a literal MIME type. |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 static const char kMimeTypeText[]; | 289 static const char kMimeTypeText[]; |
290 static const char kMimeTypeHTML[]; | 290 static const char kMimeTypeHTML[]; |
291 static const char kMimeTypePNG[]; | 291 static const char kMimeTypePNG[]; |
292 | 292 |
293 DISALLOW_COPY_AND_ASSIGN(Clipboard); | 293 DISALLOW_COPY_AND_ASSIGN(Clipboard); |
294 }; | 294 }; |
295 | 295 |
296 } // namespace ui | 296 } // namespace ui |
297 | 297 |
298 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_H_ | 298 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_H_ |
OLD | NEW |