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

Unified Diff: chrome/browser/ui/views/frame/browser_non_client_frame_view.h

Issue 10821002: Makes the min window size include the OTR image and caption buttons on (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/frame/browser_frame.cc ('k') | chrome/browser/ui/views/frame/browser_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/browser_non_client_frame_view.h
diff --git a/chrome/browser/ui/views/frame/browser_non_client_frame_view.h b/chrome/browser/ui/views/frame/browser_non_client_frame_view.h
index 10a8e59456367372d105cdc0ef741730f00a7647..013b2df243d3464e866573c89e479cf6b053e673 100644
--- a/chrome/browser/ui/views/frame/browser_non_client_frame_view.h
+++ b/chrome/browser/ui/views/frame/browser_non_client_frame_view.h
@@ -16,6 +16,19 @@ class BrowserView;
// Browser-specific methods.
class BrowserNonClientFrameView : public views::NonClientFrameView {
public:
+ // Insets around the tabstrip.
+ struct TabStripInsets {
+ TabStripInsets() : top(0), left(0), right(0) {}
+ TabStripInsets(int top, int left, int right)
+ : top(top),
+ left(left),
+ right(right) {}
+
+ int top;
+ int left;
+ int right;
+ };
+
BrowserNonClientFrameView(BrowserFrame* frame, BrowserView* browser_view);
virtual ~BrowserNonClientFrameView();
@@ -24,12 +37,10 @@ class BrowserNonClientFrameView : public views::NonClientFrameView {
// Returns the bounds within which the TabStrip should be laid out.
virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const = 0;
- // Returns the y coordinate within the window at which the tab strip begins.
- // If |as_restored| is true, this is calculated as if we were in restored mode
- // regardless of the current mode. This is used to correctly align theme
- // images.
- virtual int GetHorizontalTabStripVerticalOffset(
- bool force_restored) const = 0;
+ // Returns the TabStripInsets within the window at which the tab strip is
+ // positioned. If |as_restored| is true, this is calculated as if we were in
+ // restored mode regardless of the current mode.
+ virtual TabStripInsets GetTabStripInsets(bool force_restored) const = 0;
// Updates the throbber.
virtual void UpdateThrobber(bool running) = 0;
« no previous file with comments | « chrome/browser/ui/views/frame/browser_frame.cc ('k') | chrome/browser/ui/views/frame/browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698