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

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

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.cc
diff --git a/ui/views/window/non_client_view.cc b/ui/views/window/non_client_view.cc
index 316d00f3643abcb875982d2fb7e29906755fb54e..6357af29844e15e8d6a8d59e2d68b1c1f68ebf12 100644
--- a/ui/views/window/non_client_view.cc
+++ b/ui/views/window/non_client_view.cc
@@ -92,7 +92,7 @@ gfx::Rect NonClientView::GetWindowBoundsForClientBounds(
return frame_view_->GetWindowBoundsForClientBounds(client_bounds);
}
-int NonClientView::NonClientHitTest(const gfx::Point& point) {
+int NonClientView::NonClientHitTest(const gfx::Point& point) const {
// The NonClientFrameView is responsible for also asking the ClientView.
return frame_view_->NonClientHitTest(point);
}
@@ -242,7 +242,7 @@ int NonClientFrameView::GetHTComponentForFrame(const gfx::Point& point,
int resize_border_thickness,
int top_resize_corner_height,
int resize_corner_width,
- bool can_resize) {
+ bool can_resize) const {
// Tricky: In XP, native behavior is to return HTTOPLEFT and HTTOPRIGHT for
// a |resize_corner_size|-length strip of both the side and top borders, but
// only to return HTBOTTOMLEFT/HTBOTTOMRIGHT along the bottom border + corner

Powered by Google App Engine
This is Rietveld 408576698