Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(381)

Side by Side Diff: base/clipboard_mac.mm

Issue 118162: Reduce header dependencies in base/ (Closed)
Patch Set: Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « base/clipboard_linux.cc ('k') | base/clipboard_unittest.cc » ('j') | base/system_monitor.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698