| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/views/resize_corner.h" | |
| 6 | |
| 7 #include <vssym32.h> | |
| 8 | |
| 9 #include "base/gfx/native_theme.h" | |
| 10 #include "chrome/common/gfx/chrome_canvas.h" | |
| 11 | |
| 12 namespace views { | |
| 13 | |
| 14 ResizeCorner::ResizeCorner() { | |
| 15 } | |
| 16 | |
| 17 ResizeCorner::~ResizeCorner() { | |
| 18 } | |
| 19 | |
| 20 void ResizeCorner::Paint(ChromeCanvas* canvas) { | |
| 21 // Paint the little handle. | |
| 22 RECT widgetRect = { 0, 0, width(), height() }; | |
| 23 HDC hdc = canvas->beginPlatformPaint(); | |
| 24 gfx::NativeTheme::instance()->PaintStatusGripper(hdc, | |
| 25 SP_GRIPPER, | |
| 26 0, | |
| 27 0, | |
| 28 &widgetRect); | |
| 29 canvas->endPlatformPaint(); | |
| 30 } | |
| 31 | |
| 32 } // namespace views | |
| 33 | |
| OLD | NEW |