OLD | NEW |
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 } | 69 } |
70 | 70 |
71 web_modal::WebContentsModalDialogHost* GetWebContentsModalDialogHost(); | 71 web_modal::WebContentsModalDialogHost* GetWebContentsModalDialogHost(); |
72 | 72 |
73 // Returns the minimum size of the browser view. | 73 // Returns the minimum size of the browser view. |
74 gfx::Size GetMinimumSize(); | 74 gfx::Size GetMinimumSize(); |
75 | 75 |
76 // Returns the bounding box, in widget coordinates, for the find bar. | 76 // Returns the bounding box, in widget coordinates, for the find bar. |
77 gfx::Rect GetFindBarBoundingBox() const; | 77 gfx::Rect GetFindBarBoundingBox() const; |
78 | 78 |
79 // Returns true if the specified point(BrowserView coordinates) is in | |
80 // in the window caption area of the browser window. | |
81 bool IsPositionInWindowCaption(const gfx::Point& point); | |
82 | |
83 // Tests to see if the specified |point| (in nonclient view's coordinates) | 79 // Tests to see if the specified |point| (in nonclient view's coordinates) |
84 // is within the views managed by the laymanager. Returns one of | 80 // is within the views managed by the laymanager. Returns one of |
85 // HitTestCompat enum defined in ui/base/hit_test.h. | 81 // HitTestCompat enum defined in ui/base/hit_test.h. |
86 // See also ClientView::NonClientHitTest. | 82 // See also ClientView::NonClientHitTest. |
87 int NonClientHitTest(const gfx::Point& point); | 83 int NonClientHitTest(const gfx::Point& point); |
88 | 84 |
89 // views::LayoutManager overrides: | 85 // views::LayoutManager overrides: |
90 virtual void Layout(views::View* host) OVERRIDE; | 86 virtual void Layout(views::View* host) OVERRIDE; |
91 virtual gfx::Size GetPreferredSize(views::View* host) OVERRIDE; | 87 virtual gfx::Size GetPreferredSize(views::View* host) OVERRIDE; |
92 | 88 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 scoped_ptr<WebContentsModalDialogHostViews> dialog_host_; | 164 scoped_ptr<WebContentsModalDialogHostViews> dialog_host_; |
169 | 165 |
170 // The distance the web contents modal dialog is from the top of the window, | 166 // The distance the web contents modal dialog is from the top of the window, |
171 // in pixels. | 167 // in pixels. |
172 int web_contents_modal_dialog_top_y_; | 168 int web_contents_modal_dialog_top_y_; |
173 | 169 |
174 DISALLOW_COPY_AND_ASSIGN(BrowserViewLayout); | 170 DISALLOW_COPY_AND_ASSIGN(BrowserViewLayout); |
175 }; | 171 }; |
176 | 172 |
177 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_ | 173 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_ |
OLD | NEW |