| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 BASE_CLIPBOARD_H_ | 5 #ifndef BASE_CLIPBOARD_H_ |
| 6 #define BASE_CLIPBOARD_H_ | 6 #define BASE_CLIPBOARD_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/file_path.h" | |
| 13 #include "base/process.h" | 12 #include "base/process.h" |
| 14 #include "base/string16.h" | 13 #include "base/string16.h" |
| 15 #include "base/gfx/size.h" | 14 |
| 15 namespace gfx { |
| 16 class Size; |
| 17 } |
| 18 |
| 19 class FilePath; |
| 16 | 20 |
| 17 class Clipboard { | 21 class Clipboard { |
| 18 public: | 22 public: |
| 19 typedef std::string FormatType; | 23 typedef std::string FormatType; |
| 20 #if defined(OS_LINUX) | 24 #if defined(OS_LINUX) |
| 21 typedef struct _GtkClipboard GtkClipboard; | 25 typedef struct _GtkClipboard GtkClipboard; |
| 22 typedef std::map<FormatType, std::pair<char*, size_t> > TargetMap; | 26 typedef std::map<FormatType, std::pair<char*, size_t> > TargetMap; |
| 23 #endif | 27 #endif |
| 24 | 28 |
| 25 // ObjectType designates the type of data to be stored in the clipboard. This | 29 // ObjectType designates the type of data to be stored in the clipboard. This |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 void InsertMapping(const char* key, char* data, size_t data_len); | 199 void InsertMapping(const char* key, char* data, size_t data_len); |
| 196 | 200 |
| 197 TargetMap* clipboard_data_; | 201 TargetMap* clipboard_data_; |
| 198 GtkClipboard* clipboard_; | 202 GtkClipboard* clipboard_; |
| 199 #endif | 203 #endif |
| 200 | 204 |
| 201 DISALLOW_EVIL_CONSTRUCTORS(Clipboard); | 205 DISALLOW_EVIL_CONSTRUCTORS(Clipboard); |
| 202 }; | 206 }; |
| 203 | 207 |
| 204 #endif // BASE_CLIPBOARD_H_ | 208 #endif // BASE_CLIPBOARD_H_ |
| OLD | NEW |