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

Unified Diff: ui/views/window/non_client_view.h

Issue 19115003: Make the maximize button more easily hittable when there is a huge amount of tabs present (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed completely Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/window/non_client_view.h
diff --git a/ui/views/window/non_client_view.h b/ui/views/window/non_client_view.h
index e5be44ef2814a4f7d34536d19bf16b1204a2b8ed..6fe57be276f86c918d5be550e5c836b12b596ade 100644
--- a/ui/views/window/non_client_view.h
+++ b/ui/views/window/non_client_view.h
@@ -48,7 +48,7 @@ class VIEWS_EXPORT NonClientFrameView : public View {
int resize_border_thickness,
int top_resize_corner_height,
int resize_corner_width,
- bool can_resize);
+ bool can_resize) const;
// Returns the bounds (in this View's parent's coordinates) that the client
// view should be laid out within.
@@ -61,7 +61,7 @@ class VIEWS_EXPORT NonClientFrameView : public View {
// the parent NonClientView because that makes it more difficult to calculate
// hittests for regions that are partially obscured by the ClientView, e.g.
// HTSYSMENU.
- virtual int NonClientHitTest(const gfx::Point& point) = 0;
+ virtual int NonClientHitTest(const gfx::Point& point) const = 0;
virtual void GetWindowMask(const gfx::Size& size,
gfx::Path* window_mask) = 0;
virtual void ResetWindowControls() = 0;
@@ -173,7 +173,7 @@ class VIEWS_EXPORT NonClientView : public View {
// Determines the windows HT* code when the mouse cursor is at the
// specified point, in window coordinates.
- int NonClientHitTest(const gfx::Point& point);
+ int NonClientHitTest(const gfx::Point& point) const;
// Returns a mask to be used to clip the top level window for the given
// size. This is used to create the non-rectangular window shape.

Powered by Google App Engine
This is Rietveld 408576698