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

Side by Side Diff: base/clipboard.cc

Issue 194052: Clipboard:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fixes Created 11 years, 3 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 | 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/gfx/size.h" 7 #include "base/gfx/size.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 9
10 namespace { 10 namespace {
(...skipping 20 matching lines...) Expand all
31 &(params[1].front()), params[1].size()); 31 &(params[1].front()), params[1].size());
32 else 32 else
33 WriteHTML(&(params[0].front()), params[0].size(), NULL, 0); 33 WriteHTML(&(params[0].front()), params[0].size(), NULL, 0);
34 break; 34 break;
35 35
36 case CBF_BOOKMARK: 36 case CBF_BOOKMARK:
37 WriteBookmark(&(params[0].front()), params[0].size(), 37 WriteBookmark(&(params[0].front()), params[0].size(),
38 &(params[1].front()), params[1].size()); 38 &(params[1].front()), params[1].size());
39 break; 39 break;
40 40
41 case CBF_LINK:
42 WriteHyperlink(&(params[0].front()), params[0].size(),
43 &(params[1].front()), params[1].size());
44 break;
45
46 case CBF_FILES: 41 case CBF_FILES:
47 WriteFiles(&(params[0].front()), params[0].size()); 42 WriteFiles(&(params[0].front()), params[0].size());
48 break; 43 break;
49 44
50 case CBF_WEBKIT: 45 case CBF_WEBKIT:
51 WriteWebSmartPaste(); 46 WriteWebSmartPaste();
52 break; 47 break;
53 48
54 #if defined(OS_WIN) || defined(OS_LINUX) 49 #if defined(OS_WIN) || defined(OS_LINUX)
55 case CBF_BITMAP: 50 case CBF_BITMAP:
56 if (!IsBitmapSafe(params)) 51 if (!IsBitmapSafe(params))
57 return; 52 return;
58 WriteBitmap(&(params[0].front()), &(params[1].front())); 53 WriteBitmap(&(params[0].front()), &(params[1].front()));
59 break; 54 break;
60 55
61 case CBF_DATA: 56 case CBF_DATA:
62 WriteData(&(params[0].front()), params[0].size(), 57 WriteData(&(params[0].front()), params[0].size(),
63 &(params[1].front()), params[1].size()); 58 &(params[1].front()), params[1].size());
64 break; 59 break;
65 #endif // defined(OS_WIN) || defined(OS_LINUX) 60 #endif // defined(OS_WIN) || defined(OS_LINUX)
66 61
67 default: 62 default:
68 NOTREACHED(); 63 NOTREACHED();
69 } 64 }
70 } 65 }
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