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

Unified Diff: chrome/browser/ui/views/extensions/native_app_window_views.cc

Issue 14576003: PlatformAppBrowserTest.ShellWindowRestorePosition: Test create after window close (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make frame component of GetRestoredBounds platform dependent Created 7 years, 8 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/extensions/native_app_window_views.cc
diff --git a/chrome/browser/ui/views/extensions/native_app_window_views.cc b/chrome/browser/ui/views/extensions/native_app_window_views.cc
index 29705e791edb3d891f5e1c67f507a049ffa9d0b4..b71a29f66da0e403d0987579f1b75dcc536d2c34 100644
--- a/chrome/browser/ui/views/extensions/native_app_window_views.cc
+++ b/chrome/browser/ui/views/extensions/native_app_window_views.cc
@@ -301,7 +301,9 @@ gfx::NativeWindow NativeAppWindowViews::GetNativeWindow() {
}
gfx::Rect NativeAppWindowViews::GetRestoredBounds() const {
- return window_->GetRestoredBounds();
+ gfx::Rect bounds = window_->GetRestoredBounds();
+ bounds.Inset(GetFrameInsets());
+ return bounds;
}
gfx::Rect NativeAppWindowViews::GetBounds() const {
« no previous file with comments | « chrome/browser/ui/gtk/extensions/native_app_window_gtk.cc ('k') | chrome/test/data/extensions/platform_apps/geometry/test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698