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

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

Issue 5582002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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) 2010 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_util.h" 10 #include "app/win_util.h"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/scoped_comptr_win.h" 12 #include "base/scoped_comptr_win.h"
13 #include "base/scoped_handle_win.h" 13 #include "base/scoped_handle_win.h"
14 #include "base/scoped_native_library.h" 14 #include "base/scoped_native_library.h"
15 #include "base/waitable_event.h" 15 #include "base/waitable_event.h"
16 #include "base/win/windows_version.h" 16 #include "base/win/windows_version.h"
17 #include "chrome/browser/app_icon_win.h" 17 #include "chrome/browser/app_icon_win.h"
18 #include "chrome/browser/browser_list.h" 18 #include "chrome/browser/browser_list.h"
19 #include "chrome/browser/browser_process.h" 19 #include "chrome/browser/browser_process.h"
20 #include "chrome/browser/browser_thread.h" 20 #include "chrome/browser/browser_thread.h"
21 #include "chrome/browser/renderer_host/backing_store.h" 21 #include "chrome/browser/renderer_host/backing_store.h"
22 #include "chrome/browser/renderer_host/render_view_host.h" 22 #include "chrome/browser/renderer_host/render_view_host.h"
23 #include "chrome/browser/tab_contents/tab_contents.h" 23 #include "chrome/browser/tab_contents/tab_contents.h"
24 #include "chrome/browser/tab_contents/tab_contents_delegate.h" 24 #include "chrome/browser/tab_contents/tab_contents_delegate.h"
25 #include "chrome/browser/tab_contents/tab_contents_view.h" 25 #include "chrome/browser/tab_contents/tab_contents_view.h"
26 #include "chrome/browser/tab_contents/thumbnail_generator.h" 26 #include "chrome/browser/tab_contents/thumbnail_generator.h"
27 #include "chrome/browser/tab_contents_wrapper.h"
28 #include "chrome/browser/tabs/tab_strip_model.h" 27 #include "chrome/browser/tabs/tab_strip_model.h"
28 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
29 #include "chrome/common/chrome_constants.h" 29 #include "chrome/common/chrome_constants.h"
30 #include "chrome/common/chrome_switches.h" 30 #include "chrome/common/chrome_switches.h"
31 #include "chrome/installer/util/browser_distribution.h" 31 #include "chrome/installer/util/browser_distribution.h"
32 #include "gfx/gdi_util.h" 32 #include "gfx/gdi_util.h"
33 #include "gfx/icon_util.h" 33 #include "gfx/icon_util.h"
34 #include "gfx/window_impl.h" 34 #include "gfx/window_impl.h"
35 #include "skia/ext/image_operations.h" 35 #include "skia/ext/image_operations.h"
36 #include "skia/ext/platform_canvas.h" 36 #include "skia/ext/platform_canvas.h"
37 #include "third_party/skia/include/core/SkBitmap.h" 37 #include "third_party/skia/include/core/SkBitmap.h"
38 38
(...skipping 1175 matching lines...) Expand 10 before | Expand all | Expand 10 after
1214 // This code is just copied from "thumbnail_generator.cc". 1214 // This code is just copied from "thumbnail_generator.cc".
1215 skia::PlatformCanvas canvas; 1215 skia::PlatformCanvas canvas;
1216 if (!backing_store->CopyFromBackingStore(gfx::Rect(backing_store->size()), 1216 if (!backing_store->CopyFromBackingStore(gfx::Rect(backing_store->size()),
1217 &canvas)) 1217 &canvas))
1218 return false; 1218 return false;
1219 1219
1220 const SkBitmap& bitmap = canvas.getTopPlatformDevice().accessBitmap(false); 1220 const SkBitmap& bitmap = canvas.getTopPlatformDevice().accessBitmap(false);
1221 bitmap.copyTo(preview, SkBitmap::kARGB_8888_Config); 1221 bitmap.copyTo(preview, SkBitmap::kARGB_8888_Config);
1222 return true; 1222 return true;
1223 } 1223 }
OLDNEW
« no previous file with comments | « chrome/browser/accessibility/browser_views_accessibility_browsertest.cc ('k') | chrome/browser/app_controller_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698