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

Side by Side Diff: base/clipboard.cc

Issue 42592: Linux: write images to clipboard.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 | « no previous file | 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 20 matching lines...) Expand all
31 break; 31 break;
32 32
33 case CBF_FILES: 33 case CBF_FILES:
34 WriteFiles(&(params[0].front()), params[0].size()); 34 WriteFiles(&(params[0].front()), params[0].size());
35 break; 35 break;
36 36
37 case CBF_WEBKIT: 37 case CBF_WEBKIT:
38 WriteWebSmartPaste(); 38 WriteWebSmartPaste();
39 break; 39 break;
40 40
41 #if defined(OS_WIN) || defined(OS_LINUX) // This is just a stub on Linux 41 #if defined(OS_WIN) || defined(OS_LINUX)
42 case CBF_BITMAP: 42 case CBF_BITMAP:
43 WriteBitmap(&(params[0].front()), &(params[1].front())); 43 WriteBitmap(&(params[0].front()), &(params[1].front()));
44 break; 44 break;
45 #endif // defined(OS_WIN) || defined(OS_LINUX) 45 #endif // defined(OS_WIN) || defined(OS_LINUX)
46 46
47 default: 47 default:
48 NOTREACHED(); 48 NOTREACHED();
49 } 49 }
50 } 50 }
OLDNEW
« no previous file with comments | « no previous file | base/clipboard_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698