| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 | 152 |
| 153 // The bounds within which the vertically-stacked contents of the BrowserView | 153 // The bounds within which the vertically-stacked contents of the BrowserView |
| 154 // should be laid out within. This is just the local bounds of the | 154 // should be laid out within. This is just the local bounds of the |
| 155 // BrowserView. | 155 // BrowserView. |
| 156 // TODO(jamescook): Remove this and just use browser_view_->GetLocalBounds(). | 156 // TODO(jamescook): Remove this and just use browser_view_->GetLocalBounds(). |
| 157 gfx::Rect vertical_layout_rect_; | 157 gfx::Rect vertical_layout_rect_; |
| 158 | 158 |
| 159 // The host for use in positioning the web contents modal dialog. | 159 // The host for use in positioning the web contents modal dialog. |
| 160 scoped_ptr<WebContentsModalDialogHostViews> dialog_host_; | 160 scoped_ptr<WebContentsModalDialogHostViews> dialog_host_; |
| 161 | 161 |
| 162 // The latest dialog position applied during a layout pass. | 162 // The latest dialog bounds applied during a layout pass. |
| 163 gfx::Point latest_dialog_position_; | 163 gfx::Rect latest_dialog_bounds_; |
| 164 | 164 |
| 165 // The distance the web contents modal dialog is from the top of the window, | 165 // The distance the web contents modal dialog is from the top of the window, |
| 166 // in pixels. | 166 // in pixels. |
| 167 int web_contents_modal_dialog_top_y_; | 167 int web_contents_modal_dialog_top_y_; |
| 168 | 168 |
| 169 DISALLOW_COPY_AND_ASSIGN(BrowserViewLayout); | 169 DISALLOW_COPY_AND_ASSIGN(BrowserViewLayout); |
| 170 }; | 170 }; |
| 171 | 171 |
| 172 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_ | 172 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_ |
| OLD | NEW |