summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/grow_box_view.h
diff options
context:
space:
mode:
authorpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-20 16:48:29 +0000
committerpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-20 16:48:29 +0000
commitb3e3a7c25563c04221141be853d91af264c8c440 (patch)
tree3fad894326a1e5514fcff26710a0541253a49ebd /chrome/browser/cocoa/grow_box_view.h
parent42179c2ecb844952a49c44c7598400b7f69270db (diff)
downloadchromium_src-b3e3a7c25563c04221141be853d91af264c8c440.zip
chromium_src-b3e3a7c25563c04221141be853d91af264c8c440.tar.gz
chromium_src-b3e3a7c25563c04221141be853d91af264c8c440.tar.bz2
Roll our own grow box since the OS one wants to indent by 3px due to the textured window style.
Review URL: http://codereview.chromium.org/21544 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10099 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/grow_box_view.h')
-rw-r--r--chrome/browser/cocoa/grow_box_view.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/grow_box_view.h b/chrome/browser/cocoa/grow_box_view.h
new file mode 100644
index 0000000..60c51f0
--- /dev/null
+++ b/chrome/browser/cocoa/grow_box_view.h
@@ -0,0 +1,22 @@
+// Copyright (c) 2009 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.
+
+#ifndef CHROME_BROWSER_COCOA_GROW_BOX_VIEW_H_
+#define CHROME_BROWSER_COCOA_GROW_BOX_VIEW_H_
+
+#import <Cocoa/Cocoa.h>
+
+// A class that handles drawing and mouse tracking to replace the standard
+// window "grow box" grippy in cases where the OS one won't do. Relies on
+// an image named "grow_box" be included in the application's resources. The
+// box should be 15x15 in size, but that's not a requirement.
+
+@interface GrowBoxView : NSView {
+ @private
+ NSImage* image_; // grow box image
+}
+
+@end
+
+#endif // CHROME_BROWSER_COCOA_GROW_BOX_VIEW_H_