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

Side by Side Diff: chrome/browser/views/frame/browser_view.h

Issue 3167027: Merge 56737 - Fix numerous alignment problems, both horizontal and vertical, ... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/472/src/
Patch Set: Created 10 years, 4 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_VIEWS_FRAME_BROWSER_VIEW_H_ 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_
6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ 6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 int GetShowState() const; 113 int GetShowState() const;
114 114
115 // Called by the frame to notify the BrowserView that it was moved, and that 115 // Called by the frame to notify the BrowserView that it was moved, and that
116 // any dependent popup windows should be repositioned. 116 // any dependent popup windows should be repositioned.
117 void WindowMoved(); 117 void WindowMoved();
118 118
119 // Called by the frame to notify the BrowserView that a move or resize was 119 // Called by the frame to notify the BrowserView that a move or resize was
120 // initiated. 120 // initiated.
121 void WindowMoveOrResizeStarted(); 121 void WindowMoveOrResizeStarted();
122 122
123 // Returns the bounds of the toolbar, in BrowserView coordinates. 123 // Returns the apparent bounds of the toolbar, in BrowserView coordinates.
124 // These differ from |toolbar_.bounds()| in that they match where the toolbar
125 // background image is drawn -- slightly outside the "true" bounds
126 // horizontally, and, when using vertical tabs, behind the tab column.
124 gfx::Rect GetToolbarBounds() const; 127 gfx::Rect GetToolbarBounds() const;
125 128
126 // Returns the bounds of the content area, in the coordinates of the 129 // Returns the bounds of the content area, in the coordinates of the
127 // BrowserView's parent. 130 // BrowserView's parent.
128 gfx::Rect GetClientAreaBounds() const; 131 gfx::Rect GetClientAreaBounds() const;
129 132
130 // Returns true if the Find Bar should be rendered such that it appears to 133 // Returns true if the Find Bar should be rendered such that it appears to
131 // blend with the Bookmarks Bar. False if it should appear to blend with the 134 // blend with the Bookmarks Bar. False if it should appear to blend with the
132 // main Toolbar. The return value will vary depending on whether or not the 135 // main Toolbar. The return value will vary depending on whether or not the
133 // Bookmark Bar is always shown. 136 // Bookmark Bar is always shown.
134 bool ShouldFindBarBlendWithBookmarksBar() const; 137 bool ShouldFindBarBlendWithBookmarksBar() const;
135 138
136 // Returns the constraining bounding box that should be used to lay out the 139 // Returns the constraining bounding box that should be used to lay out the
137 // FindBar within. This is _not_ the size of the find bar, just the bounding 140 // FindBar within. This is _not_ the size of the find bar, just the bounding
138 // box it should be laid out within. The coordinate system of the returned 141 // box it should be laid out within. The coordinate system of the returned
139 // rect is in the coordinate system of the frame, since the FindBar is a child 142 // rect is in the coordinate system of the frame, since the FindBar is a child
140 // window. 143 // window.
141 gfx::Rect GetFindBarBoundingBox() const; 144 gfx::Rect GetFindBarBoundingBox() const;
142 145
143 // Returns the preferred height of the TabStrip. Used to position the OTR 146 // Returns the preferred height of the TabStrip. Used to position the OTR
144 // avatar icon. 147 // avatar icon.
145 int GetTabStripHeight() const; 148 int GetTabStripHeight() const;
146 149
147 // Returns the bounds of the TabStrip. Used by themed views to determine the 150 // Takes some view's origin (relative to this BrowserView) and offsets it such
148 // offset of IDR_THEME_TOOLBAR. 151 // that it can be used as the source origin for seamlessly tiling the toolbar
149 gfx::Rect GetTabStripBounds() const; 152 // background image over that view.
153 gfx::Point OffsetPointForToolbarBackgroundImage(
154 const gfx::Point& point) const;
150 155
151 // Accessor for the big icon used with TYPE_EXTENSION_APP, or NULL if this 156 // Accessor for the big icon used with TYPE_EXTENSION_APP, or NULL if this
152 // browser isn't TYPE_EXTENSION_APP. 157 // browser isn't TYPE_EXTENSION_APP.
153 views::ImageView* extension_app_icon() const { return extension_app_icon_; } 158 views::ImageView* extension_app_icon() const { return extension_app_icon_; }
154 159
155 // Accessor for the big title used with TYPE_EXTENSION_APP, or NULL if this 160 // Accessor for the big title used with TYPE_EXTENSION_APP, or NULL if this
156 // browser isn't TYPE_EXTENSION_APP. 161 // browser isn't TYPE_EXTENSION_APP.
157 views::Label* extension_app_title() const { return extension_app_title_; } 162 views::Label* extension_app_title() const { return extension_app_title_; }
158 163
159 // Accessor for the TabStrip. 164 // Accessor for the TabStrip.
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 605
601 scoped_ptr<AccessibleViewHelper> accessible_view_helper_; 606 scoped_ptr<AccessibleViewHelper> accessible_view_helper_;
602 607
603 // Loads extension_app_icon_ asynchronously on the file thread. 608 // Loads extension_app_icon_ asynchronously on the file thread.
604 ImageLoadingTracker extension_app_icon_loader_; 609 ImageLoadingTracker extension_app_icon_loader_;
605 610
606 DISALLOW_COPY_AND_ASSIGN(BrowserView); 611 DISALLOW_COPY_AND_ASSIGN(BrowserView);
607 }; 612 };
608 613
609 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ 614 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/frame/browser_non_client_frame_view.h ('k') | chrome/browser/views/frame/browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698