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

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

Issue 10933085: Update ConstrainedWindowViews appearance according to mock (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Browser test fixes Created 8 years, 2 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 "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
(...skipping 16 matching lines...) Expand all
27 namespace views { 27 namespace views {
28 class SingleSplitView; 28 class SingleSplitView;
29 } 29 }
30 30
31 // The layout manager used in chrome browser. 31 // The layout manager used in chrome browser.
32 class BrowserViewLayout : public views::LayoutManager { 32 class BrowserViewLayout : public views::LayoutManager {
33 public: 33 public:
34 BrowserViewLayout(); 34 BrowserViewLayout();
35 virtual ~BrowserViewLayout(); 35 virtual ~BrowserViewLayout();
36 36
37 int GetConstrainedWindowTopY();
38
37 // Returns the minimum size of the browser view. 39 // Returns the minimum size of the browser view.
38 virtual gfx::Size GetMinimumSize(); 40 virtual gfx::Size GetMinimumSize();
39 41
40 // Returns the bounding box for the find bar. 42 // Returns the bounding box for the find bar.
41 virtual gfx::Rect GetFindBarBoundingBox() const; 43 virtual gfx::Rect GetFindBarBoundingBox() const;
42 44
43 // Returns true if the specified point(BrowserView coordinates) is in 45 // Returns true if the specified point(BrowserView coordinates) is in
44 // in the window caption area of the browser window. 46 // in the window caption area of the browser window.
45 virtual bool IsPositionInWindowCaption(const gfx::Point& point); 47 virtual bool IsPositionInWindowCaption(const gfx::Point& point);
46 48
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 BrowserView* browser_view_; 111 BrowserView* browser_view_;
110 112
111 // The bounds within which the vertically-stacked contents of the BrowserView 113 // The bounds within which the vertically-stacked contents of the BrowserView
112 // should be laid out within. This is just the local bounds of the 114 // should be laid out within. This is just the local bounds of the
113 // BrowserView. 115 // BrowserView.
114 gfx::Rect vertical_layout_rect_; 116 gfx::Rect vertical_layout_rect_;
115 117
116 // The distance the FindBar is from the top of the window, in pixels. 118 // The distance the FindBar is from the top of the window, in pixels.
117 int find_bar_y_; 119 int find_bar_y_;
118 120
121 // The distance the constrained window is from the top of the window,
122 // in pixels.
123 int constrained_window_top_y;
124
119 DISALLOW_COPY_AND_ASSIGN(BrowserViewLayout); 125 DISALLOW_COPY_AND_ASSIGN(BrowserViewLayout);
120 }; 126 };
121 127
122 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_ 128 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698