From 0142bd4f74b04cf27929e5288be100c09cff224d Mon Sep 17 00:00:00 2001 From: "tfarina@chromium.org" Date: Fri, 31 Dec 2010 01:02:47 +0000 Subject: Remove 'using' declaration of ScopedHDC from scoped_handle_win.h BUG=None TEST=trybots Review URL: http://codereview.chromium.org/6031011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70326 0039d316-1c4b-4281-b951-d872f2087c98 --- app/win_util.cc | 3 ++- app/win_util.h | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'app') diff --git a/app/win_util.cc b/app/win_util.cc index 31137e9..27a8235 100644 --- a/app/win_util.cc +++ b/app/win_util.cc @@ -21,6 +21,7 @@ #include "base/string_util.h" #include "base/win_util.h" #include "base/win/scoped_gdi_object.h" +#include "base/win/scoped_hdc.h" #include "gfx/codec/png_codec.h" #include "gfx/gdi_util.h" @@ -184,7 +185,7 @@ void GrabWindowSnapshot(HWND window_handle, std::vector* png_representation) { // Create a memory DC that's compatible with the window. HDC window_hdc = GetWindowDC(window_handle); - ScopedHDC mem_hdc(CreateCompatibleDC(window_hdc)); + base::win::ScopedHDC mem_hdc(CreateCompatibleDC(window_hdc)); // Create a DIB that's the same size as the window. RECT content_rect = {0, 0, 0, 0}; diff --git a/app/win_util.h b/app/win_util.h index 4f98e63..2fcd86b 100644 --- a/app/win_util.h +++ b/app/win_util.h @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -23,7 +23,6 @@ namespace win_util { // Import ScopedHandle and friends into this namespace for backwards // compatibility. TODO(darin): clean this up! using ::ScopedHandle; -using ::ScopedHDC; using ::ScopedBitmap; // Simple scoped memory releaser class for COM allocated memory. -- cgit v1.1