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

Side by Side Diff: webkit/glue/webclipboard_impl.cc

Issue 10828233: crbug.com/121235 - Renderer crash on middle-click on Linux Desktop. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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
« no previous file with comments | « no previous file | no next file » | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "webkit/glue/webclipboard_impl.h" 5 #include "webkit/glue/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/string_util.h" 9 #include "base/string_util.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 } 251 }
252 } 252 }
253 253
254 bool WebClipboardImpl::ConvertBufferType(Buffer buffer, 254 bool WebClipboardImpl::ConvertBufferType(Buffer buffer,
255 ui::Clipboard::Buffer* result) { 255 ui::Clipboard::Buffer* result) {
256 switch (buffer) { 256 switch (buffer) {
257 case BufferStandard: 257 case BufferStandard:
258 *result = ui::Clipboard::BUFFER_STANDARD; 258 *result = ui::Clipboard::BUFFER_STANDARD;
259 break; 259 break;
260 case BufferSelection: 260 case BufferSelection:
261 #if defined(USE_X11) && !defined(USE_AURA) 261 #if defined(USE_X11)
262 #if defined(USE_AURA)
263 // X selection should be on for LinuxAura
264 // ChromeOS doesn't use X selection.
265 return false;
brettw 2012/08/09 19:06:11 I don't really understand your comment. What does
sschmitz 2012/08/10 20:18:27 Comment replaced by better one (thanks to Oshima)
266 #else
262 *result = ui::Clipboard::BUFFER_SELECTION; 267 *result = ui::Clipboard::BUFFER_SELECTION;
263 break; 268 break;
264 #endif 269 #endif
270 #endif
265 default: 271 default:
266 NOTREACHED(); 272 NOTREACHED();
267 return false; 273 return false;
268 } 274 }
269 return true; 275 return true;
270 } 276 }
271 277
272 } // namespace webkit_glue 278 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698