summaryrefslogtreecommitdiffstats
path: root/chrome/views
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-29 17:51:45 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-29 17:51:45 +0000
commit3216fbdae4d6887bc87240879530fb9f688d013b (patch)
tree9f93e158a253b1d1c9a9e7b1580db4fb5fa5aec7 /chrome/views
parent1b283269dc993a2684e506a144d76c186eb61fca (diff)
downloadchromium_src-3216fbdae4d6887bc87240879530fb9f688d013b.zip
chromium_src-3216fbdae4d6887bc87240879530fb9f688d013b.tar.gz
chromium_src-3216fbdae4d6887bc87240879530fb9f688d013b.tar.bz2
Move kClientEdgeThickness from BrowserView to NonClientView (which makes more sense anyway) so I'll be able to use it in custom_frame_window.cc.
Also eliminate an unnecessarily-repeated set of resource IDs from the opaque nonclient view, and move a comment to match what I ended up doing (but haven't yet sent up for review) in other places. Seems I couldn't make up my mind on that one. Review URL: http://codereview.chromium.org/19458 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8891 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views')
-rw-r--r--chrome/views/non_client_view.cc2
-rw-r--r--chrome/views/non_client_view.h4
2 files changed, 6 insertions, 0 deletions
diff --git a/chrome/views/non_client_view.cc b/chrome/views/non_client_view.cc
index 3e1ebde..2690a2d 100644
--- a/chrome/views/non_client_view.cc
+++ b/chrome/views/non_client_view.cc
@@ -6,6 +6,8 @@
namespace views {
+const int NonClientView::kClientEdgeThickness = 1;
+
int NonClientView::GetHTComponentForFrame(const gfx::Point& point,
int top_resize_border_height,
int resize_border_width,
diff --git a/chrome/views/non_client_view.h b/chrome/views/non_client_view.h
index 3643bbe..6619cf0 100644
--- a/chrome/views/non_client_view.h
+++ b/chrome/views/non_client_view.h
@@ -27,6 +27,10 @@ class ClientView;
//
class NonClientView : public View {
public:
+ // In restored mode, we draw a 1 px edge around the content area inside the
+ // frame border.
+ static const int kClientEdgeThickness;
+
// Calculates the bounds of the client area of the window assuming the
// window is sized to |width| and |height|.
virtual gfx::Rect CalculateClientAreaBounds(int width,