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

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

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More compile fix for ToT Created 6 years, 7 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 gfx::Rect GetFindBarBoundingBox() const; 77 gfx::Rect GetFindBarBoundingBox() const;
78 78
79 // 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)
80 // is within the views managed by the laymanager. Returns one of 80 // is within the views managed by the laymanager. Returns one of
81 // HitTestCompat enum defined in ui/base/hit_test.h. 81 // HitTestCompat enum defined in ui/base/hit_test.h.
82 // See also ClientView::NonClientHitTest. 82 // See also ClientView::NonClientHitTest.
83 int NonClientHitTest(const gfx::Point& point); 83 int NonClientHitTest(const gfx::Point& point);
84 84
85 // views::LayoutManager overrides: 85 // views::LayoutManager overrides:
86 virtual void Layout(views::View* host) OVERRIDE; 86 virtual void Layout(views::View* host) OVERRIDE;
87 virtual gfx::Size GetPreferredSize(views::View* host) OVERRIDE; 87 virtual gfx::Size GetPreferredSize(const views::View* host) const OVERRIDE;
88 88
89 private: 89 private:
90 FRIEND_TEST_ALL_PREFIXES(BrowserViewLayoutTest, BrowserViewLayout); 90 FRIEND_TEST_ALL_PREFIXES(BrowserViewLayoutTest, BrowserViewLayout);
91 FRIEND_TEST_ALL_PREFIXES(BrowserViewLayoutTest, Layout); 91 FRIEND_TEST_ALL_PREFIXES(BrowserViewLayoutTest, Layout);
92 FRIEND_TEST_ALL_PREFIXES(BrowserViewLayoutTest, LayoutDownloadShelf); 92 FRIEND_TEST_ALL_PREFIXES(BrowserViewLayoutTest, LayoutDownloadShelf);
93 class WebContentsModalDialogHostViews; 93 class WebContentsModalDialogHostViews;
94 94
95 Browser* browser() { return browser_; } 95 Browser* browser() { return browser_; }
96 96
97 // Layout the following controls, starting at |top|, returns the coordinate 97 // Layout the following controls, starting at |top|, returns the coordinate
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 gfx::Rect latest_dialog_bounds_; 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