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

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

Issue 6040002: Remove more 'using' declarations of Scoped* from scoped_handle_win.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: typedef Created 9 years, 12 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 | « base/scoped_handle_win.h ('k') | chrome/browser/ui/tabs/dock_info_win.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) 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/scoped_gdi_object.h"
16 #include "base/win/windows_version.h" 17 #include "base/win/windows_version.h"
17 #include "chrome/browser/app_icon_win.h" 18 #include "chrome/browser/app_icon_win.h"
18 #include "chrome/browser/browser_list.h" 19 #include "chrome/browser/browser_list.h"
19 #include "chrome/browser/browser_process.h" 20 #include "chrome/browser/browser_process.h"
20 #include "chrome/browser/browser_thread.h" 21 #include "chrome/browser/browser_thread.h"
21 #include "chrome/browser/renderer_host/backing_store.h" 22 #include "chrome/browser/renderer_host/backing_store.h"
22 #include "chrome/browser/renderer_host/render_view_host.h" 23 #include "chrome/browser/renderer_host/render_view_host.h"
23 #include "chrome/browser/tab_contents/tab_contents.h" 24 #include "chrome/browser/tab_contents/tab_contents.h"
24 #include "chrome/browser/tab_contents/tab_contents_delegate.h" 25 #include "chrome/browser/tab_contents/tab_contents_delegate.h"
25 #include "chrome/browser/tab_contents/tab_contents_view.h" 26 #include "chrome/browser/tab_contents/tab_contents_view.h"
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 // An event that represents whether or not we can post a task which updates 676 // An event that represents whether or not we can post a task which updates
676 // the thumbnail image of this window. 677 // the thumbnail image of this window.
677 // We post a task only when this event is signaled. 678 // We post a task only when this event is signaled.
678 base::WaitableEvent ready_to_update_thumbnail_; 679 base::WaitableEvent ready_to_update_thumbnail_;
679 680
680 // The title of this tab. 681 // The title of this tab.
681 std::wstring title_; 682 std::wstring title_;
682 683
683 // The favicon for this tab. 684 // The favicon for this tab.
684 SkBitmap favicon_bitmap_; 685 SkBitmap favicon_bitmap_;
685 ScopedHICON favicon_; 686 base::win::ScopedHICON favicon_;
686 687
687 // The icon used by the frame window. 688 // The icon used by the frame window.
688 // This icon is used when this tab doesn't have a favicon. 689 // This icon is used when this tab doesn't have a favicon.
689 HICON frame_icon_; 690 HICON frame_icon_;
690 691
691 DISALLOW_COPY_AND_ASSIGN(AeroPeekWindow); 692 DISALLOW_COPY_AND_ASSIGN(AeroPeekWindow);
692 }; 693 };
693 694
694 AeroPeekWindow::AeroPeekWindow(HWND frame_window, 695 AeroPeekWindow::AeroPeekWindow(HWND frame_window,
695 AeroPeekWindowDelegate* delegate, 696 AeroPeekWindowDelegate* delegate,
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
1230 // This code is just copied from "thumbnail_generator.cc". 1231 // This code is just copied from "thumbnail_generator.cc".
1231 skia::PlatformCanvas canvas; 1232 skia::PlatformCanvas canvas;
1232 if (!backing_store->CopyFromBackingStore(gfx::Rect(backing_store->size()), 1233 if (!backing_store->CopyFromBackingStore(gfx::Rect(backing_store->size()),
1233 &canvas)) 1234 &canvas))
1234 return false; 1235 return false;
1235 1236
1236 const SkBitmap& bitmap = canvas.getTopPlatformDevice().accessBitmap(false); 1237 const SkBitmap& bitmap = canvas.getTopPlatformDevice().accessBitmap(false);
1237 bitmap.copyTo(preview, SkBitmap::kARGB_8888_Config); 1238 bitmap.copyTo(preview, SkBitmap::kARGB_8888_Config);
1238 return true; 1239 return true;
1239 } 1240 }
OLDNEW
« no previous file with comments | « base/scoped_handle_win.h ('k') | chrome/browser/ui/tabs/dock_info_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698