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

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
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | chrome/browser/ui/browser_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser.cc
===================================================================
--- chrome/browser/ui/browser.cc (revision 96104)
+++ 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(
Peter Kasting 2011/08/12 17:19:45 Is this necessary? It seems like this ought to be
jianli 2011/08/16 20:55:57 Changed to call Notify from Navigate(), as suggest
+ 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,
@@ -3508,6 +3513,11 @@
return GetJavaScriptDialogCreatorInstance();
}
+void Browser::UpdatePreferredSize(TabContents* source,
+ const gfx::Size& pref_size) {
+ window_->UpdatePreferredSize(source, pref_size);
+}
+
///////////////////////////////////////////////////////////////////////////////
// Browser, TabContentsWrapperDelegate implementation:
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | chrome/browser/ui/browser_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698