| 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 20 matching lines...) Expand all Loading... |
| 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 } |
| OLD | NEW |