| 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 #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/compiler_specific.h" |
| 13 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
| 14 #include "base/process.h" | 15 #include "base/process.h" |
| 15 #include "base/shared_memory.h" | 16 #include "base/shared_memory.h" |
| 16 #include "base/string16.h" | 17 #include "base/string16.h" |
| 18 #include "base/threading/thread_checker.h" |
| 17 #include "ui/base/ui_export.h" | 19 #include "ui/base/ui_export.h" |
| 18 | 20 |
| 19 #if defined(TOOLKIT_USES_GTK) | 21 #if defined(TOOLKIT_USES_GTK) |
| 20 #include <gdk/gdk.h> | 22 #include <gdk/gdk.h> |
| 21 #endif | 23 #endif |
| 22 | 24 |
| 23 #if defined(OS_ANDROID) | 25 #if defined(OS_ANDROID) |
| 24 #include <jni.h> | 26 #include <jni.h> |
| 25 | 27 |
| 26 #include "base/android/jni_android.h" | 28 #include "base/android/jni_android.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 39 #endif | 41 #endif |
| 40 | 42 |
| 41 #ifdef __OBJC__ | 43 #ifdef __OBJC__ |
| 42 @class NSString; | 44 @class NSString; |
| 43 #else | 45 #else |
| 44 class NSString; | 46 class NSString; |
| 45 #endif | 47 #endif |
| 46 | 48 |
| 47 namespace ui { | 49 namespace ui { |
| 48 | 50 |
| 49 class UI_EXPORT Clipboard { | 51 class UI_EXPORT Clipboard : NON_EXPORTED_BASE(public base::ThreadChecker) { |
| 50 public: | 52 public: |
| 51 // MIME type constants. | 53 // MIME type constants. |
| 52 static const char kMimeTypeText[]; | 54 static const char kMimeTypeText[]; |
| 53 static const char kMimeTypeURIList[]; | 55 static const char kMimeTypeURIList[]; |
| 54 static const char kMimeTypeDownloadURL[]; | 56 static const char kMimeTypeDownloadURL[]; |
| 55 static const char kMimeTypeHTML[]; | 57 static const char kMimeTypeHTML[]; |
| 56 static const char kMimeTypePNG[]; | 58 static const char kMimeTypePNG[]; |
| 57 | 59 |
| 58 // Platform neutral holder for native data representation of a clipboard type. | 60 // Platform neutral holder for native data representation of a clipboard type. |
| 59 struct UI_EXPORT FormatType { | 61 struct UI_EXPORT FormatType { |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 jmethodID get_text_; | 361 jmethodID get_text_; |
| 360 jmethodID to_string_; | 362 jmethodID to_string_; |
| 361 #endif | 363 #endif |
| 362 | 364 |
| 363 DISALLOW_COPY_AND_ASSIGN(Clipboard); | 365 DISALLOW_COPY_AND_ASSIGN(Clipboard); |
| 364 }; | 366 }; |
| 365 | 367 |
| 366 } // namespace ui | 368 } // namespace ui |
| 367 | 369 |
| 368 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_H_ | 370 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_H_ |
| OLD | NEW |