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

Side by Side Diff: app/clipboard/clipboard.cc

Issue 260003: Move the clipboard stuff out of base and into app/clipboard. I renamed... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | « app/clipboard/clipboard.h ('k') | app/clipboard/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) 2009 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 "app/clipboard/clipboard.h"
6 6
7 #include "base/gfx/size.h" 7 #include "base/gfx/size.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 9
10 namespace { 10 namespace {
11 11
12 // A compromised renderer could send us bad data, so validate it. 12 // A compromised renderer could send us bad data, so validate it.
13 bool IsBitmapSafe(const Clipboard::ObjectMapParams& params) { 13 bool IsBitmapSafe(const Clipboard::ObjectMapParams& params) {
14 const gfx::Size* size = 14 const gfx::Size* size =
15 reinterpret_cast<const gfx::Size*>(&(params[1].front())); 15 reinterpret_cast<const gfx::Size*>(&(params[1].front()));
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 case CBF_DATA: 56 case CBF_DATA:
57 WriteData(&(params[0].front()), params[0].size(), 57 WriteData(&(params[0].front()), params[0].size(),
58 &(params[1].front()), params[1].size()); 58 &(params[1].front()), params[1].size());
59 break; 59 break;
60 #endif // defined(OS_WIN) || defined(OS_LINUX) 60 #endif // defined(OS_WIN) || defined(OS_LINUX)
61 61
62 default: 62 default:
63 NOTREACHED(); 63 NOTREACHED();
64 } 64 }
65 } 65 }
OLDNEW
« no previous file with comments | « app/clipboard/clipboard.h ('k') | app/clipboard/clipboard_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698