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

Side by Side Diff: base/clipboard.cc

Issue 10955: Implement the WebSmartPaste pasteboard type on Mac, stub it out on Linux, rem... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « base/clipboard.h ('k') | base/clipboard_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 void Clipboard::DispatchObject(ObjectType type, const ObjectMapParams& params) { 9 void Clipboard::DispatchObject(ObjectType type, const ObjectMapParams& params) {
10 switch (type) { 10 switch (type) {
(...skipping 18 matching lines...) Expand all
29 case CBF_LINK: 29 case CBF_LINK:
30 WriteHyperlink(&(params[0].front()), params[0].size(), 30 WriteHyperlink(&(params[0].front()), params[0].size(),
31 &(params[1].front()), params[1].size()); 31 &(params[1].front()), params[1].size());
32 break; 32 break;
33 33
34 case CBF_FILES: 34 case CBF_FILES:
35 WriteFiles(&(params[0].front()), params[0].size()); 35 WriteFiles(&(params[0].front()), params[0].size());
36 break; 36 break;
37 #endif // defined(OS_WIN) || defined(OS_MACOSX) 37 #endif // defined(OS_WIN) || defined(OS_MACOSX)
38 38
39 #if defined(OS_WIN)
40 case CBF_WEBKIT: 39 case CBF_WEBKIT:
41 WriteWebSmartPaste(); 40 WriteWebSmartPaste();
42 break; 41 break;
43 42
43 #if defined(OS_WIN)
44 case CBF_BITMAP: 44 case CBF_BITMAP:
45 WriteBitmap(&(params[0].front()), &(params[1].front())); 45 WriteBitmap(&(params[0].front()), &(params[1].front()));
46 break; 46 break;
47 #endif // defined(OS_WIN) 47 #endif // defined(OS_WIN)
48 48
49 default: 49 default:
50 NOTREACHED(); 50 NOTREACHED();
51 } 51 }
52 } 52 }
53 53
OLDNEW
« no previous file with comments | « base/clipboard.h ('k') | base/clipboard_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698