| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "base/threading/platform_thread.h" | 22 #include "base/threading/platform_thread.h" |
| 23 #include "base/threading/thread_checker.h" | 23 #include "base/threading/thread_checker.h" |
| 24 #include "build/build_config.h" | 24 #include "build/build_config.h" |
| 25 #include "ui/base/clipboard/clipboard_types.h" | 25 #include "ui/base/clipboard/clipboard_types.h" |
| 26 #include "ui/base/ui_base_export.h" | 26 #include "ui/base/ui_base_export.h" |
| 27 | 27 |
| 28 #if defined(OS_WIN) | 28 #if defined(OS_WIN) |
| 29 #include <objidl.h> | 29 #include <objidl.h> |
| 30 #endif | 30 #endif |
| 31 | 31 |
| 32 namespace base { | |
| 33 class FilePath; | |
| 34 | |
| 35 namespace win { | |
| 36 class MessageWindow; | |
| 37 } // namespace win | |
| 38 } // namespace base | |
| 39 | |
| 40 namespace gfx { | |
| 41 class Size; | |
| 42 } | |
| 43 | |
| 44 class SkBitmap; | 32 class SkBitmap; |
| 45 | 33 |
| 46 #ifdef __OBJC__ | 34 #ifdef __OBJC__ |
| 47 @class NSString; | 35 @class NSString; |
| 48 #else | 36 #else |
| 49 class NSString; | 37 class NSString; |
| 50 #endif | 38 #endif |
| 51 | 39 |
| 52 namespace ui { | 40 namespace ui { |
| 53 template <typename T> | |
| 54 class ClipboardTest; | |
| 55 class TestClipboard; | 41 class TestClipboard; |
| 56 class ScopedClipboardWriter; | 42 class ScopedClipboardWriter; |
| 57 | 43 |
| 58 class UI_BASE_EXPORT Clipboard : NON_EXPORTED_BASE(public base::ThreadChecker) { | 44 class UI_BASE_EXPORT Clipboard : NON_EXPORTED_BASE(public base::ThreadChecker) { |
| 59 public: | 45 public: |
| 60 // MIME type constants. | 46 // MIME type constants. |
| 61 static const char kMimeTypeText[]; | 47 static const char kMimeTypeText[]; |
| 62 static const char kMimeTypeURIList[]; | 48 static const char kMimeTypeURIList[]; |
| 63 static const char kMimeTypeDownloadURL[]; | 49 static const char kMimeTypeDownloadURL[]; |
| 64 static const char kMimeTypeMozillaURL[]; | 50 static const char kMimeTypeMozillaURL[]; |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 | 334 |
| 349 // Mutex that controls access to |g_clipboard_map|. | 335 // Mutex that controls access to |g_clipboard_map|. |
| 350 static base::LazyInstance<base::Lock>::Leaky clipboard_map_lock_; | 336 static base::LazyInstance<base::Lock>::Leaky clipboard_map_lock_; |
| 351 | 337 |
| 352 DISALLOW_COPY_AND_ASSIGN(Clipboard); | 338 DISALLOW_COPY_AND_ASSIGN(Clipboard); |
| 353 }; | 339 }; |
| 354 | 340 |
| 355 } // namespace ui | 341 } // namespace ui |
| 356 | 342 |
| 357 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_H_ | 343 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_H_ |
| OLD | NEW |