Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "content/renderer/webclipboard_impl.h" | 5 #include "content/renderer/webclipboard_impl.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/pickle.h" | 8 #include "base/pickle.h" |
| 9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 205 case BufferSelection: | 205 case BufferSelection: |
| 206 #if defined(USE_X11) | 206 #if defined(USE_X11) |
| 207 #if defined(OS_CHROMEOS) | 207 #if defined(OS_CHROMEOS) |
| 208 // Chrome OS only supports the standard clipboard, | 208 // Chrome OS only supports the standard clipboard, |
| 209 // but not the X selection clipboad. | 209 // but not the X selection clipboad. |
| 210 return false; | 210 return false; |
| 211 #else | 211 #else |
| 212 *result = ui::CLIPBOARD_TYPE_SELECTION; | 212 *result = ui::CLIPBOARD_TYPE_SELECTION; |
| 213 break; | 213 break; |
| 214 #endif | 214 #endif |
| 215 #endif | 215 #endif |
|
spang
2014/04/08 22:57:21
This code can preprocess to
case BufferSelec
rjkroege
2014/04/09 14:56:07
I'm with spang here. Why does this code not fire o
Mostyn Bramley-Moore
2014/04/09 18:40:28
X is the only platform I know of that copies on se
| |
| 216 default: | 216 default: |
| 217 NOTREACHED(); | 217 NOTIMPLEMENTED(); |
| 218 return false; | 218 return false; |
| 219 } | 219 } |
| 220 return true; | 220 return true; |
| 221 } | 221 } |
| 222 | 222 |
| 223 } // namespace content | 223 } // namespace content |
| OLD | NEW |