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

Side by Side Diff: chrome/browser/ui/views/frame/browser_view_layout.h

Issue 99153012: Exclude dev tools bounds from views dialog hosting bounds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Hook up the unit test contents webview. Created 6 years, 11 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/frame/browser_view_layout.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698