OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #include "base/clipboard.h" | 5 #include "base/clipboard.h" |
6 | 6 |
7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
8 | 8 |
| 9 #include "base/file_path.h" |
9 #include "base/logging.h" | 10 #include "base/logging.h" |
10 #include "base/string_util.h" | 11 #include "base/string_util.h" |
11 #include "base/sys_string_conversions.h" | 12 #include "base/sys_string_conversions.h" |
12 | 13 |
13 namespace { | 14 namespace { |
14 | 15 |
15 // Would be nice if this were in UTCoreTypes.h, but it isn't | 16 // Would be nice if this were in UTCoreTypes.h, but it isn't |
16 const NSString* kUTTypeURLName = @"public.url-name"; | 17 const NSString* kUTTypeURLName = @"public.url-name"; |
17 | 18 |
18 // Tells us if WebKit was the last to write to the pasteboard. There's no | 19 // Tells us if WebKit was the last to write to the pasteboard. There's no |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 static const std::string type = base::SysNSStringToUTF8(NSHTMLPboardType); | 275 static const std::string type = base::SysNSStringToUTF8(NSHTMLPboardType); |
275 return type; | 276 return type; |
276 } | 277 } |
277 | 278 |
278 // static | 279 // static |
279 Clipboard::FormatType Clipboard::GetWebKitSmartPasteFormatType() { | 280 Clipboard::FormatType Clipboard::GetWebKitSmartPasteFormatType() { |
280 static const std::string type = | 281 static const std::string type = |
281 base::SysNSStringToUTF8(kWebSmartPastePboardType); | 282 base::SysNSStringToUTF8(kWebSmartPastePboardType); |
282 return type; | 283 return type; |
283 } | 284 } |
OLD | NEW |