| 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 #include "ui/base/clipboard/clipboard.h" | 5 #include "ui/base/clipboard/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/file_path.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/mac/mac_util.h" | 11 #include "base/mac/mac_util.h" |
| 12 #include "base/mac/scoped_cftyperef.h" | 12 #include "base/mac/scoped_cftyperef.h" |
| 13 #include "base/scoped_nsobject.h" | 13 #include "base/scoped_nsobject.h" |
| 14 #include "base/sys_string_conversions.h" | 14 #include "base/sys_string_conversions.h" |
| 15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
| 16 #include "gfx/size.h" | |
| 17 #import "third_party/mozilla/NSPasteboard+Utils.h" | 16 #import "third_party/mozilla/NSPasteboard+Utils.h" |
| 17 #include "ui/gfx/size.h" |
| 18 | 18 |
| 19 namespace ui { | 19 namespace ui { |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| 23 // Would be nice if this were in UTCoreTypes.h, but it isn't | 23 // Would be nice if this were in UTCoreTypes.h, but it isn't |
| 24 NSString* const kUTTypeURLName = @"public.url-name"; | 24 NSString* const kUTTypeURLName = @"public.url-name"; |
| 25 | 25 |
| 26 // Tells us if WebKit was the last to write to the pasteboard. There's no | 26 // Tells us if WebKit was the last to write to the pasteboard. There's no |
| 27 // actual data associated with this type. | 27 // actual data associated with this type. |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 } | 324 } |
| 325 | 325 |
| 326 // static | 326 // static |
| 327 Clipboard::FormatType Clipboard::GetWebKitSmartPasteFormatType() { | 327 Clipboard::FormatType Clipboard::GetWebKitSmartPasteFormatType() { |
| 328 static const std::string type = | 328 static const std::string type = |
| 329 base::SysNSStringToUTF8(kWebSmartPastePboardType); | 329 base::SysNSStringToUTF8(kWebSmartPastePboardType); |
| 330 return type; | 330 return type; |
| 331 } | 331 } |
| 332 | 332 |
| 333 } // namespace ui | 333 } // namespace ui |
| OLD | NEW |