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

Side by Side Diff: ui/views/window/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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/views/window/client_view.h" 5 #include "ui/views/window/client_view.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ui/base/accessibility/accessible_view_state.h" 8 #include "ui/base/accessibility/accessible_view_state.h"
9 #include "ui/base/hit_test.h" 9 #include "ui/base/hit_test.h"
10 #include "ui/views/widget/widget.h" 10 #include "ui/views/widget/widget.h"
11 #include "ui/views/widget/widget_delegate.h" 11 #include "ui/views/widget/widget_delegate.h"
12 12
13 namespace views { 13 namespace views {
14 14
15 // static 15 // static
16 const char ClientView::kViewClassName[] = 16 const char ClientView::kViewClassName[] =
17 "ui/views/window/ClientView"; 17 "ui/views/window/ClientView";
18 18
19 /////////////////////////////////////////////////////////////////////////////// 19 ///////////////////////////////////////////////////////////////////////////////
20 // ClientView, public: 20 // ClientView, public:
21 21
22 ClientView::ClientView(Widget* widget, View* contents_view) 22 ClientView::ClientView(Widget* widget, View* contents_view)
23 : contents_view_(contents_view) { 23 : contents_view_(contents_view) {
24 } 24 }
25 25
26 int ClientView::NonClientHitTest(const gfx::Point& point) { 26 int ClientView::NonClientHitTest(const gfx::Point& point) const {
27 return bounds().Contains(point) ? HTCLIENT : HTNOWHERE; 27 return bounds().Contains(point) ? HTCLIENT : HTNOWHERE;
28 } 28 }
29 29
30 DialogClientView* ClientView::AsDialogClientView() { 30 DialogClientView* ClientView::AsDialogClientView() {
31 return NULL; 31 return NULL;
32 } 32 }
33 33
34 const DialogClientView* ClientView::AsDialogClientView() const { 34 const DialogClientView* ClientView::AsDialogClientView() const {
35 return NULL; 35 return NULL;
36 } 36 }
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 if (details.is_add && details.child == this) { 89 if (details.is_add && details.child == this) {
90 DCHECK(GetWidget()); 90 DCHECK(GetWidget());
91 DCHECK(contents_view_); // |contents_view_| must be valid now! 91 DCHECK(contents_view_); // |contents_view_| must be valid now!
92 // Insert |contents_view_| at index 0 so it is first in the focus chain. 92 // Insert |contents_view_| at index 0 so it is first in the focus chain.
93 // (the OK/Cancel buttons are inserted before contents_view_) 93 // (the OK/Cancel buttons are inserted before contents_view_)
94 AddChildViewAt(contents_view_, 0); 94 AddChildViewAt(contents_view_, 0);
95 } 95 }
96 } 96 }
97 97
98 } // namespace views 98 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698