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

Unified Diff: chrome/browser/ui/browser.cc

Issue 7537030: Make panel adjust bounds per preferred size change notification on Windows. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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/browser.cc
===================================================================
--- chrome/browser/ui/browser.cc (revision 95921)
+++ chrome/browser/ui/browser.cc (working copy)
@@ -1116,7 +1116,12 @@
browser::NavigateParams params(this, url, transition);
params.disposition = NEW_FOREGROUND_TAB;
browser::Navigate(&params);
- return params.target_contents;
+ TabContentsWrapper* target_contents_wrapper = params.target_contents;
+ NotificationService::current()->Notify(
+ content::NOTIFICATION_TAB_ADDED,
+ Source<TabContentsDelegate>(params.browser),
+ Details<TabContents>(target_contents_wrapper->tab_contents()));
+ return target_contents_wrapper;
}
TabContents* Browser::AddTab(TabContentsWrapper* tab_contents,
@@ -3520,6 +3525,10 @@
return GetJavaScriptDialogCreatorInstance();
}
+void Browser::UpdatePreferredSize(const gfx::Size& pref_size) {
+ window_->UpdatePreferredSize(pref_size);
+}
+
///////////////////////////////////////////////////////////////////////////////
// Browser, TabContentsWrapperDelegate implementation:

Powered by Google App Engine
This is Rietveld 408576698