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

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

Issue 8503037: Fix the problem that notifications and panels overlap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix per feedback Created 9 years, 1 month 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/panels/panel.cc
diff --git a/chrome/browser/ui/panels/panel.cc b/chrome/browser/ui/panels/panel.cc
index 8c416afe757eb77e4cbd0efcdb14b0939083e703..78687d2b9e1c4caef27e52f18dbbe7c32cbb802d 100644
--- a/chrome/browser/ui/panels/panel.cc
+++ b/chrome/browser/ui/panels/panel.cc
@@ -63,6 +63,11 @@ void Panel::SetPanelBounds(const gfx::Rect& bounds) {
restored_height_ = bounds.height();
native_panel_->SetPanelBounds(bounds);
+
+ content::NotificationService::current()->Notify(
+ chrome::NOTIFICATION_PANEL_CHANGED_BOUNDS,
+ content::Source<Panel>(this),
+ content::NotificationService::NoDetails());
}
void Panel::SetMaxSize(const gfx::Size& max_size) {

Powered by Google App Engine
This is Rietveld 408576698