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

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

Issue 11193049: Add the app.windows.getBounds method (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased against trunk Created 8 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
Index: chrome/browser/ui/views/extensions/shell_window_views.cc
diff --git a/chrome/browser/ui/views/extensions/shell_window_views.cc b/chrome/browser/ui/views/extensions/shell_window_views.cc
index 13a9b15b4f6388862495ebde39663abe4f9087d5..04e86d2cf266ed4306022678f5e88b1f7feb08ef 100644
--- a/chrome/browser/ui/views/extensions/shell_window_views.cc
+++ b/chrome/browser/ui/views/extensions/shell_window_views.cc
@@ -684,6 +684,10 @@ bool ShellWindowViews::ShouldShowWindowTitle() const {
return false;
}
+void ShellWindowViews::OnWidgetMove() {
Mihai Parparita -not on Chrome 2012/11/02 20:05:14 Nit: extra space after void.
asargent_no_longer_on_chrome 2012/11/02 20:55:50 Done.
+ shell_window_->SendBoundsUpdate();
Mihai Parparita -not on Chrome 2012/11/02 20:05:14 Shouldn't this call It SaveWindowPlacement too? I
asargent_no_longer_on_chrome 2012/11/02 20:55:50 I had it that way initially, but in patch 3 of thi
Mihai Parparita -not on Chrome 2012/11/02 22:12:56 Yeah, I like that better (since it doesn't actuall
asargent_no_longer_on_chrome 2012/11/05 23:37:29 Ok, I went back to just having the 1 method, but l
+}
+
void ShellWindowViews::Layout() {
DCHECK(web_view_);
web_view_->SetBounds(0, 0, width(), height());

Powered by Google App Engine
This is Rietveld 408576698