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

Side by Side Diff: ui/base/clipboard/clipboard.cc

Issue 6312156: Change includes of gfx/* to ui/gfx/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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 | « ui/base/animation/tween.cc ('k') | ui/base/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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "ui/base/clipboard/clipboard.h" 5 #include "ui/base/clipboard/clipboard.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/scoped_ptr.h" 8 #include "base/scoped_ptr.h"
9 #include "gfx/size.h" 9 #include "ui/gfx/size.h"
10 10
11 namespace ui { 11 namespace ui {
12 12
13 namespace { 13 namespace {
14 14
15 // A compromised renderer could send us bad data, so validate it. 15 // A compromised renderer could send us bad data, so validate it.
16 // This function only checks that the size parameter makes sense, the caller 16 // This function only checks that the size parameter makes sense, the caller
17 // is responsible for further validating the bitmap buffer against 17 // is responsible for further validating the bitmap buffer against
18 // |bitmap_bytes|. 18 // |bitmap_bytes|.
19 // 19 //
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // UI thread (see DispatchObject()). 174 // UI thread (see DispatchObject()).
175 iter->second[0].clear(); 175 iter->second[0].clear();
176 for (size_t i = 0; i < sizeof(SharedMemory*); ++i) 176 for (size_t i = 0; i < sizeof(SharedMemory*); ++i)
177 iter->second[0].push_back(reinterpret_cast<char*>(&bitmap)[i]); 177 iter->second[0].push_back(reinterpret_cast<char*>(&bitmap)[i]);
178 has_shared_bitmap = true; 178 has_shared_bitmap = true;
179 } 179 }
180 } 180 }
181 } 181 }
182 182
183 } // namespace ui 183 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/animation/tween.cc ('k') | ui/base/clipboard/clipboard_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698