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

Unified Diff: chrome/browser/ui/views/frame/opaque_browser_frame_view.cc

Issue 2628043002: Gtk3: Render a GtkHeaderBar as the background of the tab strip (Closed)
Patch Set: Created 3 years, 11 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
Index: chrome/browser/ui/views/frame/opaque_browser_frame_view.cc
diff --git a/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc b/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc
index c3623f8093da0bcaa83dee045fb13ced6a57600d..198f762d1ad1cc62023ecdc17b6fe2c79c325fa1 100644
--- a/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc
+++ b/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc
@@ -507,9 +507,8 @@ int OpaqueBrowserFrameView::GetTopAreaHeight() const {
const gfx::ImageSkia frame_image = GetFrameImage();
int top_area_height = frame_image.isNull() ? kHeight : frame_image.height();
if (browser_view()->IsTabStripVisible()) {
- top_area_height =
- std::max(top_area_height,
- GetBoundsForTabStrip(browser_view()->tabstrip()).bottom());
+ // TODO(thomasanderson): Figure out what this should be. Do no land as is.
+ top_area_height = GetBoundsForTabStrip(browser_view()->tabstrip()).bottom();
Tom (Use chromium acct) 2017/01/11 20:07:27 pkasting@: The "kHeight = 64" was messing this up
Peter Kasting 2017/01/12 18:53:52 44 and 29 are what the GetBoundsForTabStrip() call
Tom (Use chromium acct) 2017/01/12 21:51:09 Yes
Peter Kasting 2017/01/12 22:02:56 Fullscreen wouldn't be the thing to check; you'd w
Tom (Use chromium acct) 2017/01/12 22:54:13 Hm.. I tried with many types of windows and this s
Peter Kasting 2017/01/12 23:14:04 Things like menus, tooltips, and alerts wouldn't g
Tom (Use chromium acct) 2017/01/13 00:59:51 Ok that seemed to work. It does return 0, but not
}
return top_area_height;
}
@@ -517,6 +516,7 @@ int OpaqueBrowserFrameView::GetTopAreaHeight() const {
void OpaqueBrowserFrameView::PaintRestoredFrameBorder(
gfx::Canvas* canvas) const {
frame_background_->set_frame_color(GetFrameColor());
+ frame_background_->set_is_active(ShouldPaintAsActive());
frame_background_->set_theme_image(GetFrameImage());
frame_background_->set_theme_overlay_image(GetFrameOverlayImage());
frame_background_->set_top_area_height(GetTopAreaHeight());
@@ -543,6 +543,7 @@ void OpaqueBrowserFrameView::PaintRestoredFrameBorder(
void OpaqueBrowserFrameView::PaintMaximizedFrameBorder(
gfx::Canvas* canvas) const {
frame_background_->set_frame_color(GetFrameColor());
+ frame_background_->set_is_active(ShouldPaintAsActive());
frame_background_->set_theme_image(GetFrameImage());
frame_background_->set_theme_overlay_image(GetFrameOverlayImage());
frame_background_->set_top_area_height(GetTopAreaHeight());

Powered by Google App Engine
This is Rietveld 408576698