summaryrefslogtreecommitdiffstats
path: root/chrome/views/non_client_view.h
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-09 22:48:03 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-09 22:48:03 +0000
commitc7933edc76785d831e6f12c46fbf70f4d29e9a02 (patch)
treec7dd72bdf5862d1c1d60a82282dedbcc2551a449 /chrome/views/non_client_view.h
parent42794978292295317bdfd79acb556bcc597bd16f (diff)
downloadchromium_src-c7933edc76785d831e6f12c46fbf70f4d29e9a02.zip
chromium_src-c7933edc76785d831e6f12c46fbf70f4d29e9a02.tar.gz
chromium_src-c7933edc76785d831e6f12c46fbf70f4d29e9a02.tar.bz2
Make aero glass code look more like other nonclient views in hopes of easing refactoring. More cleanup. Change tabstrip layout to match opaque frame.
BUG=5054 Review URL: http://codereview.chromium.org/20161 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9433 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/non_client_view.h')
-rw-r--r--chrome/views/non_client_view.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/chrome/views/non_client_view.h b/chrome/views/non_client_view.h
index 4dbf0e7..debe22a 100644
--- a/chrome/views/non_client_view.h
+++ b/chrome/views/non_client_view.h
@@ -37,9 +37,12 @@ class NonClientView : public View {
int height) const = 0;
// Calculates the size of window required to display a client area of the
- // specified width and height.
+ // specified width and height. Only views used by CustomFrameWindow need
+ // implement this.
virtual gfx::Size CalculateWindowSizeForClientSize(int width,
- int height) const = 0;
+ int height) const {
+ return gfx::Size();
+ }
// Returns the point, in screen coordinates, where the system menu should
// be shown so it shows up anchored to the system menu icon.
@@ -81,7 +84,8 @@ class NonClientView : public View {
int GetHTComponentForFrame(const gfx::Point& point,
int top_resize_border_height,
int resize_border_thickness,
- int resize_corner_size,
+ int top_resize_corner_height,
+ int resize_corner_width,
bool can_resize);
// Accessor for paint_as_active_.