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

Unified Diff: chrome/browser/views/frame/browser_view2.cc

Issue 6349: Attempt to fix more standard non-client painting by extending the client area... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/views/frame/opaque_non_client_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/frame/browser_view2.cc
===================================================================
--- chrome/browser/views/frame/browser_view2.cc (revision 3010)
+++ chrome/browser/views/frame/browser_view2.cc (working copy)
@@ -55,6 +55,12 @@
static const wchar_t* kBrowserWindowKey = L"__BROWSER_WINDOW__";
// The distance between tiled windows.
static const int kWindowTilePixels = 10;
+// The distance between the top edge of the window and the TabStrip when there
+// is no title-bar showing, and the window is restored.
+static const int kNoTitleTopSpacing = 15;
+// The distance between the top edge of the window and the TabStrip when there
+// is no title-bar showing, and the window is maximized.
+static const int kNoTitleZoomedTopSpacing = 1;
static const struct { bool separator; int command; int label; } kMenuLayout[] = {
{ true, 0, 0 },
@@ -781,8 +787,6 @@
toolbar_, 0);
}
#endif
-
-
SchedulePaint();
}
@@ -888,13 +892,12 @@
}
int BrowserView2::LayoutTabStrip() {
+ gfx::Rect tabstrip_bounds = frame_->GetBoundsForTabStrip(tabstrip_);
if (IsTabStripVisible()) {
- gfx::Rect tabstrip_bounds = frame_->GetBoundsForTabStrip(tabstrip_);
tabstrip_->SetBounds(tabstrip_bounds.x(), tabstrip_bounds.y(),
tabstrip_bounds.width(), tabstrip_bounds.height());
- return tabstrip_bounds.bottom();
}
- return 0;
+ return tabstrip_bounds.bottom();
}
int BrowserView2::LayoutToolbar(int top) {
« no previous file with comments | « no previous file | chrome/browser/views/frame/opaque_non_client_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698