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> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
14 #include "base/process.h" | 14 #include "base/process.h" |
15 #include "base/shared_memory.h" | 15 #include "base/shared_memory.h" |
16 #include "base/string16.h" | 16 #include "base/string16.h" |
| 17 #include "ui/ui_api.h" |
17 | 18 |
18 namespace gfx { | 19 namespace gfx { |
19 class Size; | 20 class Size; |
20 } | 21 } |
21 | 22 |
22 class FilePath; | 23 class FilePath; |
23 class SkBitmap; | 24 class SkBitmap; |
24 | 25 |
25 #if defined(TOOLKIT_USES_GTK) | 26 #if defined(TOOLKIT_USES_GTK) |
26 typedef struct _GtkClipboard GtkClipboard; | 27 typedef struct _GtkClipboard GtkClipboard; |
27 #endif | 28 #endif |
28 | 29 |
29 namespace ui { | 30 namespace ui { |
30 | 31 |
31 class Clipboard { | 32 class UI_API Clipboard { |
32 public: | 33 public: |
33 typedef std::string FormatType; | 34 typedef std::string FormatType; |
34 | 35 |
35 // ObjectType designates the type of data to be stored in the clipboard. This | 36 // ObjectType designates the type of data to be stored in the clipboard. This |
36 // designation is shared across all OSes. The system-specific designation | 37 // designation is shared across all OSes. The system-specific designation |
37 // is defined by FormatType. A single ObjectType might be represented by | 38 // is defined by FormatType. A single ObjectType might be represented by |
38 // several system-specific FormatTypes. For example, on Linux the CBF_TEXT | 39 // several system-specific FormatTypes. For example, on Linux the CBF_TEXT |
39 // ObjectType maps to "text/plain", "STRING", and several other formats. On | 40 // ObjectType maps to "text/plain", "STRING", and several other formats. On |
40 // windows it maps to CF_UNICODETEXT. | 41 // windows it maps to CF_UNICODETEXT. |
41 enum ObjectType { | 42 enum ObjectType { |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 static const char kMimeTypeText[]; | 285 static const char kMimeTypeText[]; |
285 static const char kMimeTypeHTML[]; | 286 static const char kMimeTypeHTML[]; |
286 static const char kMimeTypePNG[]; | 287 static const char kMimeTypePNG[]; |
287 | 288 |
288 DISALLOW_COPY_AND_ASSIGN(Clipboard); | 289 DISALLOW_COPY_AND_ASSIGN(Clipboard); |
289 }; | 290 }; |
290 | 291 |
291 } // namespace ui | 292 } // namespace ui |
292 | 293 |
293 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_H_ | 294 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_H_ |
OLD | NEW |