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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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_ |
OLD | NEW |