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

Unified Diff: chrome/test/activex_test_control/chrome_test_control.cc

Issue 200031: Take out the activex control. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/activex_test_control/chrome_test_control.cc
===================================================================
--- chrome/test/activex_test_control/chrome_test_control.cc (revision 25626)
+++ chrome/test/activex_test_control/chrome_test_control.cc (working copy)
@@ -1,34 +0,0 @@
-// Copyright (c) 2006-2008 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.
-
-#include "chrome/test/activex_test_control/chrome_test_control.h"
-
-// CChromeTestControl
-HRESULT ChromeTestControl::OnDraw(ATL_DRAWINFO& di) {
- RECT& rc = *(RECT*)di.prcBounds;
- // Set Clip region to the rectangle specified by di.prcBounds
- HRGN rgn_old = NULL;
- if (GetClipRgn(di.hdcDraw, rgn_old) != 1)
- rgn_old = NULL;
- bool select_old_rgn = false;
-
- HRGN rgn_new = CreateRectRgn(rc.left, rc.top, rc.right, rc.bottom);
-
- if (rgn_new != NULL)
- select_old_rgn = (SelectClipRgn(di.hdcDraw, rgn_new) != ERROR);
-
- Rectangle(di.hdcDraw, rc.left, rc.top, rc.right, rc.bottom);
- SetTextAlign(di.hdcDraw, TA_CENTER|TA_BASELINE);
- LPCTSTR pszText = _T("ATL 8.0 : ChromeTestControl");
- TextOut(di.hdcDraw,
- (rc.left + rc.right) / 2,
- (rc.top + rc.bottom) / 2,
- pszText,
- lstrlen(pszText));
-
- if (select_old_rgn)
- SelectClipRgn(di.hdcDraw, rgn_old);
-
- return S_OK;
-}
« no previous file with comments | « chrome/test/activex_test_control/chrome_test_control.bmp ('k') | chrome/test/activex_test_control/chrome_test_control.rgs » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698