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

Side by Side Diff: chrome/browser/aeropeek_manager.cc

Issue 7048007: Move scoped_temp_dir and scoped_native_library back from base/memory to base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unknwn Created 9 years, 7 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
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 "chrome/browser/aeropeek_manager.h" 5 #include "chrome/browser/aeropeek_manager.h"
6 6
7 #include <dwmapi.h> 7 #include <dwmapi.h>
8 #include <shobjidl.h> 8 #include <shobjidl.h>
9 9
10 #include "app/win/shell.h" 10 #include "app/win/shell.h"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/memory/scoped_native_library.h" 12 #include "base/scoped_native_library.h"
13 #include "base/synchronization/waitable_event.h" 13 #include "base/synchronization/waitable_event.h"
14 #include "base/win/scoped_comptr.h" 14 #include "base/win/scoped_comptr.h"
15 #include "base/win/scoped_gdi_object.h" 15 #include "base/win/scoped_gdi_object.h"
16 #include "base/win/scoped_hdc.h" 16 #include "base/win/scoped_hdc.h"
17 #include "base/win/windows_version.h" 17 #include "base/win/windows_version.h"
18 #include "chrome/browser/app_icon_win.h" 18 #include "chrome/browser/app_icon_win.h"
19 #include "chrome/browser/browser_process.h" 19 #include "chrome/browser/browser_process.h"
20 #include "chrome/browser/favicon/favicon_tab_helper.h" 20 #include "chrome/browser/favicon/favicon_tab_helper.h"
21 #include "chrome/browser/tab_contents/thumbnail_generator.h" 21 #include "chrome/browser/tab_contents/thumbnail_generator.h"
22 #include "chrome/browser/tabs/tab_strip_model.h" 22 #include "chrome/browser/tabs/tab_strip_model.h"
(...skipping 1218 matching lines...) Expand 10 before | Expand all | Expand 10 after
1241 // This code is just copied from "thumbnail_generator.cc". 1241 // This code is just copied from "thumbnail_generator.cc".
1242 skia::PlatformCanvas canvas; 1242 skia::PlatformCanvas canvas;
1243 if (!backing_store->CopyFromBackingStore(gfx::Rect(backing_store->size()), 1243 if (!backing_store->CopyFromBackingStore(gfx::Rect(backing_store->size()),
1244 &canvas)) 1244 &canvas))
1245 return false; 1245 return false;
1246 1246
1247 const SkBitmap& bitmap = canvas.getTopPlatformDevice().accessBitmap(false); 1247 const SkBitmap& bitmap = canvas.getTopPlatformDevice().accessBitmap(false);
1248 bitmap.copyTo(preview, SkBitmap::kARGB_8888_Config); 1248 bitmap.copyTo(preview, SkBitmap::kARGB_8888_Config);
1249 return true; 1249 return true;
1250 } 1250 }
OLDNEW
« no previous file with comments | « base/scoped_temp_dir_unittest.cc ('k') | chrome/browser/bookmarks/bookmark_html_writer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698