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

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

Issue 10986003: Fixed problem with disappearing window controls for applications when maximizing / minimizing / max… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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/ui/views/frame/app_non_client_frame_view_aura_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/app_non_client_frame_view_aura.cc
diff --git a/chrome/browser/ui/views/frame/app_non_client_frame_view_aura.cc b/chrome/browser/ui/views/frame/app_non_client_frame_view_aura.cc
index 294fd2cec440f3a1a7e1b243bbd027e70a5399c8..35d0634092af5b59429b0f2f45da2276a0e505fb 100644
--- a/chrome/browser/ui/views/frame/app_non_client_frame_view_aura.cc
+++ b/chrome/browser/ui/views/frame/app_non_client_frame_view_aura.cc
@@ -250,8 +250,11 @@ gfx::Rect AppNonClientFrameViewAura::GetControlBounds() const {
if (!control_view_)
return gfx::Rect();
gfx::Size preferred = control_view_->GetPreferredSize();
- gfx::Point location(width() - preferred.width(), 0);
- ConvertPointToWidget(this, &location);
+ const gfx::Rect bounds =
+ control_widget_->GetTopLevelWidgetForNativeView(
+ control_widget_->GetNativeWindow())->GetWindowBoundsInScreen();
+ // Position it flush to the right side of the (parent) widget.
+ gfx::Point location(bounds.width() - preferred.width(), 0);
sky 2012/09/24 21:24:16 control_widget_ is a child widget of the browser.
Mr4D (OOO till 08-26) 2012/09/25 14:23:50 Well - in the case I have seen (and I can reproduc
return gfx::Rect(
location.x(), location.y(),
preferred.width(), preferred.height());
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/app_non_client_frame_view_aura_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698