OLD | NEW |
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 Loading... |
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 |
OLD | NEW |