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

Side by Side Diff: chrome/browser/ui/views/frame/browser_view_layout.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: Moved the implementation to OapqueBrowserFrameView and BrowserNonClientFrameViewAsh 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 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 } 71 }
72 72
73 web_modal::WebContentsModalDialogHost* GetWebContentsModalDialogHost(); 73 web_modal::WebContentsModalDialogHost* GetWebContentsModalDialogHost();
74 74
75 // Returns the minimum size of the browser view. 75 // Returns the minimum size of the browser view.
76 gfx::Size GetMinimumSize(); 76 gfx::Size GetMinimumSize();
77 77
78 // Returns the bounding box, in widget coordinates, for the find bar. 78 // Returns the bounding box, in widget coordinates, for the find bar.
79 gfx::Rect GetFindBarBoundingBox() const; 79 gfx::Rect GetFindBarBoundingBox() const;
80 80
81 // Returns true if the specified point(BrowserView coordinates) is in
82 // in the window caption area of the browser window.
83 bool IsPositionInWindowCaption(const gfx::Point& point);
84
85 // Tests to see if the specified |point| (in nonclient view's coordinates) 81 // Tests to see if the specified |point| (in nonclient view's coordinates)
86 // is within the views managed by the laymanager. Returns one of 82 // is within the views managed by the laymanager. Returns one of
87 // HitTestCompat enum defined in ui/base/hit_test.h. 83 // HitTestCompat enum defined in ui/base/hit_test.h.
88 // See also ClientView::NonClientHitTest. 84 // See also ClientView::NonClientHitTest.
89 int NonClientHitTest(const gfx::Point& point); 85 int NonClientHitTest(const gfx::Point& point);
90 86
91 // views::LayoutManager overrides: 87 // views::LayoutManager overrides:
92 virtual void Layout(views::View* host) OVERRIDE; 88 virtual void Layout(views::View* host) OVERRIDE;
93 virtual gfx::Size GetPreferredSize(views::View* host) OVERRIDE; 89 virtual gfx::Size GetPreferredSize(views::View* host) OVERRIDE;
94 90
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 scoped_ptr<WebContentsModalDialogHostViews> dialog_host_; 188 scoped_ptr<WebContentsModalDialogHostViews> dialog_host_;
193 189
194 // The distance the web contents modal dialog is from the top of the window, 190 // The distance the web contents modal dialog is from the top of the window,
195 // in pixels. 191 // in pixels.
196 int web_contents_modal_dialog_top_y_; 192 int web_contents_modal_dialog_top_y_;
197 193
198 DISALLOW_COPY_AND_ASSIGN(BrowserViewLayout); 194 DISALLOW_COPY_AND_ASSIGN(BrowserViewLayout);
199 }; 195 };
200 196
201 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_ 197 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698