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

Side by Side Diff: chrome/views/resize_corner.cc

Issue 16488: Add a new resizer corner overlay. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 10 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 | « chrome/views/resize_corner.h ('k') | chrome/views/views.vcproj » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « chrome/views/resize_corner.h ('k') | chrome/views/views.vcproj » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698