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

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

Issue 6126002: Remove base/scoped_handle_win.h stub and fix up all callers to use the new location and namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 9 years, 11 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) 2010 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/hwnd_util.h" 10 #include "app/win/hwnd_util.h"
11 #include "app/win/window_impl.h" 11 #include "app/win/window_impl.h"
12 #include "app/win/shell.h" 12 #include "app/win/shell.h"
13 #include "base/command_line.h" 13 #include "base/command_line.h"
14 #include "base/scoped_comptr_win.h" 14 #include "base/scoped_comptr_win.h"
15 #include "base/scoped_handle_win.h"
16 #include "base/scoped_native_library.h" 15 #include "base/scoped_native_library.h"
17 #include "base/synchronization/waitable_event.h" 16 #include "base/synchronization/waitable_event.h"
18 #include "base/win/scoped_gdi_object.h" 17 #include "base/win/scoped_gdi_object.h"
19 #include "base/win/scoped_hdc.h" 18 #include "base/win/scoped_hdc.h"
20 #include "base/win/windows_version.h" 19 #include "base/win/windows_version.h"
21 #include "chrome/browser/app_icon_win.h" 20 #include "chrome/browser/app_icon_win.h"
22 #include "chrome/browser/browser_list.h" 21 #include "chrome/browser/browser_list.h"
23 #include "chrome/browser/browser_process.h" 22 #include "chrome/browser/browser_process.h"
24 #include "chrome/browser/browser_thread.h" 23 #include "chrome/browser/browser_thread.h"
25 #include "chrome/browser/renderer_host/backing_store.h" 24 #include "chrome/browser/renderer_host/backing_store.h"
(...skipping 1209 matching lines...) Expand 10 before | Expand all | Expand 10 after
1235 // This code is just copied from "thumbnail_generator.cc". 1234 // This code is just copied from "thumbnail_generator.cc".
1236 skia::PlatformCanvas canvas; 1235 skia::PlatformCanvas canvas;
1237 if (!backing_store->CopyFromBackingStore(gfx::Rect(backing_store->size()), 1236 if (!backing_store->CopyFromBackingStore(gfx::Rect(backing_store->size()),
1238 &canvas)) 1237 &canvas))
1239 return false; 1238 return false;
1240 1239
1241 const SkBitmap& bitmap = canvas.getTopPlatformDevice().accessBitmap(false); 1240 const SkBitmap& bitmap = canvas.getTopPlatformDevice().accessBitmap(false);
1242 bitmap.copyTo(preview, SkBitmap::kARGB_8888_Config); 1241 bitmap.copyTo(preview, SkBitmap::kARGB_8888_Config);
1243 return true; 1242 return true;
1244 } 1243 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698